
RTC-58321/58323
Page - 6
I
Registers
1. Register table
Address
D
3
D
2
D
1
D
0
Register
DATA
Count value
Notes
(hexadecimal)
(A
3
)
(A
2
)
(A
1
)
(A
0
)
name
D
3
D
2
D
1
D
0
0
0
0
0
0
S
1
s
8
s
4
s
2
s
1
0 to 9
Seconds units register
1
0
0
0
1
S
0
*
s
40
s
20
s
10
0 to 5
Seconds tens register
2
0
0
1
0
MI
1
mi
8
mi
4
mi
2
mi
1
0 to 9
Minutes units register
3
0
0
1
1
MI
10
*
mi
40
mi
20
mi
10
0 to 5
Minutes tens register
4
0
1
0
0
H
1
h
8
h
4
h
2
h
1
0 to 9
Hours units register
5
0
1
0
1
H
10
24/12
pm/am
h
20
h
10
0 to 1 or 0 to 2
Hours tens register
6
0
1
1
0
W
*
w
4
w
2
w
1
0 to 6
Day-of-week register
7
0
1
1
1
D
1
d
8
d
4
d
2
d
1
0 to 9
Day units register
8
1
0
0
0
D
10
Leap year select
d
20
d
10
0 to 3
Day tens register
9
1
0
0
1
MO
1
mo
8
mo
4
mo
2
mo
1
0 to 9
Month units register
A
1
0
1
0
MO
10
*
*
*
mo
10
0 to 1
Month tens register
B
1
0
1
1
Y
1
y
8
y
4
y
2
y
1
0 to 9
Year units register
C
1
1
0
0
Y
10
y
80
y
40
y
20
y
10
0 to 9
Year tens register
D
1
1
0
1
*
*
*
*
Reset register
E
1
1
1
0
1hour
1minute
1second
1024Hz
Reference signal registers
F
1
1
1
1
2. Notes
(1) The device uses positive logic, and a logic high voltage corresponds to a 1 in a register bit.
(2) Do not set the clock to impossible dates (17:34 pm on February 30th, for example). The results are unpredictable.
(3) When the device is powered on, the initial settings of all bits are undefined.
I
Register functions
1. Date and time registers
(1) The register values are in BCD, and used positive logic.
E.g.(S
8
, S
4
, S
2
, S
1
) = (1, 0, 0, 1) = 9 seconds
(2) Day-of-week register
The value is coded as 0 to 6, with Sunday = 0.
Code
0
Day
Sun.
1
2
3
4
5
6
Mon.
Tue.
Wed.
Thu.
Fri.
Sat.
(3) pm/am, h
20
and h
10
registers
The range of these values depends on whether the 12-hour or 24-hour clock is being used.
The pm/am bit is used only when the 12-hour clock is selected.
Set D
3
to 1 for the 24-hour, and to 0 for the 12-hour clock.
Set D
2
to 1 for pm and to 0 for am. Writing a 1 to bit D
3
automatically resets bit D
2
to 0.
Selection
12-hour clock
24-hour clock
Value range
12:00 to 11:59 am and pm *
00:00 to 23:59
* Note: 12:00 am represents 12:00 midnight, and 12:00 pm represents 12:00 noon.
(4) Y
and Y
Leap year selection
Bits D
3
and D
2
of the day tens register select the year value module 4 to be used for leap years.
Calendar
Standard calendar
D
3
0
0
1
1
D
2
0
1
0
1
Value module 4 for leap year
0
3
2
1
(5) Do not set the clock to impossible dates (17:34 pm on February 30th, for example). The results are unpredictable.