Implement state diagram, state table and Transition table then circuit diagram using D flip flop based on Kmaps outputs
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Implement state diagram, state table and Transition table then circuit diagram using D flip flop based on Kmaps outputs
vending machine explained
Implement state diagram, state table and Transition table then circuit diagram using D flip flop based on Kmaps outputs Suppose we have a vending machine that sells soda cans that costs £l each. Moreover, we have only 3 types of coins: 50p, £1 and £2. Our objective is to design a state machine that determines when to dispense a can and how much change to return. One rule is that the change will be given before the can is dispensed. There are quite a few options in this system: 1) entering no money 2) inserting 50p followed by another 50p => getting a can 3) inserting 50p followed by £1 => receiving change => getting a can 4) inserting 50p followed by £2 => receiving change => getting a can = 5) inserting £1 => getting a can 6) inserting £2 => receiving change => getting a can Basically, the first thing to be done now is to translate the options stated above into a flow chart/FSM diagram: Using the following 2-bit encodings for the coin inputs (CoinIn) and outputs (CoinOut: £0 =“01”, 50p = "10", £1 = "11", £2 = "00" = a You can also use a 1-bit output soda where no soda can is dispensed soda =“0” while a can is dispensed when soda = "1". =