我的小程序:
ORG 0000H
LJMP START
START: MOV SP, #30H
NOP
NOP
NOP
MOV P0CR, #47H ;01000111
MOV P1CR, #03H ;00000011
MOV P2CR, #60H ;01100000
MOV P3CR, #34H ;00110100
LOOP: MOV P0, #47H
MOV P1, #03H
MOV P2, #60H
MOV P3, #34H
ACALL DELAY_1S
MOV P0, #00H
MOV P1, #00H
MOV P2, #00H
MOV P3, #00H
ACALL DELAY_1S
SJMP LOOP
DELAY_1S: MOV R7, #0CDH
DL1: MOV R6, #0E6H
DL0: MOV R5, #0FDH
DJNZ R5, $
DJNZ R6, DL0
DJNZ R7, DL1
MOV R5, #0FH
DJNZ R5, $
NOP
RET
END
请帮忙看看到底是什么原因谢谢 |