ORG 0000H
LJMP MAIN
ORG 000BH
LJMP T0ISR
ORG 0030H
MAIN:
MOV TMOD,#02H
MOV TH0,#56
MOV TL0,#56
SETB TR0
SETB ET0
SETB EA
MOV A,#0FH
START:
MOV DPTR,#2000H
MOV R2,#16
LOOP:
MOV @DPTR,A
INC DPTR
DJNZ R2,LOOP
SJMP START
T0ISR:
CPL P1.0
RETI
END
温馨提示:答案为网友推荐,仅供参考