CPE129_hw19_soln_1

# CPE129_hw19_soln_1 - CPE 129 Homework 19 Solution W...

• Notes
• 6

This preview shows pages 1–2. Sign up to view the full content.

CPE 129 Homework 19 Solution W. Pilkington 1. Draw a State Transition Diagram, Present State-Next State Table, and Composite K- Map for a 15 ¢ Token Dispenser using a Moore-type finite state machine. The Dispenser accepts only nickels and dimes (quarters won't fit in the coin slot, and pennies just fall through to the Coin Return). The Dispenser has two sensors that detect which type of coin was received. The output of each sensor is turned into a short pulse, so that it only lasts for 1 clock cycle (so your state machine can respond to the input and not worry about it lingering on after it responds). Only 1 coin can be inserted (and sensed) at a time. These detector signals are connected as external inputs to your state machine circuit: N = { 1, when a Nickel is inserted { 0, any time else D = { 1, when a Dime is inserted { 0, any time else The state machine has 2 Moore-type external outputs: GiveToken = { 1, to dispense a single token { 0, to not dispense ChangeBack = { 1, to return a Nickel if 20 ¢ is inserted { 0, otherwise Your state machine should keep track of how much money has been inserted, and dispense a token when it reaches a state indicating that 15 cents was received. If 20 cents was inserted, it should give back a nickel and dispense a token.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '07
• Mealy
• cents, W. Pilkington

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern