Make your own free website on
Welcome to my personal webpage.     |   home
back to  Mirocontrollers    previous   up down
LCD Display
This program is a simulation of a vending machine.  The program sits and waits for one of the four switches to be hit.  These switches correspond to the selection of a drink or one of three monetary entries.  5, 10, or 25 cents are the possible coin drops.  Each time money is added, the program will increment the paid amount by the corresponding amount.  The program then calls the LCD sub routines to display the total amount paid in the form of “Paid = $$”
     If a drink selection is made, and the paid amount is less than 75 cents, then a message, “need more money” will appear, Otherwise it will show, “dispensing” and the paid amount will be initialized back to 0.

LCD code  / Schematics  /  Flowchart