SN8P2604A
8-Bit Micro-Controller
¾
Example: Switch normal/slow mode to Green mode and enable T0 wakeup function.
; Set T0 timer wakeup function.
B0BCLR
B0BCLR
MOV
B0MOV
MOV
FT0IEN
FT0ENB
A,#20H
T0M,A
A,#74H
T0C,A
; To disable T0 interrupt service
; To disable T0 timer
;
; To set T0 clock = Fcpu / 64
B0MOV
; To set T0C initial value = 74H (To set T0 interval = 10 ms)
B0BCLR
B0BCLR
B0BSET
FT0IEN
FT0IRQ
FT0ENB
; To disable T0 interrupt service
; To clear T0 interrupt request
; To enable T0 timer
; Go into green mode
B0BCLR
FCPUM0
FCPUM1
;To set CPUMx = 10
B0BSET
Note: During the green mode with T0 wake-up function, the wakeup pins, reset pin and T0 can wakeup
the system back to the last mode. T0 wake-up period is controlled by program and T0ENB must be set.
SONiX TECHNOLOGY CO., LTD
Page 57
Version 0.3