DS1340-3 MAXIM [Maxim Integrated Products], DS1340-3 Datasheet - Page 8
![no-image](/images/no-image-200.jpg)
DS1340-3
Manufacturer Part Number
DS1340-3
Description
I2C RTC with Trickle Charger
Manufacturer
MAXIM [Maxim Integrated Products]
Datasheet
1.DS1340-3.pdf
(14 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DS1340-3.3
Manufacturer:
MAXIM/美信
Quantity:
20 000
Company:
Part Number:
DS1340-33
Manufacturer:
ON
Quantity:
12 840
I
Table 3 shows the DS1340 address map. The RTC reg-
isters are located in address locations 00h to 06h, and
the control register is located at 07h. The trickle-charge
and flag registers are located in address locations 08h
to 09h. During a multibyte access of the timekeeping
registers, when the address pointer reaches 07h—the
end of the clock and control register space—it wraps
around to location 00h. Writing the address pointer to
the corresponding location accesses address locations
08h and 09h. After accessing location 09h, the address
pointer wraps around to location 00h. On a I
STOP, or address pointer incrementing to location 00h,
the current time is transferred to a second set of regis-
ters. The time information is read from these secondary
registers, while the clock may continue to run. This
eliminates the need to reread the registers in case the
main registers update during a read.
The time and calendar information is obtained by read-
ing the appropriate register bytes. Table 3 shows the
RTC registers. The time and calendar data are set or
initialized by writing the appropriate register bytes. The
contents of the time and calendar registers are in the
binary-coded decimal (BCD) format. The day-of-week
register increments at midnight. Values that correspond
to the day of week are user-defined but must be
sequential (i.e., if 1 equals Sunday, then 2 equals
Monday, and so on). Illogical time and date entries
result in undefined operation. Bit 7 of register 0 is the
X = Read/Write bit
Note: Unless otherwise specified, the state of the registers is not defined when power is first applied.
8
Table 3. Address Map
ADDRESS
2
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
C RTC with Trickle Charger
_____________________________________________________________________
EOSC
BIT 7
TCS3
OUT
CEB
OSF
X
X
X
X
BIT 6
TCS2
CB
FT
X
X
X
Clock and Calendar
0
10 Year
10 Seconds
10 Minutes
BIT 5
TCS1
X
X
S
0
Address Map
10 Hours
10 Date
10 Month
BIT 4
CAL4
TCS0
X
0
2
C START,
BIT 3
CAL3
DS1
X
0
CAL2
BIT 2
DS0
enable oscillator
oscillator is disabled. When cleared to 0, the oscillator is
enabled. The initial power-up value of EOSC is 0.
Location 02h is the century/hours register. Bit 7 and bit
6 of the century/hours register are the century-enable
bit (CEB) and the century bit (CB). Setting CEB to logic
1 causes the CB bit to toggle, either from a logic 0 to a
logic 1, or from a logic 1 to a logic 0, when the years
register rolls over from 99 to 00. If CEB is set to logic 0,
CB does not toggle.
When reading or writing the time and date registers,
secondary (user) buffers are used to prevent errors
when the internal registers update. When reading the
time and date registers, the user buffers are synchro-
nized to the internal registers on any START or STOP
and when the register pointer rolls over to zero. The
time information is read from these secondary registers
while the clock continues to run. This eliminates the
need to reread the registers in case the internal regis-
ters update during a read.
The divider chain is reset whenever the seconds regis-
ter is written. Write transfers occur on the acknowledge
from the DS1340. Once the divider chain is reset, to
avoid rollover issues, the remaining time and date reg-
isters must be written within one second.
The DS1340 has three additional registers (control,
trickle charger, and flag) that control the RTC, trickle
charger, and oscillator flag output.
0
Seconds
Minutes
Hours
Month
Date
Year
Day
ROUT1
CAL1
BIT 1
0
Special-Purpose Registers
(EOSC) bit. When this bit is set to 1, the
ROUT0
BIT 0
CAL0
0
Trickle Charger
Century/Hours
FUNCTION
Seconds
Minutes
Control
Month
Date
Year
Flag
Day
0–1; 00–23
RANGE
00–59
00–59
01–07
01–31
01–12
00–99
—
—
—