Renesas M16C/64A Series User Manual page 125

Table of Contents

Advertisement

M16C/64A Group
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.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
8. Clock Generator
Page 92 of 800

Advertisement

Table of Contents
loading

Table of Contents