Table 2 shows the address map for the DS1390鈥?/div>
DS1393 RTC and RAM registers. The RTC registers are
located in address locations 00h to 0Fh in read mode,
and 80h to 8Fh in write mode. During a multibyte
access, when the address pointer reaches 0Fh, it
wraps around to location 00h. On the falling edge of the
CS
pin (DS1390/DS1391) or the rising edge of CE
(DS1392/DS1393), the current time is transferred to a
second set of registers. The time information is read
from these secondary registers, while the clock may
continue to run. This eliminates the need to re-read the
registers if the main registers update during a read. To
avoid rollover issues when writing to the time and date
registers, all registers should be written before the hun-
dredths-of-seconds registers reaches 99 (BCD).
DS1390/DS1391/DS1392/DS1393
Table 2. Address Map
WRITE
READ
ADDRESS ADDRESS
80h
81h
82h
83h
84h
85h
86h
87h
88h
89h
8Ah
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
AM1
AM2
0
0
0
0
0
Century
12/24
0
0
0
10 Year
Tenths of Seconds
10 Seconds
10 Minutes
AM/PM
10 Hour
8Ch
0Ch
AM4
DY/DT
0
8Dh
8Eh
8Fh
0Dh
0Eh
0Fh
EOSC
OSF
TCS3
0
0
0
TCS2
10 Date
BBSQI
X
BBSQI
0
TCS1
RS2
X
RS2
0
TCS0
RS1
X
RS1
0
DS1
Day
Date
INTCN
X
ESQW
0
DS0
0
0
0
0
ROUT1
AIE
X
AIE
AF
ROUT0
Status
Trickle
Charger
Control
Alarm Day
Alarm Date
1鈥? BCD
1鈥?1 BCD
DS1390/93
DS1391
DS1392
鈥?/div>
鈥?/div>
10
Hour
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
FUNCTION
Hundredths
of Seconds
Seconds
Minutes
Hours
Day
Date
Month
Year
Hundredths of Seconds
Seconds
Minutes
Day
Date
Month/
Century
Year
Alarm
Hundredths
of Seconds
Alarm
Alarm
RANGE
0鈥?9 BCD
00鈥?9 BCD
00鈥?9 BCD
1鈥?2 +AM/PM
00鈥?3 BCD
1鈥? BCD
01鈥?1 BCD
01鈥?2 +
Century BCD
00鈥?9 BCD
0鈥?9 BCD
00鈥?9 BCD
00鈥?9 BCD
1鈥?2 +
AM/PM
00鈥?3 BCD
Tenths of Seconds
10 Seconds
10 Minutes
AM/PM
10 Hour
0
10 Date
0
10
Month
10
Hour
0
0
Hundredths of Seconds
Seconds
Minutes
Hour
8Bh
0Bh
AM3
12/24
Hour
Alarm Hours
Note:
Unless otherwise specified, the state of the registers is not defined when power (V
CC
and V
BACKUP
) is first applied.
X = General-purpose read/write bit.
0 = Always reads as zero.
____________________________________________________________________
13
prev
next