R01UH0136EJ0210 Rev.2.10
Page 102 of 800
Jul 31, 2012
M16C/64A Group
8. Clock Generator
8.7
Oscillator Stop/Restart Detect Function
This function detects a stop/restart of the main clock oscillator. The oscillator stop/restart detect function
can be enabled and disabled with the CM20 bit in the CM2 register.
A reset or oscillator stop/restart detect interrupt is generated when an oscillator stop or restart is detected.
Set the CM27 bit in the CM2 register to select the reset or interrupt.
Table 8.6 lists Oscillator Stop/Restart Detect Function Specifications.
8.7.1
Operation When CM27 Bit is 0 (Oscillator Stop Detect Reset)
When main clock stop is detected while the CM20 bit is 1 (oscillator stop/restart detect function
enabled), the MCU is initialized, and then stops (oscillator stop reset). Refer to 4. “Special Function
Registers (SFRs)” and 6. “Resets”.
The status can be cancelled by a hardware reset or a voltage monitor 0 reset. The MCU can also be
initialized and stopped when a restart is detected, but do not use the MCU in this manner. During main
clock stop, do not set the CM20 bit to 1 and the CM27 bit to 0.
Table 8.6
Oscillator Stop/Restart Detect Function Specifications
Item Specification
Oscillator stop detectable clock and
frequency bandwidth
f(XIN)
≥
2 MHz
Enabling condition for the oscillator
stop/restart detect function
Set the CM20 bit to 1 (enabled)
Operation when oscillator stop/restart
detected
When CM27 bit is 0: Oscillator stop detect reset generated
When CM27 bit is 1: Oscillator stop/restart detect interrupt
generated
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...