ORG 0000H
AJMP MAIN
ORG 0003H
LJMP INTR
ORG 0013H
LJMP INTR1
ORG 0100H
MAIN:MOV SP,#60H
MOV IE,#85H
MOV IP,#01H
MOV P1,#00H
HERE:SJMP HERE
INTR:MOV R2,#5
D1:SETB P1.0
ACALL DEL
CLR P1.0
ACALL DEL
DJNZ R2,D1
RETI
INTR1:MOV R3,#5
D1:SETB P1.1
ACALL DEL
CLR P1.1
ACALL DEL
DJNZ R3,D1
RETI
DEL:MOV R6,#200
DEL1:MOV R5,#250
DEL2:DJNZ R5,DEL2
DJNZ R6,DEL1
RET
END
程序如上,出现的问题是执行完高级中断INT0后,回不到低级中断INT1中,求解呀,纠结了好久。 |