R01UH0823EJ0100 Rev.1.00
Page 806 of 1823
Jul 31, 2019
RX23W Group
28. Realtime Clock (RTCe)
28.6.7
Initialization Procedure When the Realtime Clock is Not to be Used
Registers in the RTC are not initialized by a reset. Accordingly, depending on the initial state, the generation of an
unintentional interrupt request or operation of the counter may lead to increased power consumption.
For products that do not require a realtime clock, initialize the registers by following the initialization procedure shown
in
.
Figure 28.14
Initialization Procedure
START = 0
Set the START bit to 0
No
Yes
Wait for the RCR2.START bit to become 0
Supply 6 clocks of the count source
Set the sub-clock oscillator
RCR2.CNTMD bit setting
*1
Wait for the RCR2.RESET bit to become 0
RESET = 0
No
Yes
Execute RTC software reset
Disable the interrupt request
Write 0 to the RCR1.AIE, CIE, and PIE bits
Select count mode
Note1. This step is not necessary if the count mode has been set concurrently with setting the START bit to 0.
Set the RCR3 register
Write 1 to the RCR2.RESET bit