NORMAL Mode to SLOW Mode Switching
When running in the NORMAL Mode, which uses the high speed system oscillator, and therefore
consumes more power, the system clock can switch to run in the SLOW Mode by set the HLCLK bit to
²
0
²
and set the CKS2~CKS0 bits to
²
000
²
or
²
001
²
in the SMOD register. This will then use the low
speed system oscillator which will consume less power. Users may decide to do this for certain
operations which do not require high performance and can subsequently reduce power consumption.
The SLOW Mode clock is sourced from the LIRC oscillator.
SLOW Mode to NORMAL Mode Switching
In SLOW Mode the system uses the LIRC low speed system oscillator. To switch back to the
NORMAL Mode, where the high speed system oscillator is used, the HLCLK bit should be set to
²
1
²
or HLCLK bit is
²
0
²
, but CKS2~CKS0 is set to
²
010
²
,
²
011
²
,
²
100
²
,
²
101
²
,
²
110
²
or
²
111
²
. As a
certain amount of time will be required for the high frequency clock to stabilise, the status of the HTO
bit is checked. The amount of time required for high speed system oscillator stabilization depends
upon which high speed system oscillator type is used.
Entering the SLEEP Mode
There is only one way for the device to enter the SLEEP Mode and that is to execute the
²
HALT
²
instruction in the application program with the IDLEN bit in SMOD register equal to
²
0
²
. When this
instruction is executed under the conditions described above, the following will occur:
·
The system clock will be stopped and the application program will stop at the
²
HALT
²
instruction,
but the f
LIRC
clock will be on.
·
The Data Memory contents and registers will maintain their present condition.
·
The WDT will be cleared and resume counting.
·
The I/O ports will maintain their present conditions.
·
In the status register, the Power Down flag, PDF, will be set and the Watchdog time-out flag, TO,
will be cleared.
Rev. 1.50
42
April 28, 2020
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
S L O W M o d e
S L E E P M o d e
I D E L 0 M o d e
I D L E 1 M o d e
N O R M A L M o d e
C K S 2 ~ C K S 0 = 0 0 x B &
H L C L K = 0
I D L E N = 0
H A L T i n s t r u c t i o n i s e x e c u t e d
I D L E N = 1 , F S Y S O N = 0
H A L T i n s t r u c t i o n i s e x e c u t e d
I D L E N = 1 , F S Y S O N = 1
H A L T i n s t r u c t i o n i s e x e c u t e d
N O R M A L M o d e
S L E E P M o d e
I D L E 0 M o d e
I D L E 1 M o d e
S L O W M o d e
C K S 2 ~ C K S 0
¹
0 0 0 B , 0 0 1 B
a s H L C L K = 0 o r H L C L K = 1
I D L E N = 0
H A L T i n s t r u c t i o n i s e x e c u t e d
I D L E N = 1 , F S Y S O N = 0
H A L T i n s t r u c t i o n i s e x e c u t e d
I D L E N = 1 , F S Y S O N = 1
H A L T i n s t r u c t i o n i s e x e c u t e d