This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Introduction In this project we had to design a Vending Machine Controller using the concepts we learned in our CSE 379 class. The vending machine sells multiple products each of which may have different prices. It has a money detector/dispenser, a product dispenser, two displays, a keypad for the customer to make product selections, and a push button to activate the coin return. The controller of the machine is an ARM-based microprocessor. Moreover, a serial interface is provided so that laptop can be connected by the operator to set various parameters and control the machine remotely. The machine can accept quarters, dimes, nickels, 1-dollar bills and 5-dollar bills. When the user puts in the money, he makes his product selection and if the amount inserted is enough and if the product bin is not empty, the machine dispenses the product and returns the right amount of change. In addition, the machine also checks for a full coin bin, low product count and if the machine out of order. If the empty product bin exception is called, then the Out of Stock LED gets switched on and the operator is notified. If the product goes out below 5%, then the operator should be notified. If the full coin bin exception is called, then the Coin Bin Full LED must be turned on and the operator is notified. If the machine is out of order, then the corresponding LED must be switched on, the machine should go offline and the operator should be notified. Also, at the end of the day or at operator’s request, status report should be provided to operator indicating various conditions. The design uses a 64 MB ROM and a 64 MB RAM. A decoder is also used to partially decode the memory and the peripheral devices for chip and I/O peripheral selection. Hardware Design This includes the hardware design of the processor, memory sub-system, address and data lines, memory map, peripherals, serial I/O and parallel I/O controllers. This vending machine consists: 10 Push Buttons for product selection (Numbers 0-9) 21 LEDs corresponding to each of the product buttons to notify if the product is out of stock. A 2-digit 7-segment display to display the product code as it is entered. A 3-digit 7-segment Display to display the total amount paid by the customer at any time. An LED to indicate the user to use correct change. An LED to indicate that the coin bin is full....
View Full Document
- Spring '08
- Computer Architecture, Light-emitting diode, Input/output, Serial communication