English
Language : 

HD6417750 Datasheet, PDF (325/1039 Pages) Renesas Technology Corp – SuperH RISC engine
11.2.5 Day-of-Week Counter (RWKCNT)
RWKCNT is an 8-bit readable/writable register used as a counter for setting and counting the
BCD-coded day-of-week value in the RTC. It counts on the carry generated once per day by the
hour counter.
The setting range is decimal 0 to 6. The RTC will not operate normally if any other value is set.
Write processing should be performed after stopping the count with the START bit in RCR2, or
by using the carry flag.
RWKCNT is not initialized by a power-on or manual reset, or in standby mode.
Bits 7 to 3 are always read as 0. A write to these bits is invalid, but the write value should always
be 0.
Bit: 7
6
5
4
3
2
1
0
—
—
—
—
—
Day of week code
Initial value: 0
0
0
0
0 Undefined Undefined Undefined
R/W: R
R
R
R
R
R/W R/W R/W
Day-of-week code
0
1
2
3
4
5
6
Day of week
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Rev. 6.0, 07/02, page 273 of 986