DS1339 I
2
C Serial Real-Time Clock
7 of 20
TYPICAL OPERATING CHARACTERISTICS
(V
CC
= 3.3v, T
A
= +25°C, unless otherwise noted.)
I
BACKUP
vs. V
BACKUP
300
350
400
450
500
550
600
650
700
750
800
850
900
1.3 1.8 2.3 2.8 3.3 3.8 4.3 4.8 5.3
V
BACKUP
(V)
SUPPLY CURRENT (nA
V
CC
=0V
RS1=RS0=1
I
BATOSC2
(
SQWE = 1)
I
BATOSC
1
(SQWE = 0)
I
BACKUP
vs. Temperature
V
BACKUP
= 3.0V
300
350
400
450
500
550
600
650
-40 -20 0 20 40 60 80
TEMPERATURE (°C)
SUPPLY CURRENT (nA
V
CC
=0V
INTCN = 0
RS2 = RS1 = 1
INTCN = 0
I
CC
vs. V
CC
50
100
150
200
250
1.8 2.3 2.8 3.3 3.8 4.3 4.8 5.3
V
CC
(V)
SUPPLY CURRENT (uA
SCL=400kHz
I
CCA
SCL=SDA=0Hz
I
CCS
Oscillator Frequency vs. Supply Voltage
32768.0
32768.1
32768.2
32768.3
32768.4
32768.5
1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Oscillator Supply Voltage (V)
FREQUENCY (Hz)
DS1339 I
2
C Serial Real-Time Clock
8 of 20
PIN DESCRIPTION
PIN
NAME FUNCTION
µSOP
SO
1 X1
Connections for Standard 32.768kHz Quartz Crystal. The internal oscillator
circuitry is designed for operation with a crystal having a specified load
capacitance (C
L
) of 6pF. An external 32.768kHz oscillator can also drive the
DS1339. In this configuration, the X1 pin is connected to the external oscillator
signal and the X2 pin is left unconnected.
For more information about crystal selection and crystal layout considerations,
refer to Application Note 58: Crystal Considerations with Dallas Real-Time
Clocks.
2 X2
3 14 V
BACKUP
Secondary Power Supply. Supply voltage must be held between 1.3V and 3.7V
for proper operation. This pin can be connected to a primary cell, such as a
lithium button cell. Additionally, this pin can be connected to a rechargeable cell
or a super cap when used in conjunction with the trickle-charge feature. Diodes
should not be placed in series between the backup source and the V
BACKUP
input,
or improper operation will result. If a backup supply is not required, V
BACKUP
must
be grounded. UL recognized to ensure against reverse charging current when
used with a lithium cell. For more information, visit www.maxim-ic.com/qa/info/ul.
4 15 GND Ground. DC power is provided to the device on these pins.
5 16 SDA
Serial Data Input/Output. SDA is the input/output pin for the I
2
C serial interface.
The SDA pin is an open-drain output and requires an external pullup resistor.
The pull up voltage may be up to 5.5V regardless of the voltage on V
CC
.
6 1 SCL
Serial Clock Input. SCL is used to synchronize data movement on the I
2
C serial
interface. The pull up voltage may be up to 5.5V regardless of the voltage on
V
CC
.
7 2
SQW/INT
Square-Wave/Interrupt Output. Programmable square-wave or interrupt output
signal. The SQW/INT pin is an open-drain output and requires an external pullup
resistor. The pull up voltage may be up to 5.5V regardless of the voltage on V
CC
.
If not used, this pin may be left unconnected.
8 3 V
CC
Primary Power Supply. When voltage is applied within normal limits, the device
is fully accessible and data can be written and read. When a backup supply is
connected and V
CC
is below V
PF
, reads and writes are inhibited. The timekeeping
and alarm functions operate when the device is powered by V
CC
or V
BACKUP
.
4–13 N.C. No Connection. These pins are unused and must be connected to ground.
TYPICAL OPERATING CIRCUIT
DS1339
4
CPU
VCC
VCC
VCC
5
6
8
1 2
SDA
SCL
GND
X2X1
VCC
RPU RPU
CRYSTAL
SQW/INT
VBACKUP
3
7
i
DS1339 I
2
C Serial Real-Time Clock
9 of 20
DETAILED DESCRIPTION
The DS1339 serial real-time clock (RTC) is a low-power clock/date device with two programmable time-of-day
alarms and a programmable square-wave output. Address and data are transferred serially through an I
2
C bus.
The clock/date provides seconds, minutes, hours, day, date, month, and year information. The date at the end of
the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The
clock operates in either the 24-hour or 12-hour format with AM/PM indicator. The DS1339 has a built-in power-
sense circuit that detects power failures and automatically switches to the backup supply, maintaining time, date,
and alarm operation.
OPERATION
The DS1339 operates as a slave device on the serial bus. Access is obtained by implementing a START condition
and providing a device identification code followed by data. Subsequent registers can be accessed sequentially
until a STOP condition is executed. The device is fully accessible and data can be written and read when V
CC
is
greater than V
PF
. However, when V
CC
falls below V
PF
, the internal clock registers are blocked from any access. If
V
PF
is less than V
BACKUP
, the device power is switched from V
CC
to V
BACKUP
when V
CC
drops below V
PF
. If V
PF
is
greater than V
BACKUP
, the device power is switched from V
CC
to V
BACKUP
when V
CC
drops below V
BACKUP
. The
registers are maintained from the V
BACKUP
source until V
CC
is returned to nominal levels. The block diagram in
Figure 3 shows the main elements of the serial real-time clock.
POWER CONTROL
The power-control function is provided by a precise, temperature-compensated voltage reference and a
comparator circuit that monitors the V
CC
level. The device is fully accessible and data can be written and read
when V
CC
is greater than V
PF
. However, when V
CC
falls below V
PF
, the internal clock registers are blocked from any
access. If V
PF
is less than V
BACKUP
, the device power is switched from V
CC
to V
BACKUP
when V
CC
drops below V
PF
. If
V
PF
is greater than V
BACKUP
, the device power is switched from V
CC
to V
BACKUP
when V
CC
drops below V
BACKUP
. The
registers are maintained from the V
BACKUP
source until V
CC
is returned to nominal levels (Table 1). After V
CC
returns
above V
PF
, read and write access is allowed after t
REC
(Figure 1). On the first application of power to the device the
time and date registers are reset to 01/01/00 01 00:00:00 (MM/DD/YY DOW HH:MM:SS).
Table 1. Power Control
SUPPLY CONDITION
READ/WRITE
ACCESS
POWERED
BY
V
CC
< V
PF
, V
CC
< V
BACKUP
No V
BACKUP
V
CC
< V
PF
, V
CC
> V
BACKUP
No V
CC
V
CC
> V
PF
, V
CC
< V
BACKUP
Yes V
CC
V
CC
> V
PF
, V
CC
> V
BACKUP
Yes V
CC
OSCILLATOR CIRCUIT
The DS1339 uses an external 32.768kHz crystal. The oscillator circuit does not require any external resistors or
capacitors to operate.
Table 2 specifies several crystal parameters for the external crystal. Figure 3 shows a
functional schematic of the oscillator circuit. The startup time is usually less than 1 second when using a crystal
with the specified characteristics.

DS1339U-2+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Real Time Clock I2C Serial RTC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet