Traffic light controller 8051 in proteus ||Demo video

Published: 25 September 2020
on channel: Bhanu Prathap
164
6

In this video I have just shown the working of traffic light controller.

I will upload full video in sometime mean while have a look at the code

org 0000h
ljmp start


org 0200h
start:clr p0.0; set red led
setb p0.1;off yellow
setb p0.2;off green
lcall delayfor10;generate a delay of 10 sec
clr p0.1;yellow led on indicating red will turn off in sometime
lcall delayfor5;delay for yellow led
setb p0.0;off the red led
setb p0.1;off yellow led
clr p0.2;turn on green led
lcall delayfor10;delay for 10sec
clr p0.1;turn on yellow led for indicating the green will turn on
lcall delayfor5;delay for 5 sec
sjmp start;again repeat the same process

org 1500h
delayfor10:mov tmod,#01h;initilize the timer
mov r0,#152;
back: mov tl0,#00h;
mov th0,#00h;

setb tr0;
check:jnb tf0,check
clr tf0;
clr tr0;
djnz r0,back
ret;

org 1700h
delayfor5:mov tmod,#01h;initilize the timer
mov r0,#76;
back1: mov tl0,#00h;
mov th0,#00h;

setb tr0;
check1:jnb tf0,check1
clr tf0;
clr tr0;
djnz r0,back1
ret;



end;


Watch video Traffic light controller 8051 in proteus ||Demo video online without registration, duration hours minute second in high quality. This video was added by user Bhanu Prathap 25 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16 once and liked it people.