R01UH0823EJ0100 Rev.1.00
Page 794 of 1823
Jul 31, 2019
RX23W Group
28. Realtime Clock (RTCe)
28.3.3
Setting the Time
shows how to set the time.
Figure 28.4
Setting the Time
28.3.4
30-Second Adjustment
shows how to execute 30-second adjustment.
Figure 28.5
30-Second Adjustment
START = 1
No
Wait for the RCR2.START bit to become 1
Yes
Note 1. This step is not necessary for the time-setting procedure because an RTC software reset
is executed in the clock setting procedure of the initial settings for the power supply.
Set the year, month, day of the week,
date, hour, minute, and second/
binary counters 3 to 0
Settings in arbitrary order is possible
Set the START bit to 1
Write 1 to the RCR2.START bit
Set clock error adjustment values
Set clock error adjustment values
RESET = 0
No
Yes
Wait for the RCR2.RESET bit to become 0
Execute an RTC software reset
Write 1 to the RCR2.RESET bit*
1
START = 0
No
Yes
Wait for the RCR2.START bit to become 0
Set the START bit to 0
Write 0 to the RCR2.START bit
Clock is in operation
Execute 30-second adjustment while the clock is in operation
(the RCR2.START bit is 1)
Set the RCR2.ADJ30 bit to 1
Wait for the RCR2.ADJ30 bit to become 0
Write 1 to the RCR2.ADJ30 bit
ADJ30 = 0
Yes
No