?? susp.a51
字號:
;;-----------------------------------------------------------------------------
;; File: susp.a51
;; Contents:
;;
;; $Archive: /USB/Target/Lib/lp/susp.a51 $
;; $Date: 3/23/05 2:51p $
;; $Revision: 3 $
;;
;;
;;-----------------------------------------------------------------------------
;; Copyright 2003, Cypress Semiconductor Corporation
;;-----------------------------------------------------------------------------
NAME SUSP
PUBLIC EZUSB_SUSP
$include (fx2regs.inc)
EZUSB segment code
rseg EZUSB
EZUSB_SUSP:
mov dptr,#WAKEUPCS ; Clear the Wake Source bit(s) in
movx a,@dptr ; the WAKEUPCS register
orl a,#0C0H ; clear PA2 and WPIN
movx @dptr,a
mov dptr,#SUSPEND ;
movx @dptr,a ; write any walue to SUSPEND register
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -