DS1501/DS1511 Y2KC Watchdog Real-Time Clocks
10 of 22
Figure 8. Block Diagram
R
ST
P
WR
256 x 8
NV SRAM
POWER CONTROL
WRITE PROTECTION,
AND POWER-ON
RESET
16 X 8
CLOCK AND CONTROL
REGISTERS
V
BAT
V
BAT
V
BAUX
GND
K
S
A0–A4
DQ0–DQ7
C
E
W
E
O
E
X1
X2
32.768kHz CLOCK
OSCILLATOR
I
RQ
SQW
CLOCK ALARM AND WATCHDOG
COUNTDOWN
DS1501/DS1511
Figure 9. Typical Crystal Layout
CRYSTAL
X1
X2
GND
LOCAL GROUND PLANE (LAYER 2)
DS1501/DS1511 Y2KC Watchdog Real-Time Clocks
11 of 22
DETAILED DESCRIPTION
The DS1501/DS1511 RTC is a low-power clock/date device with a programmable day of week/date alarm. The
DS1501/DS1511 is accessed through a parallel interface. 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 RTC registers are double buffered into an internal and external set. The user has direct access to the external
set. Clock/calendar updates to the external set of registers can be disabled and enabled to allow the user to access
static data. When the crystal oscillator is turned on, the internal set of registers are continuously updated; this
occurs regardless of external register settings to guarantee that accurate RTC information is always maintained.
The DS1501/DS1511 contain their own power-fail circuitry that automatically deselects the device when the V
CC
supply falls below a power-fail trip point. This feature provides a high degree of data security during unpredictable
system operation caused by low V
CC
levels.
The DS1501/DS1511 have interrupt (IRQ), power control (PWR), and reset (RST) outputs that can be used to
control CPU activity. The IRQ interrupt or RST outputs can be invoked as the result of a time-of-day alarm, CPU
watchdog alarm, or a kickstart signal. The DS1501/DS1511 power-control circuitry allow the system to be powered
on by an external stimulus, such as a keyboard or by a time and date (wakeup) alarm. The PWR output pin can be
triggered by one or either of these events, and can be used to turn on an external power supply. The PWR pin is
under software control, so that when a task is complete, the system power can then be shut down. The
DS1501/DS1511 power-on reset can be used to detect a system power-down or failure and hold the CPU in a safe
reset state until normal power returns and stabilizes; the RST output is used for this function.
The DS1501/DS1511 are clock/calendar chips with the features described above. An external crystal and battery
are the only components required to maintain time-of-day and memory status in the absence of power.
Table 1. RTC Operating Modes
V
CC
CE OE WE
DQ0–DQ7 A0–A4 MODE POWER
V
IH
X X High-Z X Deselect Standby
V
IL
X
V
IL
D
IN
A
IN
Write Active
V
IL
V
IL
V
IH
D
OUT
A
IN
Read Active
In tolerance
V
IL
V
IH
V
IH
High-Z
A
IN
Read Active
V
SO
< V
CC
< V
PF
X X X High-Z X Deselect CMOS Standby
V
CC
< V
SO
< V
PF
X X X High-Z X Data Retention Battery Current
DATA READ MODE
The DS1501/DS1511 are in read mode whenever CE (chip enable) and OE (output enable) are low and WE (write
enable) is high. The device architecture allows ripple-through access to any valid address location. Valid data is
available at the DQ pins within t
AA
(address access) after the last address input is stable, provided that CE and OE
access times are satisfied. If CE or OE access times are not met, valid data is available at the latter of chip-enable
access (t
CSA
) or at output-enable access time (t
OEA
). The state of the data input/output pins (DQ) is controlled by CE
and OE. If the outputs are activated before t
AA
, the data lines are driven to an intermediate state until t
AA
. If the
address inputs are changed while CE and OE remain valid, output data remains valid for output-data hold time (t
OH
)
but then goes indeterminate until the next address access (
Table 1).
DATA WRITE MODE
The DS1501/DS1511 are in write mode whenever CE and WE are in their active state. The start of a write is
referenced to the latter occurring transition of CE or WE. The addresses must be held valid throughout the cycle.
CE or WE must return inactive for a minimum of t
WR
prior to the initiation of a subsequent read or write cycle. Data
in must be valid t
DS
prior to the end of the write and remain valid for t
DH
afterward. In a typical application, the OE
signal is high during a write cycle. However, OE can be active provided that care is taken with the data bus to avoid
bus contention. If OE is low prior to a high-to-low transition on WE, the data bus can become active with read data
defined by the address inputs. A low transition on WE then disables the outputs t
WEZ
after WE goes active (Table 1).
DS1501/DS1511 Y2KC Watchdog Real-Time Clocks
12 of 22
DATA RETENTION MODE
The DS1501/DS1511 are fully accessible, and data can be written and read only when V
CC
is greater than V
PF
.
However, when V
CC
falls below the power-fail point V
PF
(point at which write protection occurs) the internal clock
registers and SRAM are blocked from any access. While in the data retention mode, all inputs are don’t cares and
outputs go to a high-Z state, with the possible exception of KS, PWR, SQW, and RST. If V
PF
is less than V
BAT
and
V
BAUX
, the device power is switched from V
CC
to the greater of V
BAT
and V
BAUX
when V
CC
drops below V
PF
. If V
PF
is
greater than V
BAT
and V
BAUX
, the device power is switched from V
CC
to the larger of V
BAT
and V
BAUX
when V
CC
drops
below the larger of V
BAT
and V
BAUX
. RTC operation and SRAM data are maintained from the battery until V
CC
is
returned to nominal levels (
Table 1). If the square-wave and battery-backup 32kHz functions are enabled, V
BAUX
always provides power for the square-wave output, when the device is in battery-backup mode.
AUXILIARY BATTERY
The V
BAUX
input is provided to supply power from an auxiliary battery for the DS1501/DS1511 kickstart and square-
wave output features in the absence of V
CC
. This power source must be available to use these auxiliary features
when V
CC
is not applied to the device.
This auxiliary battery can be used as the primary backup power source for maintaining the clock/calendar and
external user RAM. This occurs if the V
BAT
pin is at a lower voltage than V
BAUX
. If the DS1501/DS1511 are to be
backed up using a single battery with the auxiliary features enabled, then V
BAUX
should be used and V
BAT
should be
grounded (DS1501). If V
BAUX
is not to be used, it must be grounded.
OSCILLATOR CONTROL BIT
When the DS1511 is shipped from the factory, the internal oscillator is turned off. This feature prevents the lithium
energy cell from being used until it is installed in a system. The oscillator is automatically enabled when power is
first applied.
POWER-ON RESET
A temperature-compensated comparator circuit monitors the level of V
CC
. When V
CC
falls to the power-fail trip point,
the RST signal (open drain) is pulled low. When V
CC
returns to nominal levels, the RST signal continues to be pulled
low for a period of t
REC
. The power-on reset function is independent of the RTC oscillator and therefore operational
whether or not the oscillator is enabled.
TIME AND DATE OPERATION
The time and date information is obtained by reading the appropriate register bytes. Table 2 shows the RTC
registers. The time and date are set or initialized by writing the appropriate register bytes. The contents of the time
and date registers are in BCD format. Hours are in 24-hour mode. The day-of-week register increments at
midnight. Values that correspond to the day of week are user defined but must be sequential (i.e., if 1 equals
Sunday, then 2 equals Monday, and so on). Illogical time and date entries result in undefined operation.
READING THE CLOCK
When reading the clock and calendar data, it is possible to access the registers while an update (once per second)
occurs. There are three ways to avoid using invalid time and date data.
The first method uses the transfer enable (TE) bit in the control B register. Transfers are halted when a 0 is written
to the TE bit. Setting TE to 0 halts updates to the user-accessible registers, while allowing the internal registers to
advance. After the registers are read, the TE bit should be written to 1. TE must be kept at 1 for at least 366μs to
ensure a user register update.
The time and date registers can be read and stored in temporary variables. The time and date registers are then
read again, and compared to the first values. If the values do not match, the time and date registers should be read
a third time and compared to the previous values. This should be done until two consecutive reads of the time and
date registers match. The TE bit should always be enabled when using this method for reading the time and date,.

DS1501WZ+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Real Time Clock Y2K-Compliant Watchdog
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union