RL78/G13 Safety Function (Frequency Detection)
5.8.23 Starting Real-Time Clock
Figure 5.26 shows the flowchart for starting the real-time clock.
R_RTC_Start()
Clear fixed-frequency interrupt request
flag
RTCIF bit
0
Enable fixed-frequency interrupts
RTCMK bit
0
Start real-time clock
RTCE bit
1
return
Figure 5.26 Starting Real-Time Clock
R01AN0956EJ0100 Rev. 1.00 Page 54 of 70
Feb. 27, 2012