TRAFFIC SIGNAL
TRAFFIC SIGNAL
CODE:-
STR:MOV P1,#11011110B
CALL BGD
MOV P1,#11101110B
CALL SMD
MOV P1,#11110011B
CALL SMD
JMP STR
BGD:MOV R0,#0ABH
UP:MOV R1 ,#06H
HERE:DJNZ R1,HERE
DJNZ R0,UP
RET
SMD:MOV R0,#10H
UP1:MOV R1,#06H
HERE1:DJNZ R1 , HERE1
DJNZ R0,UP1
RET
CODE:-
Comments
Post a Comment