Professional Documents
Culture Documents
EM219 Microcontroller Systems Assignment 3
EM219 Microcontroller Systems Assignment 3
Q1 Figure Q1 shows a tank system with high, medium and low indicator (Green, Red,
Blue). As an engineer, you are required to design a system to control the tank
processes.
Figure Q1
(a) By using LED and Switch, invent the input and output of the system based on the
following flow chart.
Example;
LED1 – RB0 – High Level
LED2 – RB1 – Medium Level
LED3 – RB2 – Low Level
Switch1 – RD0 – Valve 1
Switch2 – RD1 – Valve 2
EM219 Microcontroller Systems Assignment 3
Flowchart Start
Valve 1 open
NO
Water Level
is High
YES
Valve 1 close
Temperature NO
is 110 ̊C
YES
Blink all level, High, Valve 2 open,
Medium and Low for mixer is on
20 times
Water Level
is Medium NO
Valve 2 close,
YES
mixer is off
Valve 2 close,
mixer is off
YES
NO
YES
Valve 2 open,
mixer is on
b) Construct an assembly programming for the processes based on the above flowchart.