R01UH0136EJ0210 Rev.2.10
Page 103 of 800
Jul 31, 2012
M16C/64A Group
8. Clock Generator
8.7.2
Operation When CM27 Bit is 1 (Oscillator Stop/Restart Detect Interrupt)
When the CM20 bit is 1 (oscillator stop/restart detect function enabled), the system is placed in the
state shown in Table 8.7 if the main clock detects oscillator stop or restart.
The CM21 bit becomes 1 in high-speed, medium-speed, or low-speed mode. Thus, high-speed and
medium-speed mode become 125 kHz on-chip oscillator mode. Because the CM07 bit does not
change, low-speed mode remains in low-speed mode, but fOCO-S becomes the clock source for the
peripheral functions.
Since the CM21 bit does not change in PLL operating mode, change the mode to 125 kHz on-chip
oscillator mode in the interrupt routine.
Table 8.7
State after Oscillator Stop/Restart Detect When CM27 Bit is 1
Condition
After Detection
Main clock
oscillator stop
detected
High-speed mode
Medium-speed
mode
•
Oscillator stop/restart detect interrupt is generated
•
CM14 bit is 0 (125 kHz on-chip oscillator on)
•
CM21 bit is 1 (fOCO-S is used as the clock source for the CPU and
peripheral function clocks)
(1)
•
CM22 bit is 1 (main clock stop detected)
•
CM23 bit is 1 (main clock stopped)
Low-speed mode
125 kHz on-chip
oscillator mode
PLL operating mode
•
Oscillator stop/restart detect interrupt is generated
•
CM14 bit is 0 (125 kHz on-chip oscillator on)
•
CM21 bit remains unchanged
•
CM22 bit is 1 (main clock stop detected)
•
CM23 bit is 1 (main clock stopped)
Main clock
oscillator
restart
detected
-
•
Oscillator stop/restart detect interrupt is generated
•
CM14 bit is 0 (125 kHz on-chip oscillator on)
•
CM21 bit does not change
•
CM22 bit is 1 (main clock stop detected)
•
CM23 bit is 0 (main clock oscillating)
CM14 bit: Bit in the CM1 register
Bits CM21, CM22, CM23: Bits in the CM2 register
Note:
1.
fC is used as the CPU clock in low-speed mode.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...