测试用2007-05-01 20:46:00
【评论】
【打印】
【字体:大 中 小】
本文链接:http://blog.pfan.cn/wentao/25452.html
time10us: mov r5,#05h
djnz r5,$
ret
time50us: mov r5,#19h
djnz r5,$
ret
time100us: mov r5,#31h
djnz r5,$
ret
time200us: mov r5,#64h
djnz r5,$
ret
time250us: mov r5,#7ch
djnz r5,$
ret
time350us: mov r5,#0afh
time350us_1: djnz r5,time350us_1
ret
time500us: mov r5,#0fah
time500us_1: djnz r5,time500us_1
ret
time1ms: mov r5,#0fah
time1ms_1: nop
nop
djnz r5,time1ms_1
ret
time2_5ms: mov r5,#05h
time2_5ms_1: mov r6,#0f8h
djnz r6,$
djnz r5,time2_5ms_1
ret
time10ms: mov r5,#14h
time10ms_1: mov r6,#0ffh
djnz r6,$
djnz r5,time10ms_1
ret
time50ms: mov r5,#63h
time50ms_1: mov r6,#0fbh
djnz r6,$
djnz r5,time50ms_1
ret
time100ms: mov r5,#0c3h
time100ms_1: mov r6,#0ffh
djnz r6,$
djnz r5,time100ms_1
ret
time200ms: mov r5,#02h
time200ms_1: mov r6,#0f4h
time200ms_2: mov r7,#0ffh
djnz r7,$
djnz r6,time200ms_2
djnz r5,time200ms_1
ret
time500ms: mov r5,#04h
time500ms_1: mov r6,#0f4h
time500ms_2: mov r7,#0ffh
djnz r7,$
djnz r6,time500ms_2
djnz r5,time500ms_1
ret
time1s: mov r5,#08h
time1s_1: mov r6,#0f4h
time1s_2: mov r7,#0ffh
djnz r7,$
djnz r6,time1s_2
djnz r5,time1s_1
ret
阅读(408) | 评论(0)
版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!
评论