DATASHEET
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM IDT1338
IDT®
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM 1
IDT1338 REV S 111214
General Description
The IDT1338 is a serial real-time clock (RTC) device that
consumes ultra-low power and provides a full binary-coded
decimal (BCD) clock/calendar with 56 bytes of battery
backed Non-Volatile Static RAM. The clock/calendar
provides seconds, minutes, hours, day, date, month, and
year information. The clock operates in either the 24-hour
or 12-hour format with AM/PM indicator. The end of the
month date is automatically adjusted for months with fewer
than 31 days, including corrections for leap year. Access to
the clock/calendar registers is provided by an I
2
C interface
capable of operating in fast I
2
C mode. Built-in Power-sense
circuitry detects power failures and automatically switches
to the backup supply, maintaining time and date operation.
Applications
Telecom (Routers, Switches, Servers)
Handheld (GPS, Point of Sale POS terminals)
Consumer Electronics (Set-Top Box, Digital Recording,
Network Applications, Digital photo frames)
Office (Fax/Printers, Copiers)
Medical (Glucometer, Medicine Dispensers)
Others (Thermostats, Vending Machines, Modems, Utility
Meters)
Features
Real-Time Clock (RTC) counts seconds, minutes, hours,
day, date, month, and year with leap-year compensation
valid up to 2100
56-Byte battery-backed Non Volatile RAM for data
storage
Fast mode I
2
C Serial interface
Automatic power-fail detect and switch circuitry
Programmable square-wave output
Packaged in 8-pin MSOP, 8-pin SOIC, or 16-pin SOIC
(surface-mount package with an integrated crystal)
Industrial temperature range (-40°C to +85°C)
Block Diagram
VCC
GND
V
BAT
SCL
SDA
Crystal inside package
for 16-pin SOIC ONLY
X1
X2
1 Hz/4.096 kHz/
8.192 kHz/32.768 kHz
SQW/OUT
Power
Control
I
2
C
Interface
32.768 kHz
Oscillator and
Divider
Control
Logic
MUX/
Buffer
Clock, Calendar
Counter
56 Byte
RAM
1 Byte
Control
7 Bytes
Buffer
IDT1338
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM RTC
IDT®
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM 2
IDT1338 REV S 111214
Pin Assignment (8-pin MSOP/8-pin SOIC) Pin Assignment (16-pin SOIC)
Pin Descriptions
X1
SCL
SQW/OUT
GND
VCC1
2
3
4
8
7
6
5
SDA
X2
V
BAT
IDT
1338
16
1
15
2
14
3
13
4
5
6
7
8
9
10
12
11
SCL
VCC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
SDA
GND
SQW/OUT
V
BAT
IDT
1338C
Pin
Number
Pin
Name
Pin Description/Function
8MSOP,
8SOIC
16SOIC
1 X1 Connections for standard 32.768 kHz quartz crystal. The internal oscillator circuitry is designed
for operation with a crystal having a specified load capacitance (CL) of 12.5 pF. An external
32.768 kHz oscillator can also drive the IDT1338. In this configuration, the X1 pin is connected to
the external oscillator signal and the X2 pin is left floating.
2—X2
314V
BAT
Backup Supply Input for Lithium Coin Cell or Other Energy Source. Battery voltage must be held
between the minimum and maximum limits for proper operation. Diodes placed in series
between the backup source and the V
BAT
pin may prevent proper operation. If a backup supply is
not required, V
BAT
must be connected to ground.
4 15 GND Connect to ground.
5 16 SDA Serial data input/output. SDA is the input/output pin for the I
2
C serial interface. It is an open-drain
output and requires an external pull-up resistor (2 Kohm typical).
6 1 SCL Serial clock input. SCL is used to synchronize data movement on the serial interface. It is an
open-drain output and requires an external pull-up resistor (2 Kohm typical)
7 2 SQW/OUT Square-Wave/Output driver. When enabled and the SQWE bit set to 1, the SQW/OUT pin
outputs one of four square-wave frequencies (1 Hz, 4 kHz, 8 kHz, 32 kHz). It is an open drain
output and requires an external pull-up resistor (10K ohm typical). Operates when the device is
powered with VCC or V
BAT
.
83V
CC
Device power supply. When voltage is applied within specified limits, the device is fully
accessible by I
2
C and data can be written and read.
4 - 13 NC No connect. These pins are unused and must be connected to ground for proper operation.
IDT1338
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM RTC
IDT®
REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM 3
IDT1338 REV S 111214
Typical Operating Circuit
Detailed Description
The following sections discuss in detail the Oscillator block,
Power Control block, Clock/Calendar Register Block and
Serial I
2
C block.
Oscillator Block
Selection of the right crystal, correct load capacitance and
careful PCB layout are important for a stable crystal
oscillator. Due to the optimization for the lowest possible
current in the design for these oscillators, losses caused by
parasitic currents can have a significant impact on the
overall oscillator performance. Extra care needs to be taken
to maintain a certain quality and cleanliness of the PCB.
Crystal Selection
The key parameters when selecting a 32 kHz crystal to work
with IDT1338 RTC are:
Recommended Load Capacitance
Crystal Effective Series Resistance (ESR)
Frequency Tolerance
Effective Load Capacitance
Please see diagram below for effective load capacitance
calculation. The effective load capacitance (CL) should
match the recommended load capacitance of the crystal in
order for the crystal to oscillate at its specified parallel
resonant frequency with 0ppm frequency error.
In the above figure, X1 and X2 are the crystal pins of our
device. Cin1 and Cin2 are the internal capacitors which
include the X1 and X2 pin capacitance. Cex1 and Cex2 are
the external capacitors that are needed to tune the crystal
frequency. Ct1 and Ct2 are the PCB trace capacitances
between the crystal and the device pins. CS is the shunt
capacitance of the crystal (as specified in the crystal
manufacturer's datasheet or measured using a network
analyzer).
Note: IDT1338CSRI integrates a standard 32.768 kHz
crystal in the package and contributes an additional
frequency error of 10ppm at nominal
V
CC
(+3.3 V) and
T
A
=+25°C.
CPU
X1 X2
V
CC
SQW/OUT
V
BAT
GND
SDA
SCL
CRYSTAL
IDT1338
+
-
V
CC
2k
2k
V
CC
V
CC
10k

1338-18DVGI8

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