292
Chapter 22 Main Oscillation Stabilisation Timer
5.Operation
5. Operation
This section describes the main clock oscillation stability wait timer operation.
5.1 Main Clock Oscillation Stability Wait
(1) Selects the interval time. (WS[1:0]) (In this example, 2
17
/F
CL-MAIC
is selected.)
(2) Sets timer clear (WCL=“0”) by the software.
(3) Sets flag clear (WIF=“0”) and interrupt request enable (WIE=“1”) by the software.
(4) Sets timer count enable (WEN=“1”) by the software.
(5) Releases main clock stop (OSCCR.OSCDS1=“0”) while the subclock is in operation by the software, and starts
main clock oscillation.
(6) Starts counting (The timer counts up using the main clock (source oscillation).)
(7) Stabilizes the main clock oscillation.
(8) The selected interval time is used. (Detects the falling edge of the dividing 2
17
.)
(9) Generates a main clock oscillation stability wait interrupt.
(10) Processing caused by an interrupt (Software): Operation clock switching (Sub-RUN => main RUN)
(11) Disables interrupt request (WIE=“0”) and clears interrupt request (WIF=“0”).
(12) Stops counting (WEN=“0”).