ORG 00H
 JMP START
 ORG 30H
START:
 MOV A,#01010101B
BEGIN:
  MOV P1,A
  CALL DELAY
  RL A
  JMP start 
DELAY:
 MOV R7,#05
L3:
 MOV R6,#200
L2:
 MOV R5,#248
 NOP
L1:
 DJNZ R5,L1
 DJNZ R6,L2
 DJNZ R7,L3
 RET
 END

arrow
arrow
    全站熱搜

    Joy 發表在 痞客邦 留言(0) 人氣()