Hitachi SH7760 Solution Engine2 Overview page 63

Table of Contents

Advertisement

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) ------ Wednesdady
(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
D5
D4
0
October
R
R/W
D3
D2
0
Septinary increnental counter
R
R/W
R/W
D3
D2
1 day
R/W
R/W
R/W
D3
D2
Janualy
R/W
R/W
R/W
60
D1
D0
R/W
D1
D0
R/W
D1
D0
R/W

Advertisement

Table of Contents
loading

Table of Contents