How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 801 of 1852
Nov 30, 2020
RX23W Group 28. Realtime Clock (RTCe)
28.3.2 Clock and Count Mode Setting Procedure
Figure 28.3 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
Wait until the RCR2.CNTMD bit has the newly set
value
*1
CNTMD = the set value?
No
Yes