305
Chapter 23 Sub Oscillation Stabilisation Timer
5.Operation
5.3 Returning from the Stop Mode due to Interval Operation (Clock Interrupt)
(1) The sub oscillation stabilisation timer is cleared by software. (Writes “0” to WCL.)
(2) Counts up the sub oscillation stabilisation timer with the subclock.
(3) Selects the interval time. (In this example, 0.5 second: Selects WS[1:0]=“10”.)
(4) Sets the flag clear (WIF=“0”) and sub oscillation stabilisation timer interrupt enable (WIE=“1”) by the software.
(5) Switches the MCU operation from the main RUN to sub-RUN.
(6) Switches to the stop mode.
(7) Makes the interval time be the selected time. (0.5 second)
(8) The interrupt request flag (WIF) is set to “1”.
(9) As the interrupt request is enabled (WIE=“1”), returns from the stop mode to sub-RUN.
(10) Clears the interrupt request flag by software. (Writes “0” to the WIF.)
(11) Repeats Items (6) from (10).
WIF
Clock timer
counting
0000h
(3)
WCL
WIE
4000h
2
14
(Bit 13)
7FFFh
(5)
(1)
(7)
(6)
(4)
Main
RUN
STOP
Sub-
RUN
Sub-
RUN
Sub-
RUN
Sub-
RUN
Sub-
RUN
Sub-
RUN
(10)
(8)
(9)
MCU state
(2)
Interval time
STOP STOP STOP STOP
Oscillation stability wait time