CPE129_hw19_soln_1

CPE129_hw19_soln_1 - CPE 129 Homework 19 Solution W...

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

View Full Document Right Arrow Icon
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. Your
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/15/2009 for the course CPE 129 taught by Professor Mealy during the Spring '07 term at Cal Poly.

Page1 / 6

CPE129_hw19_soln_1 - CPE 129 Homework 19 Solution W...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online