R01UH0136EJ0210 Rev.2.10
Page 92 of 800
Jul 31, 2012
M16C/64A Group
8. Clock Generator
CM22 (Oscillator stop/restart detect flag) (b2)
Condition to become 0:
•
Set it to 0.
Conditions to become 1:
•
Main clock stop is detected.
•
Main clock restart is detected.
(The CM22 bit remains unchanged even if 1 is written.)
When the CM22 bit changes state from 0 to 1, an oscillator stop/restart detect interrupt is generated.
Use this bit in an interrupt routine to determine the factors of interrupts between the oscillator
stop/restart detect interrupt and other interrupts.
When the CM22 bit is 1 and oscillator stop or restart is detected, an oscillator stop/restart detect
interrupt is not generated. The bit does not become 0 even if an oscillator stop/restart detect interrupt
request is accepted.
CM23 (XIN monitor flag) (b3)
Determine the main clock status by reading the CM23 bit several times in the oscillator stop/restart
detect interrupt routine.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...