DS1339
I
2
C Serial Real-Time Clock
www.maxim-ic.com
GENERAL 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
2
through an I 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 and date operation.
FEATURES
§
§
§
§
§
§
§
§
§
Real-Time Clock (RTC) Counts Seconds, Minutes,
Hours, Day, Date, Month, and Year with Leap-
Year Compensation Valid Up to 2100
Available in a Surface-Mount Package with an
Integrated Crystal (DS1339C)
2
I C Serial Interface
Two Time-of-Day Alarms
Programmable Square-Wave Output
Oscillator Stop Flag
Automatic Power-Fail Detect and Switch Circuitry
Trickle-Charge Capability
Underwriters Laboratory (UL) Recognized
APPLICATIONS
Handhelds (GPS, POS Terminals)
Consumer Electronics (Set-Top Box, Digital
Recording, Network Appliance)
Office Equipment (Fax/Printers, Copier)
Medical (Glucometer, Medicine Dispenser)
Telecommunications (Routers, Switches, Servers)
Other (Utility Meter, Vending Machine, Thermostat,
Modem
)
Pin Configurations appear at end of data sheet.
*I
2
C is a trademark of Philips Corp. Purchase of I
2
C components
from Maxim Integrated Products, Inc., or one of its sublicensed
Associated Companies, conveys a license under the Philips I
2
C
Patent Rights to use these components in an I
2
C system, provided
that the system conforms to the I
2
C Standard Specification as
defined by Philips.
ORDERING INFORMATION
PART
DS1339C-2
DS1339C-2+
DS1339C-3
DS1339C-3+
DS1339C-33
DS1339C-33+
DS1339U-2
DS1339U-3
DS1339U-3+
DS1339U-33
DS1339U-33+
TEMP RANGE
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
VOLTAGE (V)
2.0
2.0
3.0
3.0
3.3
3.3
2.0
3.0
3.0
3.3
3.3
PIN-PACKAGE
16 SO (300 mils)
16 SO (300 mils)
16 SO (300 mils)
16 SO (300 mils)
16 SO (300 mils)
16 SO (300 mils)
8
mSOP
8
mSOP
8
mSOP
8
mSOP
8
mSOP
TOP MARK*
DS1339C-2
DS1339C-2
DS1339C-3
DS1339C-3
DS1339C-33
DS1339C-33
1339 ##-2
1339 ##-3
1339 ##-3
1339 ##-33
1339 ##-33
+
Denotes a lead-free/RoHS-compliant device.
## =
second line, revision code
2 = 2.0V (V
CC
±10%)
3 = 3.0V (V
CC
±10%)
33 = 3.3V (V
CC
±10%)
*
A “+” on the top mark indicates a lead-free device.
1 of 18
REV: 071205
DS1339 I C Serial Real-Time Clock
2
ABSOLUTE MAXIMUM RATINGS
Voltage Range on Any Pin Relative to Ground………………………………………………………………-0.3V to +6.0V
Operating Temperature Range…(Noncondensing)….…………………………………………………….-40°C to +85°C
Storage Temperature Range………………………………………………………………………………..-55°C to +125°C
Soldering Temperature Range………….See precautions in the
Handling, PC Board Layout, and Assembly
section.
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only,
and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is
not implied. Exposure to the absolute maximum rating conditions for extended periods may affect device reliability.
RECOMMENDED DC OPERATING CONDITIONS
(T
A
= -40°C to +85°C) (Note 1)
PARAMETER
Supply Voltage
Backup Supply Voltage
Pullup Resistor Voltage (SQW/
INT
,
SDA, SCL), V
CC
= 0V
Logic 1
Logic 0
SYMBOL
V
CC
V
BACKUP
V
PU
V
IH
V
IL
DS1339-2
Power-Fail Voltage
V
PF
DS1339-3
DS1339-33
0.7 x
V
CC
-0.5
1.58
2.45
2.70
1.70
2.59
2.85
CONDITIONS
DS1339-2
DS1339-3
DS1339-33
MIN
1.8
2.7
2.97
1.3
TYP
2.0
3.0
3.3
3.0
MAX
2.2
3.3
3.63
3.7
5.5
V
CC
+
0.5
+0.3 x
V
CC
1.80
2.70
2.97
V
V
V
V
V
V
UNITS
DC ELECTRICAL CHARACTERISTICS
(V
CC
= MIN to MAX, T
A
= -40°C to +85°C.) (Note 1)
PARAMETER
Input Leakage
I/O Leakage
Logic 0 Out
V
OL
= 0.4V; V
CC
> V
CC
MIN (-3, -33);
V
CC
≥
2.0V (-2)
Logic 0 Out
V
OL
= 0.2 (V
CC
);
1.8V < V
CC
< 2.0V (DS1339-2)
Logic 0 Out
V
OL
= 0.2 (V
CC
);
1.3V < V
CC
< 1.8V (DS1339-2)
V
CC
Active Current
V
CC
Standby Current
SYMBOL
I
LI
I
LO
I
OL
CONDITIONS
(Note 2)
(Note 3)
(Note 3)
MIN
TYP
MAX
1
1
3
UNITS
mA
mA
mA
I
OL
(Note 3)
3
mA
I
OL
I
CCA
I
CCS
(Note 3)
(Note 4)
(Note 5)
80
250
450
150
mA
mA
mA
2 of 18
DS1339 I C Serial Real-Time Clock
2
DC ELECTRICAL CHARACTERISTICS (continued)
(V
CC
= MIN to MAX, T
A
= -40°C to +85°C.) (Note 1)
PARAMETER
Trickle-Charger Resistor Register
10h = A5h, V
CC
= Typ, V
BACKUP
= 0V
Trickle-Charger Resistor Register
10h = A6h, V
CC
= Typ, V
BACKUP
= 0V
Trickle-Charger Resistor Register
10h = A7h, V
CC
= Typ, V
BACKUP
= 0V
V
BACKUP
Leakage Current
SYMBOL
R1
R2
R3
I
BKLKG
CONDITIONS
MIN
TYP
250
2000
4000
25
100
MAX
UNITS
W
W
W
nA
DC ELECTRICAL CHARACTERISTICS
(V
CC
= 0V, T
A
= -40°C to +85°C.)
(Note 1)
PARAMETER
V
BACKUP
Current
EOSC
= 0, SQW Off
V
BACKUP
Current
EOSC
= 0, SQW On
V
BACKUP
Current
EOSC
= 1
SYMBOL
I
BKOSC
I
BKSQW
I
BKDR
CONDITIONS
(Note 6)
(Note 6)
(Note 6)
MIN
TYP
400
600
10
MAX
700
1000
100
UNITS
nA
nA
nA
3 of 18
DS1339 I C Serial Real-Time Clock
2
AC ELECTRICAL CHARACTERISTICS
(V
CC
= MIN to MAX, T
A
= -40°C to +85°C.) (Note 12)
PARAMETER
SCL Clock Frequency
Bus Free Time Between a STOP
and START Condition
Hold Time (Repeated) START
Condition (Note 7)
LOW Period of SCL Clock
HIGH Period of SCL Clock
Setup Time for a Repeated
START Condition
Data Hold Time (Notes 8, 9)
Data Setup Time (Note 10)
Rise Time of Both SDA and SCL
Signals (Note 11)
Fall Time of Both SDA and SCL
Signals (Note 11)
Setup Time for STOP Condition
Capacitive Load for Each Bus
Line (Note 11)
I/O Capacitance (SDA, SCL)
Oscillator Stop Flag (OSF) Delay
SYMBOL
f
SCL
t
BUF
t
HD:STA
t
LOW
t
HIGH
t
SU:STA
t
HD:DAT
t
SU:DAT
t
R
t
F
t
SU:STO
C
B
C
I/O
t
OSF
(Note 12)
(Note 13)
100
CONDITION
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
Fast mode
Standard mode
1.3
4.7
0.6
4.0
1.3
4.7
0.6
4.0
0.6
4.7
0
0
100
250
20 + 0.1C
B
20 + 0.1C
B
20 + 0.1C
B
20 + 0.1C
B
0.6
4.0
400
10
300
1000
300
300
0.9
MIN
100
TYP
MAX
400
100
UNITS
kHz
ms
ms
ms
ms
ms
ms
ns
ns
ns
ms
pF
pF
ms
4 of 18
DS1339 I C Serial Real-Time Clock
2
POWER-UP/DOWN CHARACTERISTICS
(T
A
= -40 C to +85°C) (Note 1, Figure 1)
PARAMETER
Recovery at Power-Up
V
CC
Fall Time; V
PF(MAX)
to V
PF(MIN)
V
CC
Rise Time; V
PF(MIN)
to V
PF(MAX)
SYMBOL
t
REC
t
VCCF
t
VCCR
CONDITIONS
(Note 14)
300
0
MIN
TYP
MAX
2
UNITS
ms
ms
ms
WARNING: Under no circumstances are negative undershoots, of any amplitude, allowed when device is in
battery-backup mode.
Note 1:
Note 2:
Note 3:
Note 4:
Note 5:
Note 6:
Note 7:
Note 8:
Note 9:
Note 10:
Limits at -40°C are guaranteed by design and are not production tested.
SCL only.
SDA and SQW/INT.
I
CCA
—SCL at f
SC
max, V
IL
= 0.0V, V
IH
= V
CC
, trickle charger disabled.
Specified with the I
2
C bus inactive, V
IL
= 0.0V, V
IH
= V
CC
, trickle charger disabled.
Using recommended crystal on X1 and X2.
After this period, the first clock pulse is generated.
A device must internally provide a hold time of at least 300ns for the SDA signal (referred to the V
IHMIN
of the SCL signal) to bridge
the undefined region of the falling edge of SCL.
The maximum t
HD:DAT
need only be met if the device does not stretch the LOW period (t
LOW
) of the SCL signal.
A fast-mode device can be used in a standard-mode system, but the requirement t
SU:DAT
³
to 250ns must then be met. This is
automatically the case if the device does not stretch the LOW period of the SCL signal. If such a device does stretch the LOW
period of the SCL signal, it must output the next data bit to the SDA line t
R(MAX)
+ t
SU:DAT
= 1000 + 250 = 1250ns before the SCL line
is released.
C
B
—total capacitance of one bus line in pF.
Guaranteed by design. Not production tested.
The parameter t
OSF
is the period of time the oscillator must be stopped for the OSF flag to be set over the voltage range of 0.0V
£
V
CC
£
V
CCMAX
and 1.3V
£
V
BACKUP
£
3.7V.
This delay applies only if the oscillator is running. If the oscillator is disabled or stopped, no power-up delay occurs.
Note 11:
Note 12:
Note 13:
Note 14:
Figure 1. Power-Up/Down Timing
V
CC
V
PF(MAX)
V
PF(MIN)
t
VCCF
t
VCCR
t
REC
INPUTS
RECOGNIZED
DON'T CARE
RECOGNIZED
HIGH-Z
OUTPUTS
VALID
VALID
5 of 18