MAIN:
MOV R1,#30
LOOP:
SETB P1.0
CALL DELAY
CALL DELAY
CLR P1.0
MOV R0,#38
WAIT:
CALL DELAY
DJNZ R0,WAIT
DJNZ R1,LOOP
MOV R1,#30
LOOP2:
SETB P1.0
CALL DELAY
CALL DELAY
CALL DELAY
CLR P1.0
MOV R0,#37
WAIT1:
CALL DELAY
DJNZ R0,WAIT1
DJNZ R1,LOOP2
MOV R1,#30
LOOP3:
SETB P1.0
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CLR P1.0
MOV R0,#36
WAIT2:
CALL DELAY
DJNZ R0,WAIT2
DJNZ R1,LOOP3
JMP MAIN
RET
DELAY:
MOV TMOD,#00010000B
為什麼三次轉動的度數都不相同
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.