English
Language : 

SN8F2280 Datasheet, PDF (60/163 Pages) SONiX Technology Company – 8-Bit Micro-Controller
SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
Example: Switch normal/slow mode to green mode and enable T0 wake-up function.
; Set T0 timer wakeup function.
B0BCLR
B0BCLR
MOV
B0MOV
MOV
B0MOV
B0BCLR
B0BCLR
B0BSET
; Go into green mode
B0BCLR
B0BSET
FT0IEN
FT0ENB
A,#20H
T0M,A
A,#74H
T0C,A
FT0IEN
FT0IRQ
FT0ENB
FCPUM0
FCPUM1
; To disable T0 interrupt service
; To disable T0 timer
;
; To set T0 clock = Fcpu / 64
; To set T0C initial value = 74H (To set T0 interval = 10 ms)
; To disable T0 interrupt service
; To clear T0 interrupt request
; To enable T0 timer
;To set CPUMx = 10
’ Note: During the green mode with T0 wake-up function, the wakeup pin and T0 wakeup the system back
to the last mode. T0 wake-up period is controlled by program.
SONiX TECHNOLOGY CO., LTD
Page 60
Version 1.1