Day-Of-The-Week Counter (Wkcnt); Day Counter (Daycnt); Month Counter (Moncnt) - Renesas SH7727 General Information Manual

T-engine development kit, hardware volume
Table of Contents

Advertisement

R0P7727TH003TRKE General Information Manual

6.3.6 Day-of-the-Week Counter (WKCNT)

Address: 0x0005 Initial Value: 0xXX (Not defined)
D7
D6
0
0
R
R
Counting takes place within a range from 0x00 to 0x06.
The following shows the correspondence between the day of the week and the value of the septinary
incremental counter.
(D2.D1.D0) = (0.0.0) →Sunday
(D2.D1.D0) = (0.0.1) →Monday
(D2.D1.D0) = (0.1.0) →Tuesday
(D2.D1.D0) = (0.1.1) →Wednesday
(D2.D1.D0) = (1.0.0) →Thursday
(D2.D1.D0) = (1.0.1) →Friday
(D2.D1.D0) = (1.1.0) →Saturday

6.3.7 Day Counter (DAYCNT)

Address: 0x0006 Initial value: 0xXX (Not defined)
D7
D6
0
0
R
R
The counter value is a BCD (Binary Coded Decimal) value. Counting takes place within a range from 1 to 31
(January, March, July, August, October and December), 1 to 30 (April, June, September and November), 1 to 28
(February in normal year) or 1 to 29 (February in leap year).

6.3.8 Month Counter (MONCNT)

Address: 0x0007 Initial value: 0xXX (Not defined)
D7
D6
0
0
R
R
The counter value is a BCD (Binary Coded Decimal) value. Counting takes place within a range from 1 to 12.
When the counter value changes from 12 to 1, a carry is generated in the year counter.
D5
D4
0
0
R
R
D5
D4
10 days
R/W
R/W
R/W
D5
D4
0
October
R
R/W
R/W
D3
D2
D1
0
Septinary incremental counter
R
R/W
R/W
D3
D2
D1
1 day
R/W
R/W
D3
D2
D1
January
R/W
R/W
53
Power Supply Controller
D0
R/W
D0
R/W
D0
R/W

Advertisement

Table of Contents
loading

Table of Contents