R01UH0823EJ0100 Rev.1.00 Page 765 of 1823
Jul 31, 2019
RX23W Group 28. Realtime Clock (RTCe)
28.2.2 Second Counter (RSECCNT)/Binary Counter 0 (BCNT0)
(1) In calendar count mode:
The RSECCNT counter is used for setting and counting the BCD-coded second value. It counts carries generated once
per second in the 64-Hz counter.
The setting range is decimal 00 to 59. The RTC will not operate normally if any other value is set. 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 RSECCNT 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.
(2) In binary count mode:
The BCNT0 counter is a readable/writable 32-bit binary counter b7 to b0.
The 32-bit binary counter performs count operation by a carry generating for each second of the 64-Hz counter.
Before writing to this register, be sure to stop the count operation through the setting of the START bit in RCR2.
To read this counter, follow the procedure in
section 28.3.5, Reading 64-Hz Counter and Time.
Address(es): RTC.RSECCNT 0008 C402h
b7 b6 b5 b4 b3 b2 b1 b0
— SEC10[2:0] SEC1[3:0]
Value after reset:
xxxxxxxx
x: Undefined
Bit Symbol Bit Name Description R/W
b3 to b0 SEC1[3:0] 1-Second Count Counts from 0 to 9 every second. When a carry is generated, 1 is
added to the tens place.
R/W
b6 to b4 SEC10[2:0] 10-Second Count Counts from 0 to 5 for 60-second counting. R/W
b7 — Reserved Set this bit to 0. It is read as the set value. R/W
Address(es): RTC.BCNT0 0008 C402h
b7 b6 b5 b4 b3 b2 b1 b0
BCNT[7:0]
Value after reset:
xxxxxxxx
x: Undefined