Professional Documents
Culture Documents
Developing Counter and Time Delay Routine
Developing Counter and Time Delay Routine
• Delays=No. of T-States/Frequency.
Turn
TurnSignal
Signalto
toYellow
Yellow MVI A 02H
OUT 01H
Load
Load DelayYellow
DelayYellow LD B DELAY_YELLOW
Time
TimeDelay
Delay CALL DELAY
MVI A 03H
Turn
TurnSignal
Signalto
toGreen
Green
OUT 01H
Load
Load DelayGreen
DelayGreen LD B DELAY_GREEN
CALL DELAY
Time
TimeDelay
Delay
JMP LOOP
Thanks