R01UH0823EJ0100 Rev.1.00 Page 799 of 1823
Jul 31, 2019
RX23W Group 28. Realtime Clock (RTCe)
28.3.8.3 Procedure for Changing the Mode of Adjustment
When changing the mode of adjustment, change the value of the AADJE bit in RCR2 after setting the
RADJ.PMADJ[1:0] bits to 00b (adjustment is not performed).
Changing from adjustment by software to automatic adjustment:
(1) Set the RADJ.PMADJ[1:0] bits to 00b (adjustment is not performed).
(2) Set the RCR2.AADJE bit to 1 (automatic adjustment is enabled).
(3) Use the RCR2.AADJP bit to select the period of adjustment.
(4) In RADJ, set the PMADJ[1:0] bits for addition or subtraction and the ADJ[5:0] bits to the value for use in time error
adjustment.
Changing from adjustment by software to automatic adjustment:
(1) Set the RADJ.PMADJ[1:0] bits to 00b (adjustment is not performed).
(2) Set the RCR2.AADJE bit to 0 (adjustment by software is enabled).
(3) Proceed with adjustment by setting the RADJ.PMADJ[1:0] bits for addition or subtraction and the RADJ.ADJ[5:0]
bits to the value for use in time error adjustment at the desired time. After that, the time is adjusted every time a
value is written to the RADJ register.
28.3.8.4 Procedure for Stopping Adjustment
Stop adjustment by setting the RADJ.PMADJ[1:0] bits to 00b (adjustment is not performed).