RL78/G13 Safety Function (Frequency Detection)
5.8.24 Stopping Real-Time Clock
Figure 5.27 shows the flowchart for stopping the real-time clock.
R_RTC_Stop()
return
Clear fixed-frequency interrupt request
flag
RTCIF bit 0
Disable fixed-frequency interrupts
RTCMK bit 1
Stop real-time clock
RTCE bit 0
Figure 5.27 Stopping Real-Time Clock
R01AN0956EJ0100 Rev. 1.00 Page 55 of 70
Feb. 27, 2012