Download Print this page

Renesas M16C/50 Series User Manual page 135

Advertisement

M16C/5L Group, M16C/56 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.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
8. Clock Generator
Page 98 of 803

Advertisement

loading