Block diagram for a candy-bar vending machine showing controller and data path devices.
FIGURE15.12
State diagramand definitionsfor thepulse modedesign ofthe candy-bar vending machine controller
shown in Fig. 15.11.
784
15.4DESIGNEXAMPLES785
general understanding:
r
Coins are placedin the slotsof the coin receiver (CR)and the 4-bit adderin the
accumulator is automatically updated.
r
Each quarter(Q),dime (D),ornickel (N)thatis insertedintothecoin receiver
(CR) isencoded according tothe number ofnickels:N =0001, D =0010, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.