DS3231S+ DALLAS [Dallas Semiconductor], DS3231S+ Datasheet - Page 10

no-image

DS3231S+

Manufacturer Part Number
DS3231S+
Description
Extremely Accurate I2C-Integrated RTC/TXO/Crystal
Manufacturer
DALLAS [Dallas Semiconductor]
Datasheet
The block diagram shows the main elements of the
DS3231. The eight blocks can be grouped into four
functional groups: TCXO, power control, pushbutton
function, and RTC. Their operations are described sep-
arately in the following sections.
The temperature sensor, oscillator, and control logic
form the TCXO. The controller reads the output of the
on-chip temperature sensor and uses a lookup table to
determine the capacitance required, adds the aging
correction in AGE register, and then sets the capaci-
tance selection registers. New values, including
changes to the AGE register, are loaded only when a
change in the temperature value occurs, or when a
user-initiated temperature conversion is completed.
The temperature is read on initial application of V
and once every 64 seconds afterwards.
This function is provided by a temperature-compensat-
ed voltage reference and a comparator circuit that
monitors the V
the part is powered by V
but greater than V
If V
device is powered by V
To preserve the battery, the first time V
the device, the oscillator will not start up until V
applied, or until a valid I
part. Typical oscillator startup time is less than one sec-
ond. Approximately 2 seconds after V
a valid I
perature measurement and applies the calculated cor-
rection to the oscillator. Once the oscillator is running, it
continues to run as long as a valid power source is
available (V
measure the temperature and correct the oscillator fre-
quency every 64 seconds.
Extremely Accurate I
RTC/TCXO/Crystal
Table 1. Power Control
10
CC
V
V
V
V
SUPPLY CONDITION
____________________________________________________________________
CC
CC
CC
CC
is less than V
2
C address is written, the device makes a tem-
< V
< V
> V
> V
PF
PF
PF
PF
CC
, V
, V
, V
, V
CC
or V
CC
CC
CC
CC
level. When V
BAT
< V
> V
< V
> V
BAT
, the DS3231 is powered by V
BAT
BAT
BAT
BAT
PF
BAT
), and the device continues to
CC
2
and is less than V
. See Table 1.
C address is written to the
. When V
CC
is greater than V
CC
POWERED BY
Power Control
CC
Operation
BAT
32kHz TCXO
is less than V
V
V
V
V
is applied, or
BAT
CC
CC
CC
is applied to
BAT
CC
, the
2
CC
CC
PF
PF
is
C-Integrated
,
.
The DS3231 provides for a pushbutton switch to be con-
nected to the RST output pin. When the DS3231 is not in
a reset cycle, it continuously monitors the RST signal for a
low going edge. If an edge transition is detected, the
DS3231 debounces the switch by pulling the RST low.
After the internal timer has expired (PB
continues to monitor the RST line. If the line is still low, the
DS3231 continuously monitors the line looking for a rising
edge. Upon detecting release, the DS3231 forces the
RST pin low and holds it low for t
The same pin, RST, is used to indicate a power-fail con-
dition. When V
signal is generated, which forces the RST pin low. When
V
for approximately 250ms (t
ply to stabilize. If the oscillator is not running (see the
Power Control section) when V
bypassed and RST immediately goes high.
With the clock source from the TCXO, the RTC provides
seconds, minutes, hours, day, date, month, and year
information. The date at the end of the month is automati-
cally adjusted for months with fewer than 31 days, includ-
ing corrections for leap year. The clock operates in either
the 24-hour or 12-hour format with an AM/PM indicator.
The clock provides two programmable time-of-day
alarms and a programmable square-wave output. The
INT/SQW pin either generates an interrupt due to alarm
condition or outputs a square-wave signal and the
selection is controlled by the bit INTCN.
Figure 1 shows the address map for the DS3231 time-
keeping registers. During a multibyte access, when the
address pointer reaches the end of the register space
(12h), it wraps around to location 00h. On an I
START or address pointer incrementing to location 00h,
the current time is transferred to a second set of regis-
ters. The time information is read from these secondary
registers, while the clock may continue to run. This
eliminates the need to reread the registers in case the
main registers update during a read.
The I
V
the DS3231 resets because of a loss of V
event, it is possible that the microcontroller and DS3231
I
e.g., the microcontroller resets while reading data from
the DS3231. When the microcontroller resets, the
2
CC
BAT
C communications could become unsynchronized,
returns to a level above V
2
is at a valid level. If a microcontroller connected to
C interface is accessible whenever either V
CC
is lower than V
Pushbutton Reset Function
REC
PF
) to allow the power sup-
RST
PF
, the RST pin is held low
CC
, an internal power-fail
Address Map
I
Real-Time Clock
.
2
is applied, t
C Interface
DB
), the DS3231
CC
or other
REC
CC
2
or
is
C

Related parts for DS3231S+