Escolar Documentos
Profissional Documentos
Cultura Documentos
1.) Design a digital circuit to control the process described below by designing a
finite state machine (FSM).
Inputs:
Start Button (PB1)
Limit Switch indicating that 1A is in the retracted position (LS1R)
Limit Switch indicating that 1A is in the extended position (LS1E)
Limit Switch indicating that 2A is in the retracted position (LS2R)
Limit Switch indicating that 2A is in the extended position (LS2E)
Pressure switch Bin Full (PW1)
Outputs:
Pre-compactor Cylinder 1A Extend (1AE)
Pre-compactor Cylinder 1A Retract (1AR)
Main compactor Cylinder 2A Extend (2AE)
Main compactor Cylinder 2A Retract (2AR)
Process Steps:
Both cylinders start in the retracted position.
o LS1R and LS2R will be indicating the cylinders are retracted.
When the button (PB1) is pressed the Pre-compactor Cylinder 1A will
extend.
When (LS1E) indicates that cylinder 1A is fully extended the cylinder will
retract.
When (LS1R) indicates that cylinder 1A is fully retracted the Main
compactor Cylinder 2A will extend.
1
ENGR 271 HW #5 NAME____SOLUTIONS__________
a. Make a state diagram for the process using the Moore Machine model
b. Make a next state table using D flip-flops
c. Solve for Boolean expressions for the outputs and the inputs to the flip-flops
d. Draw out the circuit
2
ENGR 271 HW #5 NAME____SOLUTIONS__________
2.) Design a Sequence Recognizer that will recognize the sequence 11011 by
designing a finite state machine (FSM). The input will be (X) and when the
pattern is seen the output (Z) will be 1.
Example:
X=101011011011
Z=000000001001
a. Make a state diagram for the process using the Moore Machine model
b. Make a next state table using D flip-flops
c. Solve for Boolean expressions for the outputs and the inputs to the flip-flops
d. Draw out the circuit
3
ENGR 271 HW #5 NAME____SOLUTIONS__________
Z = Q2 Q1 Q0;
D2 = Q2' Q1 Q0 X + Q2 Q1' Q0' X;
D1 = Q2 Q1' Q0 + Q2' Q1 Q0' + Q1' Q0 X;
D0 = Q1' Q0' X + Q2 Q1' Q0 X' + Q2' Q1 Q0' X';
3.) Exercise 3.30 Design an FSM with one input, A, and two outputs, X and Y. X
should be 1 if A has been 1 for at least three cycles altogether (not necessarily
consecutively). Y should be 1 if A has been 1 for at least two consecutive cycles.
Show your state transition diagram, encoded state transition table, next state and
output equations, and schematic.
4
ENGR 271 HW #5 NAME____SOLUTIONS__________
5
ENGR 271 HW #5 NAME____SOLUTIONS__________