How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 814 of 1852
Nov 30, 2020
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.
Figure 28.14 Initialization Procedure
RCR2 = 00h?
Set the RCR2 register to 00h
No
Yes
Wait for the RCR2 register to become 00h
Supply 6 clocks of the count source
Set the sub-clock oscillator
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
Set the RCR3 register
Write 1 to the RCR2.RESET bit