μ
PD4991A
18
(2) Selecting 12-/24-hour mode
In the 12-hour mode, the second significant bit of the data for the 10-hour digit are used as an AM/PM flag.
AM = 00**
PM = 01**
Select the 12- or 24-hour mode before setting the time. Note that, if the mode is selected after the time has
been set, the data of the time counter is lost.
Table 8 Data Correspondence Table 5 shows how the 12- or 24-hour mode is selected.
Table 8 Data Correspondence Table 5
Leap year, 12-/24-hour mode selection
(MODE = 0, *, 1, 0 ADDRESS = 1, 1, 0, 0)
D3
D2
D1
D0
1: 24-hour mode
0: 12-hour mode
Leap Year
0: Valid
1: Invalid
R/W
*
*
*: Don’t Care
Example:
In 12-hour mode
10-hour digit
0000
0100
0001
0101
1-hour digit
1000
1000
0010
0010
Hexadecimal
08H
48H
12H
52H
AM 8
PM 8
AM12
→
PM12
→
→
→
Notes on the use of the 12-hour mode
When writing AM12, write the lower digit and then the higher digit (i.e., write “2” to the 1-hour digit, and then
write “1” to the 10-hour digit); otherwise, PM12 may be set.
(3) Setting leap year counter
When a digit of year is written, the
μ
PD4991A automatically sets the leap year counter.
Years are based on the Christian Era, and a leap year occurs every 4 years.
The user can directly write data to the leap year counter.
However, to do so, write the year counter first. If the leap year counter is written and then the year counter
is written, the leap year counter is automatically reset.
The leap year is identified when the value of the leap year counter is **00B.
The leap year counter can be set independently of the year counter.
The leap year counter is incremented in synchronization with the 1-year digit counter.
Table 9 Data Correspondence Table 6 shows how the leap year is identified.