R01UH0823EJ0100 Rev.1.00
Page 793 of 1823
Jul 31, 2019
RX23W Group
28. Realtime Clock (RTCe)
28.3.2
Clock and Count Mode Setting Procedure
shows how to set the clock and the count mode.
Figure 28.3
Clock and Count Mode Setting Procedure
Note 1. This step is not necessary if the count mode has been set concurrently with setting the START bit to 0.
A value corresponding to the count mode setting must be written to the RCR2.CNTMD bit.
START = 0
Set the START bit to 0
No
Yes
Wait for the RCR2.START bit to become 0
Select count mode
Supply 6 clocks of the count source
Set the RCR3 register
Wait for the RCR2.RESET bit to become 0
RESET = 0
No
Yes
Set the sub-clock oscillator
Execute RTC software reset
RCR2.CNTMD bit setting
*1
Write 1 to the RCR2.RESET bit