Assignment 1 - FMSE
Assignment 1 - FMSE
Assignment 1 - FMSE
The current state of the machine if OFF (The light is OFF at this stage). When the POWER is given to it,
its stage will change in ON (The light is ON at this stage). This is the selection stage where user has to
decide, whether user requires hot room temp, or cool room temperature. Hot temperature will indicate
Red Light, whereas Cold temperature will indicate Blue Light. In both stages, Hot and Cold, there are two
levels of fan speed which are Slow, Medium and High.
ON
OFF ON
OFF
SET TEMPERATURE
OFF
COLD HOT
COLD HOT
(Blue Light ON, Red light OFF) (Red Light ON, Blue Light OFF)
DOWN UP UP DOWN UP
DOWN DOWN
Before converting the above FSM diagram to a circuit, we need to represent every value in our example
as a binary number. Here is some convenient numbers to use.
ON = 1 COLD = 1 UP = 1
OFF ON
SET TEMPERATURE
1 0
COLD HOT
(Blue Light ON, Red light OFF) (Red Light ON, Blue Light OFF)
0 1 1 0 1
0 0
0 0 0 0
Step 4: Write the truth table
From the FSM diagram, it’s easy to read off the correct truth table.
SLOW
BLUE FAST
FAST