D ts e t
aa h e
R c e t r lc r nc
o h se Ee to is
Ma u a t r dCo o e t
n fc u e
mp n n s
R c e tr b a d d c mp n ns ae
o h se rn e
o oet r
ma ua trd u ig ete dewaes
n fcue sn i r i/ fr
h
p rh s d f m te oiia s p l r
uc a e r
o h r n l u pi s
g
e
o R c e tr waes rce td f m
r o h se
fr e rae r
o
te oiia I. Al rce t n ae
h
r nl P
g
l e rai s r
o
d n wi tea p o a o teOC
o e t h p rv l f h
h
M.
P r aetse u igoiia fcoy
at r e td sn r n la tr
s
g
ts p o rmso R c e tr e eo e
e t rga
r o h se d v lp d
ts s lt n t g aa te p o u t
e t oui s o u rne
o
rd c
me t o e c e teOC d t s e t
es r x e d h
M aa h e.
Qu l yOv riw
ai
t
e ve
• IO- 0 1
S 90
•A 92 cr ct n
S 1 0 et ai
i
o
• Qu l e Ma ua trr Ls (
ai d
n fcues it QML MI- R -
) LP F
385
53
•C a sQ Mitr
ls
lay
i
•C a sVS a eL v l
ls
p c ee
• Qu l e S p l r Ls o D sr uos( L )
ai d u pi s it f it b tr QS D
e
i
•R c e trsacic l u pir oD A a d
o h se i
r ia s p l t L n
t
e
me t aln u t a dD A sa d r s
es lid sr n L tn ad .
y
R c e tr lcrnc , L i c mmi e t
o h se Ee t is L C s o
o
tdo
t
s p ligp o u t ta s t f c so r x e t-
u pyn rd cs h t ai y u tme e p ca
s
t n fr u lya daee u loto eoiial
i s o q ai n r q a t h s r n l
o
t
g
y
s p l db id sr ma ua trr.
u pi
e yn ut
y n fcues
T eoiia ma ua trr d ts e t c o a yn ti d c me t e e t tep r r n e
h r n l n fcue’ aa h e a c mp n ig hs o u n r cs h ef ma c
g
s
o
a ds e ic t n o teR c e tr n fcue v rino ti d vc . o h se Ee t n
n p c ai s f h o h se ma ua trd eso f hs e ie R c e tr lcr -
o
o
isg aa te tep r r n eo i s mio d co p o u t t teoiia OE s e ic -
c u rne s h ef ma c ft e c n u tr rd cs o h r n l M p c a
o
s
g
t n .T pc lv le aefr eee c p r o e o l. eti mii m o ma i m rt g
i s ‘y ia’ au s r o rfrn e up s s ny C r n nmu r xmu ai s
o
a
n
ma b b s do p o u t h rceiain d sg , i lt n o s mpetsig
y e a e n rd c c aa tr t , e in smuai , r a l e t .
z o
o
n
© 2 1 R cetr l t n s LC Al i t R sre 0 1 2 1
0 3 ohs E cr i , L . lRg s eevd 7 1 0 3
e e oc
h
T l r m r, l s v iw wrcl . m
o e n oe p ae it w . e c o
a
e
s
o ec
DS1338
I
2
C RTC with 56-Byte NV RAM
www.maxim-ic.com
GENERAL DESCRIPTION
The DS1338 serial real-time clock (RTC) is a low-
power, full binary-coded decimal (BCD)
clock/calendar plus 56 bytes of NV SRAM. Address
and data are transferred serially through an I
2
C
interface. The clock/calendar provides seconds,
minutes, hours, day, date, month, and year
information. The end of the month date 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 DS1338 has a built-in power-
sense circuit that detects power failures and
automatically switches to the backup supply,
maintaining time and date operation
FEATURES
RTC Counts Seconds, Minutes, Hours, Date
of the Month, Month, Day of the Week, and
Year with Leap-Year Compensation Valid Up
to 2100
Available in a Surface-Mount Package with an
Integrated Crystal (DS1338C)
56-Byte Battery-Backed NV RAM for Data
Storage
I
2
C Serial Interface
Programmable Square-Wave Output Signal
Automatic Power-Fail Detect and Switch
Circuitry
-40°C to +85°C Operating Temperature Range
Underwriters Laboratory (UL) Recognized
APPLICATIONS
Handhelds (GPS, POS Terminal)
Consumer Electronics (Set-Top Box, Digital
Recording, Network Appliance)
Office Equipment (Fax/Printer, Copier)
Medical (Glucometer, Medicine Dispenser)
Telecommunications (Router, Switcher, Server)
Other (Utility Meter, Vending Machine, Thermostat,
Modem)
ORDERING INFORMATION
PART
DS1338Z-18
DS1338Z-18+
DS1338Z-3
DS1338Z-3+
DS1338Z-33
DS1338Z-33+
DS1338U-18
DS1338U-18+
DS1338U-3
DS1338U-3+
DS1338U-33
X1
SCL
X2
V
CC
SQW/OUT
i
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
-40°C to +85°C
PIN-PACKAGE
8 SO (0.150″)
8 SO (0.150″)
8 SO (0.150″)
8 SO (0.150″)
8 SO (0.150″)
8 SO (0.150″)
8
µSOP
8
µSOP
8
µSOP
8
µSOP
8
µSOP
8
µSOP
TOP MARK†
DS1338-18
DS1338-18
DS1338-3
DS1338-3
DS133833
DS133833
1338
rr-18
1338
rr-18
1338
rr-3
1338
rr-3
1338
rr-33
1338
rr-33
DS1338C-18
DS1338C-18
DS1338C-3
DS1338C-3
DS1338C-33
DS1338C-33
TYPICAL OPERATING CIRCUIT
R
PU
= t
r
/C
b
V
CC
CRYSTAL
R
PU
V
CC
V
CC
R
PU
DS1338U-33+
CPU
SDA
DS1338
GND
V
BAT
Pin Configurations appear at end of data sheet.
DS1338C-18
-40°C to +85°C
16 SO (0.300″)
DS1338C-18#
-40°C to +85°C
16 SO (0.300″)
DS1338C-3
-40°C to +85°C
16 SO (0.300″)
DS1338C-3#
-40°C to +85°C
16 SO (0.300″)
DS1338C-33
-40°C to +85°C
16 SO (0.300″)
DS1338C-33#
-40°C to +85°C
16 SO (0.300″)
rr = second line, revision level
+ Denotes a lead-free/RoHS-compliant device.
# Denotes a RoHS-compliant device that may include lead that is
exempt under the RoHS requirements. The lead finish is JESD97
category e3, and is compatible with both lead-based and lead-free
soldering processes.
†
A “+” anywhere on the top mark denotes a lead-free device. A “#”
denotes a RoHS-compliant device.
1 of 16
REV: 010307
DS1338 I
2
C RTC with 56-Byte NV RAM
ABSOLUTE MAXIMUM RATINGS
Voltage Range on Any Pin Relative to Ground………………………………………………………..……..-0.3V to +6.0V
Operating Temperature Range…………………………………………………………………………..……-40°C to +85°C
Storage Temperature Range………………………………………………………………………………...-55°C to +125°C
Soldering Temperature
…………….....
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
(V
CC
= V
CC(MIN)
to V
CC(MAX)
, T
A
= -40°C to +85°C, unless otherwise noted. Typical values are at V
CC
= 3.3V,
T
A
= +25°C, unless otherwise noted.) (Note 1)
PARAMETER
Supply Voltage
Logic 1
Logic 0
Pullup Resistor Voltage
(SQW/OUT)
Power-Fail Voltage
V
BAT
Input Voltage
SYMBOL
V
CC
V
IH
V
IL
V
PU
V
PF
V
BAT
CONDITIONS
DS1338-18
DS1338-3
DS1338-33
(Note 2)
(Note 2)
(Note 2)
DS1338-18
DS1338-3
DS1338-33
(Note 2)
1.51
2.45
2.70
1.3
1.62
2.59
2.82
3.0
MIN
1.71
2.7
3.0
0.7 x
V
CC
-0.3
TYP
1.8
3.0
3.3
MAX
1.89
3.3
5.5
V
CC
+
0.3
+0.3 x
V
CC
5.5
1.71
2.70
2.97
3.7
UNITS
V
V
V
V
V
V
DC ELECTRICAL CHARACTERISTICS
(V
CC
= V
CC(MIN)
to V
CC(MAX)
, T
A
= -40°C to +85°C, unless otherwise noted. Typical values are at V
CC
= 3.3V,
T
A
= +25°C, unless otherwise noted.) (Note 1)
PARAMETER
Input Leakage
I/O Leakage
SDA Logic 0 Output
SYMBOL
I
LI
I
LO
I
OLSDA
CONDITIONS
(Note 3)
(Note 4)
V
CC
> 2V; V
OL
= 0.4V
V
CC
< 2V; V
OL
= 0.2 x V
CC
V
CC
> 2V; V
OL
= 0.4V
1.71V < V
CC
< 2V;
V
OL
= 0.2 V
CC
1.3V < V
CC
< 1.71V;
V
OL
= 0.2 V
CC
DS1338-18
DS1338-3
V
CC
≤
3.63V
DS1338-33
3.63V < V
CC
≤
5.5V
DS1338-18
DS1338-3
V
CC
≤
3.63V
DS1338-33
3.63V < V
CC
≤
5.5V
MIN
TYP
MAX
1
1
3.0
3.0
3.0
3.0
250
75
110
120
60
80
85
150
200
200
325
100
125
125
200
25
2 of 16
100
nA
mA
μA
UNITS
μA
μA
mA
SQW/OUT Logic 0 Output
I
OLSQW
Active Supply Current
(Note 5)
I
CCA
μA
Standby Current (Note 6)
I
CCS
μA
V
BAT
Leakage Current
(V
CC
Active)
I
BATLKG
DS1338 I
2
C RTC with 56-Byte NV RAM
DC ELECTRICAL CHARACTERISTICS
(V
CC
= 0V, T
A
= -40°C to +85°C,
unless otherwise noted. Typical values are at V
BAT
= 3.0V, T
A
= +25°C, unless
otherwise noted.) (Note 1)
PARAMETER
V
BAT
Current (OSC ON); V
BAT
= 3.7V, SQW/OUT OFF (Note 7)
V
BAT
Current (OSC ON); V
BAT
= 3.7V, SQW/OUT ON (32kHz)
(Note 7)
V
BAT
Data-Retention Current (Osc Off); V
BAT
= 3.7V (Note 7)
SYMBOL
I
BATOSC1
I
BATOSC2
I
BATDAT
MIN
TYP
800
1025
10
MAX
1200
1400
100
UNITS
nA
nA
nA
AC ELECTRICAL CHARACTERISTICS
(V
CC
= V
CC(MIN)
to V
CC(MAX)
, T
A
= -40°C to +85°C) (Note 1)
PARAMETER
SCL Clock Frequency
Bus Free Time Between STOP
and START Condition
Hold Time (Repeated) START
Condition (Note 8)
LOW Period of SCL Clock
HIGH Period of SCL Clock
Setup Time for Repeated
START Condition
Data Hold Time (Notes 9, 10)
Data Setup Time (Note 11)
Rise Time of Both SDA and
SCL Signals (Note 12)
Fall Time of Both SDA and
SCL Signals (Note 12)
Setup Time for STOP
Condition
Capacitive Load for Each Bus
Line
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
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
(Note 12)
(Note 13)
(Note 14)
100
MIN
100
0
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
TYP
MAX
400
100
UNITS
kHz
μs
μs
μs
μs
μs
μs
ns
ns
ns
μs
pF
pF
ms
3 of 16
DS1338 I
2
C RTC with 56-Byte NV RAM
POWER-UP/POWER-DOWN CHARACTERISTICS
(T
A
= -40°C to +85°C) (Note 1, Figure 1)
PARAMETER
Recovery at Power-Up (Note 15)
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
300
0
MIN
TYP
MAX
2
UNITS
ms
μs
μs
Warning: Negative undershoots below -0.3V while the part is in battery-backed mode may cause
loss of data.
Note 1:
Note 2:
Note 3:
Note 4:
Note 5:
Note 6:
Note 7:
Note 8:
Note 9:
Note 10:
Note 11:
Limits at -40°C are guaranteed by design and not production tested.
All voltages are referenced to ground.
SCL only.
SDA and SQW/OUT.
I
CCA
—SCL clocking at max frequency = 400kHz.
2
Specified with the I C bus inactive.
Measured with a 32.768kHz crystal attached to 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
IH(MIN)
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 time period the oscillator must be stopped for the OSF flag to be set over the voltage range of
0.0V
≤
V
CC
≤
V
CC(MAX)
and 1.3V
≤
V
BAT
≤
3.7V.
This delay applies only if the oscillator is enabled and running. If the oscillator is disabled or stopped, no power-up delay occurs.
Note 12:
Note 13:
Note 14:
Note 15:
Figure 1. Power-Up/Power-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
4 of 16