R01UH0823EJ0100 Rev.1.00 Page 778 of 1823
Jul 31, 2019
RX23W Group 28. Realtime Clock (RTCe)
28.2.15 Year Alarm Register (RYRAR)/Binary Counter 2 Alarm Enable Register
(BCNT2AER)
(1) In calendar count mode:
The RYRAR register is an alarm register corresponding to the BCD-coded year counter RYRCNT.
RYRAR values from 00 through 99 (in BCD) can be specified; if a value outside of this range is specified, the RTC does
not operate correctly.
After writing to the RYRAR register, 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.
This register is set to 0000h by an RTC software reset.
(2) In binary count mode:
The BCNT2AER register is a readable/writable register for setting the alarm enable corresponding to 32-bit binary
counter b23 to b16. Among the ENB[31:0] bits, the binary counter (BCNT[31:0]) corresponding to the bits which are set
to 1 and the binary alarm register (BCNTAR[31:0]) are compared, and when all match, the IR flag corresponding to the
ALM interrupt becomes 1.
This register is set to 0000h by an RTC software reset.
Address(es): RTC.RYRAR 0008 C41Ch
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
———————— YR10[3:0] YR1[3:0]
Value after reset:
00000000xxxxxxxx
x: Undefined
Bit Symbol Bit Name Description R/W
b3 to b0 YR1[3:0] 1 Year Value for the ones place of years R/W
b7 to b4 YR10[3:0] 10 Years Value for the tens place of years R/W
b15 to b8 — Reserved These bits are read as 0. The write value should be 0. R/W
Address(es): RTC.BCNT2AER 0008 C41Ch
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
———————— ENB[23:16]
Value after reset:
00000000xxxxxxxx
x: Undefined