EKT222 Microprocessor System Northern Malaysia University College of Engineering
Lab 7
De s i g n Probl e m
Design a Washin g Machin e Spin Timer. Refer to the following algorit h m and the block diagr a m below: Set the tim e using the dip- switch ( Ma im u m !alu e is "" seco n d # The setting !alue will be displa $ on the se! e n seg m e n t The spin proc e s s will begin when the start butt o n is pres s and the n o o ST%RT the Motor (&'D ()# The displa $ !alue on the se! e n seg m e n t s start countin g down.
When the !alu e is *ero+ ST(, the mot or (&'D (--#
8255
Address Bus
O/P Port
Control Bus
M(T(R (&'D#
S'T T.M' (Dip- switch#
Data Bus
I/P Port ST%RT /0TT() (,ush- () Switch#
/lock Diagr a m
Microprocessor Laboratory Page