RS5C313
3. Counters
3.1 Clock Counter (at 0h to 5h)
D3
S8
D2
S4
D1
S2
D0
S1
( read and write cycle) 1-second time digit (at 0h)
(read and write cycle) 10-second time digit (at 1h)
(read and write cycle) 1-minute time digit (at 2h)
(read and write cycle) 10-minute time digit (at 3h)
S40
M4
M40
H4
S20
S10
M1
M10
H1
*
M8
M2
M20
H2
*
H8
(read and write cycle) 1-hour time digit
(at 4h)
P/A or H20
H10
(read and write cycle) 10-hour time digit (at 5h)
*
*
1) The “ ” mark in the above table indicates data which are set to 0 for read cycle and not set for write cycle.
*
2) Any carry to 1-second digits from the second counter is disabled when the WTEN bit (of the control register) is set to 0.
3) Time digit display ( BCD code):
Second digits: Range from 00 to 59 and carried to minute digits when incremented from 59 to 00.
Minute digits: Range from 00 to 59 and carried to hour digits when incremented from 59 to 00.
Hour digits: Range as shown in the section on the 12/24 bit and carried to day and day-of-the-week.
digits when incremented from 11 p.m. to 12 a.m. or 23 to 00.
4) Any registered imaginary time should be replaced with actual time as carrying to such registered imaginary time digits from
lower-order ones cause the clock counter to malfunction.
3.2 Day-of-the-week Counter (at 6h)
D3
D2
W4
D1
W2
D0
W1
( read and write cycle) Day-of-the-week counter
*
1) The “ ” mark in the above table indicates data which are set to 0 for read cycle and not set for write cycle.
*
2) Day-of-the-week digits are incremented by 1 when carried to 1-day digits.
3) Day-of-the-week digit display (incremented in septimal notation):
(W4W2W1)=(000)→ (001)→ - - - - - - → (110) → (000)
The relation between days of the week and day-of-the-week digits is user changeable (e.g. Sunday=000).
4) The (W4W2W1) should not be set to (111).
12