
Detailed Description
The DS1339B 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 I2C
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 device has a built-in
power-sense circuit that detects power failures and auto-
matically switches to the backup supply, maintaining time,
date, and alarm operation.
Operation
The device operates as a slave device on the serial bus.
Access is obtained by implementing a START condition
and providing a device identification code followed by
data. Subsequent registers can be accessed sequentially
until a STOP condition is executed. The device is fully
accessibleanddatacanbewrittenandreadwhenVCC
is greater than VPF. However, when VCC falls below
VPF, the internal clock registers are blocked from any
access.IfVPFislessthanVBACKUP, the device power is
switchedfromVCCtoVBACKUPwhenVCC drops below
VPF.IfVPFisgreaterthanVBACKUP, the device power
is switched from VCC to VBACKUP when VCC drops
belowVBACKUP. The registers are maintained from the
VBACKUPsourceuntilVCC is returned to nominal levels.
The Functional Diagram shows the main elements of the
serial real-time clock.
Power Control
The power-control function is provided by a precise,
temperature-compensated voltage reference and a com-
paratorcircuitthatmonitorstheVCC level. The device is
fully accessible and data can be written and read when
VCCisgreaterthanVPF.However,whenVCC falls below
VPF, the internal clock registers are blocked from any
access.IfVPFislessthanVBACKUP, the device power is
switchedfromVCCtoVBACKUPwhenVCC drops below
VPF.IfVPFisgreaterthanVBACKUP, the device power
is switched from VCC to VBACKUP when VCC drops
belowVBACKUP. The registers are maintained from the
VBACKUPsourceuntilVCC is returned to nominal levels
(Table 1).AfterVCC returnsabove VPF, read and write
access is allowed after tREC (Figure2).Onthefirstappli-
cation of power to the device the time and date registers
are reset to 01/01/00 01 00:00:00 (DD/MM/YY DOW
HH:MM:SS).
Oscillator Circuit
The device uses an external 32.768kHz crystal. The
oscillator circuit does not require any external resistors
or capacitors to operate. Table 2 specifies several crys-
tal parameters for the external crystal. The Functional
Diagram shows a basic schematic of the oscillator circuit.
The startup time is usually less than 1 second when using
a crystal with the specified characteristics.
Table 1. Power Control
Table 2. Crystal Specifications*
*The crystal, traces, and crystal input pins should be isolated
from RF generating signals. Refer to ApplicationNote58:
Crystal Considerations for Dallas Real-Time Clocks for additional
specifications.
SUPPLY CONDITION
READ/
WRITE
ACCESS
POWERED
BY
VCC<VPF,VCC<VBACKUP No VBACKUP
VCC<VPF,VCC>VBACKUP No VCC
VCC>VPF,VCC<VBACKUP Yes VCC
VCC>VPF,VCC>VBACKUP Yes VCC
PARAMETER SYMBOL MIN TYP MAX UNITS
Nominal
Frequency fO32.768 kHz
Series Resistance ESR 100 kΩ
Load
Capacitance CL6 pF
DS1339B Low-Current, I2C, Serial Real-Time Clock
for High-ESR Crystals
www.maximintegrated.com MaximIntegrated
│
8