susp.a51
来自「fx2 gpifFIFOREAD方式实现高速数据传输数据固件」· A51 代码 · 共 23 行
A51
23 行
NAME SUSP
PUBLIC EZUSB_SUSP
$include (..\..\inc\ezregs.inc)
EZUSB segment code
rseg EZUSB
EZUSB_SUSP: mov dptr,#USBCS ; Clear the Wake Source bit in
movx a,@dptr ; the USBCS register
orl a,#80h
movx @dptr,a
orl PCON,#00000001b ; Place the processor in idle
nop ; Insert some meaningless instruction
nop ; fetches to insure that the processor
nop ; suspends and resumes before RET
nop
nop
er_end: ret
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?