mov r2,#200 1
dly:
mov r3,#249 1*200
djnz r3,$ 2*249*200
mov r3,#249 1*200
djnz r3,$ 2*249*200
mov r3,#249 1*200
djnz r3,$ 2*249*200
djnz r2,dly 2*200
ret 2
total:1+3*(200+2*249*200)+200+2=299803us
延时0.3秒程序(12M):DELAY3:
MOV R2,#200
DL1:
MOV R3,#250
DJNZ R3,$
MOV R3,#250
DJNZ R3,$
MOV R3,#250
DJNZ R3,$
DJNZ 戚岩孙R2,DL1
RET
延时0.5秒程序:
DELAY5:
MOV R2,#5
DLY1:
MOV R3,#200
DLY2:
MOV R4,#250
DJNZ 高链R4,$
枣链 DJNZ R3,DLY2
DJNZ R2,DLY1
RET
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)