Traffic Control System Using 89C51: Project Title
Traffic Control System Using 89C51: Project Title
ACALL COUNTD
MOV p2,#26H ;Sent port2 from 26H
MOV p1,R1 ;Sent port1 from R1
ACALL DELAY2
MOV p2,R6 ;Sent port2 from R6
MOV p1,R2 ;Sent port1 from R2
ACALL COUNTD
MOV p2,R6 ;Sent port2 from R6
MOV p1,R2 ;Sent port1 from R2
ACALL COUNTD
MOV p2,R1 ;Sent port2 from R1
MOV p1,#34H ;Sent port1 from 34H
Program
ACALL DELAY2
MOV p2,R2 ;Sent port2 from R2
MOV p1,R4 ;Sent port1 from R4
ACALL COUNTD
MOV p2,R2 ;Sent port2 from R2
MOV p1,R4 ;Sent port1 from R4
ACALL COUNTD
MOV p2,#34H ;Sent port2 from 34H
MOV p1,R3 ;Sent port1 from R3
ACALL DELAY2
MOV p2,R4 ;Sent port2 from R4
MOV p1,R2 ;Sent port1 from R2
ACALL COUNTD
Program
MOV p2,R4 ;Sent port2 from R4
MOV p1,R2 ;Sent port1 from R2
ACALL COUNTD
MOV p2,R3 ;Sent port2 from R3
MOV p1,#24H ;Sent port1 from 24H
ACALL DELAY2
MOV p2,#0E4h ;Sent port2 from E4H
MOV p1,#0E4h ;Sent port1 from E4H
ACALL COUNTD
MOV p2,R2 ;Sent port2 from R2
MOV p1,#26H ;Sent port1 from 26H
ACALL DELAY2
LJMP START
Program
COUNTD: MOV p0,#67H ; 9 ACALL DELAY2
ACALL DELAY2 MOV p0,#4FH ; 3
MOV p0,#7FH ; 8 ACALL DELAY2
ACALL DELAY2 MOV p0,#5BH ; 2
MOV p0,#27H ; 7 ACALL DELAY2
ACALL DELAY2 MOV p0,#06H ; 1
MOV p0,#7DH ; 6 ACALL DELAY2
ACALL DELAY2 MOV p0,#3fH ; 0
ACALL DELAY2
MOV p0,#6DH ; 5
RET
ACALL DELAY2
MOV p0,#66H ; 4
Program
DELAY1: MOV R0,#0EFH DELAY2: MOV
L3: MOV R5,#7DH R0,#7DH ;47
L6: MOV R5,#7DH
L2: MOV R7,#7DH L5: MOV R7,#0FFH
L1: NOP
NOP L4: DJNZ R7,L4
DJNZ R7,L1 NOP
DJNZ R5,L5
DJNZ R5,L2 DJNZ R0,L6
DJNZ R0,L3 RET
RET END
Simulation
Reference
http://www.engineersgarage.com/electronic-compon
ents/at89c51-microcontroller-datasheet
https://www.ece.cmu.edu/~ece348/labs/docs/SN74LS
245.pdf
http://www.me.umn.edu/courses/me2011/arduino/tec
hnotes/dcmotors/L293/L293.html
UIUserver 2
Thanks
Any Question or Query ?