448_lab3.pdf - Lab 3 Finite State Machines Bus Ticket...

This preview shows page 1 - 3 out of 4 pages.

Lab 3 Finite State Machines. Bus Ticket Dispensing Machine. Design, verify, implement, and test a Bus Ticket Dispensing Machine for a Bus operating to the following three destinations IAD (Dulles International Airport, VA) BAL (Baltimore, MD) DC (Washington, DC) Bus Ticket Dispensing Machine accepts the following Dollar amounts: 5 Dollars (BTNU), 1 Dollar (BTNR), 1 Quarter (BTND) 1 Dime (BTNL). Stage 1: Entering the Dollar amountThe machine starts by displaying "00.00" dollars on four seven-segment displays. Each time a new amount of money is entered, the seven-segment displays show the current total in decimal notation. The total is not allowed to exceed 99.95 Dollars(i.e., any subsequent entry is ignored). When the user is done with entering money, he/she presses Enter (BTNC). Indication: The LED LD0 is switched on to indicate that Stage 1 is completed. Stage 2: Choosing a Destination The machine can dispense three types of tickets, depending on the distance to the destination: IAD worth $12.60, BAL worth $21.75, and DC worth $9.30. The user is making a selection using BTNU (Up) and BTND (Down) by scrolling through the wrap-around list of available ticket options (IAD, BAL, DC) and then pressing BTNC (Enter). Each time the user is pressing BTNU or BTND, the code of the next destination on the list is displayed using three leftmost seven-segment displays (IAD, BAL, DC). Leave the rightmost seven-segment display to enter the number of tickets.
The user is making a selection of the ticket type by pressing Enter (BTNC).

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture