DS1338
I2C RTC with 56-Byte NV RAM
www.maxim-ic.com
GENERAL DESCRIPTION
FEATURES
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 I2C™
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 battery supply.
Cꢀ RTC Counts Seconds, Minutes, Hours, Date of
the Month, Month, Day of the Week, and Year
with Leap-Year Compensation Valid Up to 2100
Cꢀ Available in a Surface-Mount Package with an
Integrated Crystal (DS1338C)
Cꢀ 56-Byte Battery-Backed NV RAM for Data
Storage
Cꢀ I2C Serial Interface
Cꢀ Programmable Square-Wave Output Signal
Cꢀ Automatic Power-Fail Detect and Switch Circuitry
Cꢀ Underwriters Laboratory (UL) Recognized
APPLICATIONS
ORDERING INFORMATION
Handhelds (GPS, POS Terminal)
PART
TEMP RANGE PIN-PACKAGE
TOP MARK
Consumer Electronics (Set-Top Box, Digital
Recording, Network Appliance)
DS1338Z-18
-40°C to +85°C 8 SO (150 mils)
DS1338-18
Office Equipment (Fax/Printer, Copier)
DS1338Z-3
DS1338Z-33
DS1338U-18
-40°C to +85°C 8 SO (150 mils)
-40°C to +85°C 8 SO (150 mils)
DS1338-3
Medical (Glucometer, Medicine Dispenser)
Telecommunications (Router, Switcher, Server)
DS1338-33
1338
rr-18
1338
rr-3
Other (Utility Meter, Vending Machine, Thermostat,
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
8 ꢀSOP
8 ꢀSOP
8 ꢀSOP
Modem)
DS1338U-3
1338
TYPICAL OPERATING CIRCUIT
DS1338U-33
DS1338C-18
DS1338C-3
DS1338C-33
rr-33
VCC
-40°C to +85°C 16 SO (300 mils) DS1338C-18
-40°C to +85°C 16 SO (300 mils) DS1338C-3
-40°C to +85°C 16 SO (300 mils) DS1338C-33
VCC
CRYSTAL
VCC
RPU
RPU
rr = second line, revision level
X1
X2
VCC
SQW/OUT
SCL
i
Pin Configurations appear at end of data sheet.
CPU
DS1338
SDA
VBAT
I2C is a trademark of Philips Corp. Purchase of I2C components from
Maxim Integrated Products, Inc., or one of its sublicensed Associated
Companies, conveys a license under the Philips I2C Patent Rights to
use these components in an I2C system, provided that the system
conforms to the I2C Standard Specification as defined by Philips.
GND
RPU = tR / CB
Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device
may be simultaneously available through various sales channels. For information about device errata, go to: www.maxim-ic.com/errata.
1 of 15
REV: 091404