24秒计时器的源程序,集电路图,不会的可以来学习!
文档内容节选
ORG 0000HSJMP MAINORG 000BHLJMP T0ISRORG 0030HMAINMOV P03FH MOV P10FFH MOV P23FH MOV R000H MOV R124 MOV DPTRTABKEYJB P30ACALL DELAY30MSJNB P30ACALL STARTSJMP KEYSTARTMOV TMOD01H MOV TH00D8H MOV TH00EFH STEB ET0 STEB EA SETB TR0STOP JB P32ZTJX ACALL DELAY30MS JNB P32 SJMP MAIN ZTJXJB P31XS ACALL DELAY30MSJNB P32ZT CLR TRO CLR ETOCLR EAJB P31 ACALL DELAY30MSJNB P31JX SETB ETO SETB ENSETB TR0XS MOV AR1 MOV B10DIV ABMOVC AADPTRMOV P2A CJNE RO100STOP MOV RO00H MOV AR1 CLR C......
猜您喜欢
评论