各位大神下面这个程序为什么进入中断(IT)后出不来呢,一直停留在中断处循环,led灯就一直工作在此中断下闪烁,为什么
ORG 00H
LJMP START
ORG 03H
LJMP IT
START:
MOV IE,#81H
MOV IP,#01H
MOV TCON,#0H
MOV SP,70H
M:
MOV A,#00H
MOV P1,A
LCALL DELAY
CPL A
MOV P1,A
LCALL DELAY
JMP M
IT:
PUSH ACC
PUSH PSW
SETB RS0
CLR RS1
MOV R0,#3
LOOP3:
MOV A,#0FH
MOV P1,A
LCALL DELAY
MOV A,#00H
MOV P1,A
LCALL DELAY
DJNZ R0,LOOP3
POP PSW
POP ACC
RETI
DELAY:
MOV R5,#20H
DLY1:
MOV R6,#10H
DLY2:
MOV R7,#10H
DJNZ R7,$
DJNZ R6,DLY2
DJNZ R5,DLY1
RET
END |