ORG 0000H
SJMP MAIN
org 000bh;
sjmp fbsc
ORG 0031H;
MAIN:MOV P1,#00H;
MOV P0,#0ffh;
mov sp,#40h;
mov a,#01h;
acall zcxa
mov tmod,#00h;
mov tl0,#18h;
mov th0,#0e0h
setb tr0
setb et0
setb ea
sjmp $
ZCXA:jb p0.0,aa
clr p1.0;
ZCXB:jb p0.1,aab;
clr p1.1;
ZCXC:jb p0.2,aac;
clr p1.2;
sjmp ZCXD;
aa:setb p1.0;
sjmp ZCXA;
aab:setb p1.1;
sjmp ZCXB
aac:setb p1.2;
sjmp ZCXC
ZCXD:clr p1.2;
ret
END
上一篇:自写单片机按键松手检测思路
下一篇:单片机产生脉宽300MS周期600MS方波
推荐阅读最新更新时间:2024-03-16 13:53