R01UH0823EJ0100 Rev.1.00 Page 769 of 1823
Jul 31, 2019
RX23W Group 28. Realtime Clock (RTCe)
28.2.6 Date Counter (RDAYCNT)
The RDAYCNT counter is used in calendar count mode.
The RDAYCNT counter is used for setting and counting the BCD-coded date value. It counts carries generated once per
day in the hour counter. The count operation depends on the month and whether the year is a leap year.
Leap years are determined according to whether the year counter (RYRCNT) value is divisible by 400, 100, and 4.
A value from 01 through 31 (in BCD) can be specified; if a value outside of this range is specified, the RTC does not
operate correctly. (When specifying a value, note that the range of specifiable days depends on the month and whether
the year is a leap year.) Before writing to this register, be sure to stop the count operation through the setting of the
START bit in RCR2.
After writing to the RHRCNT counter, confirm that its value has actually changed before proceeding with further
processing. Refer to
section 28.6.5, Notes When Writing to and Reading from Registers for notes on accessing
registers.
Address(es): RTC.RDAYCNT 0008 C40Ah
b7 b6 b5 b4 b3 b2 b1 b0
— — DATE10[1:0] DATE1[3:0]
Value after reset:
00xxxxxx
x: Undefined
Bit Symbol Bit Name Description R/W
b3 to b0 DATE1[3:0] 1-Day Count Counts from 0 to 9 once per day. When a carry is generated, 1 is
added to the tens place.
R/W
b5, b4 DATE10[1:0] 10-Day Count Counts from 0 to 3 once per carry from the ones place. R/W
b7, b6 — Reserved These bits are read as 0. The write value should be 0. R/W