?? delay_fuc.asm
字號:
.global DelayClock
.global Delay30ns
.global Delay50ns
.global Delay01us
.global Delay05us
.global Delay1us
.global Delay05ms
.global Delay1ms
.global Delay100ms,Delay50us,Delay350us
.mmregs
.text
************************Delay Program*******************************************
**********************************Delay use 100M DSPCLK****************************
DelayClock: nop
nop
ret
Delay30ns: rpt #3 ;delay 30ns
nop
ret
Delay50ns: rpt #5 ;delay 50ns
nop
ret
Delay01us: rpt #10 ;generate 5M CLK
nop
ret
Delay05us: rpt #50 ;generate 1M clk(0.5T)
nop
ret
Delay1us: rpt #100 ;generate 500K clk
nop
ret
Delay50us: rpt #4800 ;generate 500K clk
nop
ret
Delay05ms: rpt #02350h ;generate 1K clk
nop
ret
Delay350us: rpt #0f375h
nop
ret
Delay1ms: rpt #0ffffh ;generate 0.5K clk
nop
rpt #0ffffh
nop
rpt #4000h
nop
ret
Delay100ms: call Delay1ms1
RET
Delay1ms1:call Delay1ms11
call Delay1ms11
RET
Delay1ms11:call Delay1ms111
call Delay1ms111
call Delay1ms111
call Delay1ms111
RET
Delay1ms111:call Delay1ms
call Delay1ms
call Delay1ms
call Delay1ms
call Delay1ms
call Delay1ms
RET
********************************************************************************
.end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -