SN8P2501D
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 50 Version 1.5
5.6 OPERATING MODE CONTROL MACRO
Sonix provides operating mode control macros to switch system operating mode easily.
The system insets into Sleep Mode (Power Down Mode).
The system inserts into Green Mode.
The system inserts into Slow Mode and stops high speed oscillator.
The system returns to Normal Mode from Slow Mode. The macro
includes operating mode switch, enable high speed oscillator, high
speed oscillator warm-up delay time.
Example: Switch normal/slow mode to power down (sleep) mode.
; Declare “SleepMode” macro directly.
Example: Switch normal mode to slow mode.
; Declare “SlowMode” macro directly.
Example: Switch slow mode to normal mode (The external high-speed oscillator stops).
; Declare “Slow2Normal” macro directly.
Example: Switch normal/slow mode to green mode.
; Declare “GreenMode” macro directly.
Example: Switch normal/slow mode to green mode and enable T0 wake-up function.
; Set T0 timer wakeup function.
; To disable T0 interrupt service
; 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
; Declare “GreenMode” macro directly.
Example: Switch normal/slow mode to green mode and enable T0 wake-up function with RTC.
; Enable T0 RTC function.
; Declare “GreenMode” macro directly.