rohansinha2000
Member level 2
sir,
i have write a programmed but it is not working .....can anyone help me?
org 0h
start:Setb P0.0 ; send '1' to P0.0
call delay; call delay time
setb P0.1 ;
call delay;
setb P0.2 ;
call delay;
setb P0.3 ;
call delay;
setb P0.4 ;
call delay;
setb P0.5 ;
call delay;
setb P0.6 ;
call delay;
setb P0.7 ;
call delay;
call delay;
call delay;
call delay;
call delay;
Clr P0.7 ;
call delay;
Clr P0.6 ;
call delay;
Clr P0.5 ;
call delay;
Clr P0.4 ;
call delay:
Clr P0.3 ;
call delay;
Clr P0.2 ;
call delay;
Clr P0.1 ;
call delay;
Clr P0.0 ;
call delay;
sjmp start; loooooop forever to start
delay: mov R1,#255H
del1: mov R2,#255H
del2: djnz R2,del2
djnz R1,del1
ret
end
i have write a programmed but it is not working .....can anyone help me?
org 0h
start:Setb P0.0 ; send '1' to P0.0
call delay; call delay time
setb P0.1 ;
call delay;
setb P0.2 ;
call delay;
setb P0.3 ;
call delay;
setb P0.4 ;
call delay;
setb P0.5 ;
call delay;
setb P0.6 ;
call delay;
setb P0.7 ;
call delay;
call delay;
call delay;
call delay;
call delay;
Clr P0.7 ;
call delay;
Clr P0.6 ;
call delay;
Clr P0.5 ;
call delay;
Clr P0.4 ;
call delay:
Clr P0.3 ;
call delay;
Clr P0.2 ;
call delay;
Clr P0.1 ;
call delay;
Clr P0.0 ;
call delay;
sjmp start; loooooop forever to start
delay: mov R1,#255H
del1: mov R2,#255H
del2: djnz R2,del2
djnz R1,del1
ret
end