DATASHEET
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE IDT1339
IDT®
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE 1
IDT1339 REV S 031014
General Description
The IDT1339 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 IDT1339 has a built-in power-sense
circuit that detects power failures and automatically
switches to the backup supply, maintaining time, date, and
alarm operation.
Applications
Handhelds (GPS, POS terminals)
Consumer Electronics (Set-Top Box, Digital Recording,
Network Applications)
Office (Fax/Printers, Copiers)
Medical (Glucometer, Medicine Dispensers)
Telecomm (Routers, Switches, Servers)
Other (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
Packaged in 8-pin MSOP, 8-pin SOIC, or 16-pin SOIC
(surface-mount package with an integrated crystal)
Fast mode I
2
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
Industrial temperature range (-40 to +85°C)
Underwriters Laboratory (UL) recognized
Block Diagram
VCC
GND
V
BACKUP
SCL
SDA
Crystal inside package
for 16-pin SOIC ONLY
X1
X2
1 Hz/4.096 kHz/
8.192 kHz/32.768 kHz
SQW/INT
Power
Control
I
2
C
Interface
32.768 kHz
Oscillator and
Divider
Control
Logic
MUX/
Buffer
Clock,
Calendar
Counter
1 Byte
Control
7 Bytes
Buffer
Trickle
Charger
Byte
7 Bytes
Alarm
Trickle
Charger
1 Byte
Status
IDT1339
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE RTC
IDT®
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE 2
IDT1339 REV S 031014
Pin Assignment (8-pin MSOP/8-pin SOIC) Pin Assignment (16-pin SOIC)
Pin Descriptions
X1
SCL
SQW/INT
GND
VCC1
2
3
4
8
7
6
5
SDA
X2
V
BACKUP
IDT
1339
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/INT
V
BACKUP
IDT
1339C
Pin
Number
Pin
Name
Pin Description/Function
MSOP SOIC
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 7 pF. An
external 32.768 kHz oscillator can also drive the IDT1339. In this configuration, the X1 pin
is connected to the external oscillator signal and the X2 pin is left floating.
2— X2
314V
BACKUP
Backup supply input. Supply voltage must be held between 1.3 V and 3.7 V 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 that can be
charged using the trickle charger circuit. Diodes placed in series between the backup
source and the VBAT pin may prevent proper operation. If a backup supply is not required,
VBAT must be connected to ground. UL recognized to ensure against reverse charged
current when used with a lithium cell.
4 15 GND Connect to 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 pull-up resistor (2 k 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 k typical).
72SQW/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 pull-up resistor (10 k
typical).
83
V
CC
Primary power supply. When voltage is applied within normal limits, the device is fully
accessible and data can be written and read.
4 - 13 NC No connect. These pins are unused and must be connected to ground.
IDT1339
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE RTC
IDT®
REAL-TIME CLOCK WITH SERIAL I
2
C INTERFACE 3
IDT1339 REV S 031014
Typical Operating Circuit
Detailed Description
The following sections discuss in detail the Oscillator block,
Power Control block, Clock/Calendar Register, Alarms,
trickle Charger, 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 IDT1339 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: IDT1339CSRI integrates a standard 32.768 kHz
(±20ppm) 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/INT
V
BACKUP
GND
SDA
SCL
CRYSTAL
IDT1339
+
-
V
CC
R
PU
2k
V
CC
V
CC
10k
R
PU
2k
12
6
5
7
3
4
8

1339AC-31SRGI

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