CHAPTER 8 CLOCK GENERATION FUNCTION
193
User’s Manual U15195EJ5V0UD
8.6 Securing Oscillation Stabilization Time
8.6.1 Oscillation stabilization time security specification
Two specification methods can be used to secure the time from when software STOP mode is released until the
stopped oscillator stabilizes.
(1) Securing the time using an on-chip time base counter
Software STOP mode is released when a valid edge is input to the NMI pin or a maskable interrupt request is
input (INTPn). When a valid edge is input to the pin causing the start of oscillation, the time base counter
(TBC) starts counting, and the time until the clock output from the oscillator stabilizes is secured during that
counting time (n = 0 to 4, 20 to 25).
Oscillation stabilization time = TBC counting time
After a fixed time, internal system clock output begins, and processing branches to the NMI interrupt or
maskable interrupt (INTPn) handler address.
Oscillation waveform (X2)
Set software STOP mode
Oscillator is stopped
CLKOUT (output)
Internal main clock
STOP state
NMI (input)
Note
Time base counter’s
counting time
Note
Valid edge: When specified as the rising edge.
The NMI pin should usually be set to an inactive level (for example, high level when the valid edge is
specified as the falling edge) in advance.
Software STOP mode is immediately released if an operation that sets software STOP mode before the CPU
can acknowledge interrupts is performed due to NMI valid edge input or maskable interrupt request input
(INTPn).
If the direct mode or external clock connection mode (CESEL bit of CKC register = 1) is used, program
execution begins after the count time of the time base counter has elapsed.
Also, even if the PLL mode and resonator connection mode (CESEL bit of CKC register = 0) are used,
program execution begins after the oscillation stabilization time is secured by the time base counter.