Day-Of-Week Counter (Rwkcnt) - Hitachi SH7750 series Hardware Manual

Superh risc engine
Hide thumbs Also See for SH7750 series:
Table of Contents

Advertisement

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:
Initial value:
R/W:
Day-of-week code
Day of week
7
6
0
0
R
R
0
1
Sun
Mon
5
4
0
0
R
R
2
3
Tue
Wed
3
2
Day of week
0
Undefined Undefined Undefined
R
R/W
R/W
4
5
Thu
Fri
Rev. 4.0, 04/00, page 223 of 850
1
0
R/W
6
Sat

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7750sSh7750

Table of Contents