R8C/13 Group
6.5 Oscillation Stop Detection Function
Table 6.5 Interrupt Factor Determination of Oscillation Stop Detection, Watchdog Timer Interrupt or
Voltage Detection Interrupt
Generated Interrupt Factor
Oscillation stop detection
( (a) or (b) )
Bit showing interrupt source
(a) The OCD3 bit in the OCD register = 1
(b) The OCD1 to OCD0 bits in the OCD register = 112 and the
OCD2 bit = 1
Watchdog timer
The D43 bit in the D4INT register = 1
The D42 bit in the D4INT register = 1
Voltage detection
Switch to Main clock
Verify OCD3 bit
1(main clock stop)
0(main clock oscillating)
Determine several times
Determine several times that the main clock is supplied
Set OCD1 to OCD0 bits to 00
2
(oscillation stop detection function disabled)
Set OCD2 bit to 0
(selecting main clock)
End
OCD3 to OCD0 bits: Bits in OCD register
Figure 6.7 Switching Clock Source From Low-speed On-Chip Oscillator to Main Clock
Rev.1.20 Jan 27, 2006 page 43 of 205
REJ09B0111-0120