Product Info

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 776 of 1852
Nov 30, 2020
RX23W Group 28. Realtime Clock (RTCe)
28.2.5 Day-of-Week Counter (RWKCNT)/Binary Counter 3 (BCNT3)
(1) In calendar count mode:
The RWKCNT counter is used for setting and counting in the coded day-of-week value. It counts carries generated once
per day in the hour counter.
A value from 0 through 6 can be specified; if a value outside of this range is specified, the RTC does not operate
correctly. Before writing to this register, be sure to stop the count operation through the setting of the START bit in
RCR2.
Refer to
section 28.6.5, Notes on Writing to and Reading from Registers for notes on accessing registers.
(2) In binary count mode:
The BCNT3 counter is a readable/writable 32-bit binary counter b31 to b24.
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.RWKCNT 0008 C408h
b7 b6 b5 b4 b3 b2 b1 b0
————— DAYW[2:0]
Value after reset:
xxxxxxxx
x: Undefined
Bit Symbol Bit Name Description R/W
b2 to b0 DAYW[2:0] Day-of-Week Counting
b2 b0
0 0 0: Sunday
0 0 1: Monday
0 1 0: Tuesday
0 1 1: Wednesday
1 0 0: Thursday
101: Friday
1 1 0: Saturday
1 1 1: Setting Prohibited
R/W
b7 to b3 Reserved Set these bits to 0. They are read as the set value. R/W
Address(es): RTC.BCNT3 0008 C408h
b7 b6 b5 b4 b3 b2 b1 b0
BCNT[31:24]
Value after reset:
xxxxxxxx
x: Undefined