RL78/G13 Safety Function (Frequency Detection)
5.8.26 Stopping Real-Time Clock Fixed-Frequency Interrupt
Figure 5.29 shows the flowchart for stopping real-time clock fixed-frequency interrupts.
R_RTC_Set_
ConstPeriodInterruptOff
Clear fixed-frequency interrupt request
flag
RTCIF bit
0
Prevent fixed-frequency interrupts from
being used
RTCC0 register
RCLOE1 bit = 0: Disable 1-Hz output from RTC.
CT2 to CT0 bits = 0000b: Prevent fixed-frequency
interrupts from being used.
return
Figure 5.29 Stopping Real-Time Clock Fixed-Frequency Interrupt
R01AN0956EJ0100 Rev. 1.00 Page 57 of 70
Feb. 27, 2012