1 of 30 022301
FEATURES
BCD coded century, year, month, date, day,
hours, minutes, and seconds with automatic
leap year compensation valid up to the year
2100
Programmable watchdog timer and RTC alarm
Century register; Y2K-compliant RTC
+3.3 or +5V operation
Precision power-on reset
Power control circuitry supports system
power-on from date/day/time alarm or key
closure/modem detect signal
256 bytes user NV SRAM
Burst mode for reading/writing successive
addresses in NV SRAM
Auxiliary battery input
Accuracy of DS1511 is better than
±=1 min./month @ 25°C
Day of week/date alarm register
Crystal select bit allows RTC to operate with
6 pF or 12.5 pF crystal
Battery voltage level indicator flags
Available as chip (DS1501) or standalone
module with embedded battery and crystal
(DS1511)
Optional industrial temperature range -40°C to
+85°C (DS1501 only)
ORDERING INFORMATION
DS1501XXX
blank commercial temp range
N industrial temp range
Blank 28-pin DIP
E 28-pin TSOP
S 28-pin SOIC
Y 5V operation
W 3.3V operation
DS1511X Dip Module
Y 5V operation
W 3.3V operation
PIN ASSIGNMENT
28-Pin DIP, 28-Pin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
SQW
GND
DQ7
DQ6
DQ5
DQ4
DQ3
WE
KS
OE
CE
VCC
VBAUX
VBAT
X1
X2
A
4
A
3
A
2
A
1
A
0
DQ0
DQ1
DQ2
GND
PWR
RST
IRQ
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
OE
A3
SQW
KS
VBAUX
VBAT
WE
VCC
X1
X2
A4
IRQ
RST
PWR
GND
DQ6
DQ5
DQ4
DQ3
DQ2
DQ1
DQ0
A0
A1
A2
GND
DQ7
CE
28-Pin TSOP
NC
NC
A
4
A
3
A
2
A
1
A
0
DQ0
DQ1
DQ2
GND
PWR
RST
IRQ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
SQW
NC
DQ7
DQ6
DQ5
DQ4
DQ3
CE
OE
KS
WE
VBAUX
NC
CC
V
28-Pin Encapsulated Package
(720-mil FLUSH)
DS1501/DS1511
Y2KC Watchdog Real Time Clock
www.dalsemi.com
Package Dimension Information can be found at:
http://www.dalsemi.com/datasheets/mechdwg.html
DS1501/DS1511
2 of 30
PIN DESCRIPTION
VCC - Supply Voltage
A0-A4 - Address Inputs
DQ0-DQ7 - Data I/O
CE - Chip Enable Input
OE - Output Enable Input
WE - Write Enable Input
IRQ - Interrupt Output (Open Drain)
PWR - Power-On Output (Open Drain)
RST - Reset Output (Open Drain)
KS - Kickstart Input
SQW - Square Wave Output
VBAT - Backup Battery Supply
VBAUX - Auxiliary Battery Supply
X1, X2 - 32.768 kHz Crystal Pins
GND - Ground
NC - No Connection
DESCRIPTION
The DS1501/DS1511 is a full function, year 2000-compliant, real-time clock/calendar (RTC) with a RTC
alarm, watchdog timer, power-on reset, battery monitors, 256 bytes nonvolatile static RAM, and a
32.768 kHz output. User access to all registers within the DS1501 is accomplished with a bytewide
interface as shown in Figure 1. The RTC registers contain century, year, month, date, day, hours,
minutes, and seconds data in 24-hour BCD format. Corrections for day of month and leap year are made
automatically.
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 contains its own power fail circuitry which automatically deselects the device when
the VCC supply falls below a power fail trip point. This feature provides a high degree of data security
during unpredictable system operation brought on by low VCC levels
The DS1501/DS1511 has interrupt ( IRQ ), power control ( PWR ), and reset ( RST ) outputs which 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 kick start signal. The DS1501/1511 power control circuitry allows
the system to be powered on via an external stimulus, such as a keyboard or by a time and date (wake-up)
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 is a clock/calendar chip 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.
DS1501/DS1511
3 of 30
The DS1511 incorporates the DS1501 chip, a 32.768 kHz crystal, and a lithium battery in a complete,
self-contained timekeeping module. The entire unit is designed by Dallas Semiconductor to provide a
minimum of 10 years of timekeeping and data retention in the absence of VCC.
DS1501/DS1511 BLOCK DIAGRAM Figure 1
A0-A4
RAM
CONTROL
RAM
DATA
RAM
ADDRESS
X2
X1
SQW
____
IRQ
CLOCK ALARM AND
WATCHDOG
COUNTDOWN
32.768 kHz
CLOCK OSC
___
OE
___
WE
___
CE
DQ0-DQ7
32 X 8 CLOCK,
CONTROL,
AND SRAM
ADDRESS
REGISTERS
___
KS
GND
Vcc
_____
PWR
____
RST
POWER CONTROL
WRITE
PROTECTION,
AND POWER-ON
RESET
256 X 8
NV SRAM
V
BAU
X
V
BA
T
DS1501/DS1511 OPERATING MODES Table 1
VCC CE OE WE DQ0-DQ7 A0-A4 MODE POWER
VIH X X HIGH-Z X DESELECT STANDBY
VIL XV
IL DIN AIN WRITE ACTIVE
VIL VIL VIH DOUT AIN READ ACTIVE
IN TOLERANCE
VIL VIH VIH HIGH-Z AIN READ ACTIVE
VSO <VCC < VPF X X X HIGH-Z X DESELECT CMOS
STANDBY
VCC < VSO < VPF X X X HIGH-Z X DATA
RETENTION
BATTERY
CURRENT
DS1501/DS1511
4 of 30
DATA READ MODE
The DS1501/DS1511 is in the read mode whenever CE (chip enable) is low and WE (write enable) is
high. The device architecture allows ripple-through access to any valid address location. Valid data will
be available at the DQ pins within tAA (Address Access) after the last address input is stable, providing
that CE and OE access times are satisfied. If CE or OE access times are not met, valid data will be
available at the latter of chip enable access (tCEA) or at output enable access time (tOEA). The state of the
data input/output pins (DQ) is controlled by CE and OE . If the outputs are activated before tAA, the data
lines are driven to an intermediate state until tAA. If the address inputs are changed while CE and OE
remain valid, output data will remain valid for output data hold time (tOH) but will then go indeterminate
until the next address access. (See Table 1.)
DATA WRITE MODE
The DS1501/DS1511 is in the write mode whenever WE and CE are in their active state. The start of a
write is referenced to the latter occurring transition of WE or CE . The addresses must be held valid
throughout the cycle. CE or WE must return inactive for a minimum of tWR prior to the initiation of a
subsequent read or write cycle. Data in must be valid tDS prior to the end of the write and remain valid for
tDH afterward. In a typical application, the OE signal will be 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 will then disable the outputs tWEZ after WE goes active. (See Table 1.)
DATA RETENTION MODE
The DS1501/DS1511 is fully accessible and data can be written and read only when VCC is greater than
VPF. However, when VCC falls below the power-fail point VPF (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 VPF is less than VBAT and VBAUX, the device power is switched from VCC to the greater of
VBAT and VBAUX when VCC drops below VPF. If VPF is greater than VBAT and VBAUX, the device power is
switched from VCC to the larger of VBAT and VBAUX when VCC drops below the larger of VBAT and VBAUX.
RTC operation and SRAM data are maintained from the battery until VCC is returned to nominal levels.
(See Table 1.)
All control, data, and address signals must be no more than 0.3 volts above VCC.
AUXILIARY BATTERY
The VBAUX input is provided to supply power from an auxiliary battery for the DS1501/DS1511 kickstart
and SQW output features in the absence of VCC. This power source must be available in order to use
these auxiliary features when VCC is not applied to the device.
This auxiliary battery may be used as the primary backup power source for maintaining the
clock/calendar and extended user RAM. This occurs if the VBAT pin is at a lower voltage than VBAUX. If
the DS1501/DS1511 is to be backed-up using a single battery with the auxiliary features enabled, then
VBAUX should be used and VBAT should be grounded. If VBAUX is not to be used, it should be grounded.
DS1501/DS1511
5 of 30
POWER-ON RESET
A temperature compensated comparator circuit monitors the level of VCC. When VCC falls to the power
fail trip point, the RST signal (open drain) is pulled low. When VCC returns to nominal levels, the RST
signal continues to be pulled low for a period of 40 ms to 200 ms. The power on reset function is
independent of the RTC oscillator and thus is operational whether or not the oscillator is enabled.
DS1501/DS1511
6 of 30
DS1501/DS1511 REGISTER MAP Table 2
DATA BCD
Address B7 B6 B5 B4 B3 B2 B1 B0 Function Range
00H 0 10 SECONDS SECONDS Seconds 00-59
01H 0 10 MINUTES MINUTES Minutes 00-59
02H 0 0 10 HOURS HOUR Hours 00-23
03H 0 0 0 0 0 DAY Day 1-7
04H 0 0 10 DATE DATE Date 01-31
05H EOSC E32K BB32 10 MO MONTH Month 01-12
06H 10 YEAR YEAR Year 00-99
07H 10 CENTURY CENTURY Century 00-39
08H AM1 10 SECONDS SECONDS Alarm Seconds 00-59
09H AM2 10 MINUTES MINUTES Alarm Minutes 00-59
0AH AM3 0 10 HOURS HOUR Alarm Hours 00-23
0BH AM4 DY/DT 10 DATE DAY / DATE Alarm Day / Date 1-7 / 1-31
0CH 0.1 SECOND 0.01 SECOND Watchdog 00-99
0DH 10 SECOND SECOND Watchdog 00-99
0EH BLF1 BLF2 PRS PAB TDF KSF WDF IRQF Control A
0FH TE CS BME TPE TIE KIE WDE WDS Control B
10H EXTENDED RAM ADDRESS RAM ADDR LSB 00-FF
11H RESERVED
12H RESERVED
13H EXTENDED RAM DATA RAM DATA 00-FF
14H RESERVED
15H RESERVED
16H RESERVED
17H RESERVED
18H RESERVED
19H RESERVED
1AH RESERVED
1BH RESERVED
1CH RESERVED
1DH RESERVED
1EH RESERVED
1FH RESERVED
0 = “0” and are read only
NOTE: Unless otherwise specified, the state of the control/RTC/SRAM bits in the DS1501/DS1511 is
not defined upon initial power application; the DS1501/DS1511 should be properly configured/defined
during initial configuration.
DS1501/DS1511
7 of 30
CONTROL REGISTERS
The controls and status information for the features offered by the DS1501/DS1511 are maintained in the
following register bits.
EOSC - Oscillator Start/Stop Bit (05H bit 7)
This bit is used to turn the oscillator on and off.
"1" - oscillator off
"0" - oscillator on
The oscillator is automatically turned on by the internal Power on Reset when power is applied and Vcc
rises above the Power-fail Voltage.
E32K - Enable 32.768kHz Output (05H bit 6)
This bit, when written to a "0", will enable the 32.768 kHz oscillator frequency to be output on the SQW
pin if the oscillator is running. This bit is automatically cleared to a logic “0” to by the internal Power on
Reset when power is applied and Vcc rises above the Power-fail Voltage.
BB32 - Battery Backup 32kHz Enable Bit (05H bit 5)
When the BB32 bit is written to a "1", it will enable a 32kHz signal to be output on the SQW pin while
the part is in battery backup mode if voltage is applied to VBAUX.
AM1-AM4 - Alarm Mask Bits (08H bit 7; 09H bit 7; 0AH bit 7; 0BH bit 7)
Bit 7 of registers 08h to 0Bh contains an alarm mask bit: AM1 to AM4. These bits, in conjunction with
the TIE described later, allow the IRQ output to be activated for a matched alarm condition.
The alarm can be programmed to activate on a specific day of the month, day of the week, or repeat every
day, hour, minute, or second. Table 3 shows the possible settings for AM1 - AM4 and the resulting alarm
rates. Configurations not listed in the table default to the once per second mode to notify the user of an
incorrect alarm setting.
DY/DT - Day/Date Bit (0BH bit 6)
The DY/DT bit controls whether the alarm value stored in bits 0 to 5 of 0BH reflects the day of the week
or the date of the month. If DY/DT is written to a "0", the alarm will be the result of a match with the
date of the month. If DY/DT is written to a "1", the alarm will be the result of a match with the day of the
week.
BLF1 - Valid RAM and Time Bit 1 (0EH bit 7)
BLF2 - Valid RAM and Time Bit 2 (0EH bit 6)
These status bits gives the condition of any batteries attached to the VBAT or VBAUX pins. The
DS1501/DS1511 constantly monitors the battery voltage of the back-up battery sources (VBAT and
VBAUX). The BLF1 and BLF2 bits will be set to a "1" if the battery voltage on VBAT and VBAUX are less
than 2.5V (typical), otherwise BLF1 and BLF2 bits will be a "0". BLF1 reflects the condition of VBAT
with BLF2 reflecting VBAUX. If either bit is read as a "1", the voltage on the respective pin is inadequate
to maintain the RAM memory or clock functions.
PRS - PAB Reset Select Bit (0EH bit 5)
When set to a "0" the PWR pin will be set hi-Z when the DS1501/DS1511 goes into power fail. When set
to a "1", the PWR pin will remain active upon entering power fail.
DS1501/DS1511
8 of 30
PAB - Power Active Bar Control Bit (0EH bit 4)
When this bit is "0", the PWR pin is in the active low state. When this bit is "1", the PWR pin is in the
high impedance state. This bit can be written to a "1" or "0" by the user. If either TDF AND TPE = "1"
OR KSF = "1", the PAB bit will be cleared to a "0".
TDF - Time of Day/Date Alarm Flag (0EH bit 3)
A "1" in the TDF bit indicates that the current time has matched the alarm time. If the TIE bit is also a
"1", the IRQ pin will go low and a "1" will appear in the IRQF bit.
KSF - Kickstart Flag (0EH bit 2)
This bit is set to a "1" when a kickstart condition occurs or when the user writes it to a "1". This bit is
cleared by writing it to a "0".
WDF - Watchdog Flag (0EH bit 1)
If the processor does not access the DS1501/DS1511 with a write within the period specified in addresses
0CH and 0DH, the WDF bit will be set to a "1". WDF is cleared by writing it to a "0".
IRQF - Interrupt Request Flag (0EH bit 0)
The Interrupt Request Flag (IRQF) bit is set to a "1" when one or more of the following are true:
TDF = TIE = "1"
KSF = KIE = "1"
WDF = WDE = "1"
i.e., IRQF = (TDF TIE) + (KSF KIE) + (WDF WDE)
Any time the IRQF bit is a "1", the IRQ pin is driven low.
TE - Transfer Enable Bit (0FH bit 7)
When the TE bit is a "1", the update transfer functions normally by advancing the counts once per second.
When the TE bit is written to a "0", any update transfer is inhibited and the program can initialize the
time and calendar bytes without an update occurring in the midst of initializing. Read cycles can be
executed in a similar manner. TE is a read/write bit that is not modified by internal functions of the
DS1501/DS1511.
CS - Crystal Select Bit (0FH bit 6)
When CS is set to a "0", the oscillator is configured for operation with a crystal that has a 6 pF specified
load capacitance. When CS="1", the oscillator is configured for a 12.5 pF crystal. CS is disabled in the
DS1511 module and should be set to CS="0".
BME - Burst Mode Enable Bit (0FH bit 5)
The burst mode enable bit allows the extended user RAM address registers to automatically increment for
consecutive reads and writes. When BME is set to a "1", the automatic incrementing will be enabled and
when BME is set to a "0", the automatic incrementing will be disabled.
TPE - Time of Day/Date Alarm Power Enable Bit (0FH bit 4)
The wake up feature is controlled through the TPE bit. When the TDF flag bit is set to a "1", if TPE is a
"1", the PWR pin will be driven active. Therefore, setting TPE to "1" enables the wake up feature.
Writing a "0" to TPE disables the wake up feature.
DS1501/DS1511
9 of 30
TIE - Time of Day/Date Alarm Interrupt Enable Bit (0FH bit 3)
The TIE bit allows the TDF Flag to assert an Interrupt. When the TDF flag bit is set to a "1", if TIE is a
"1", the IRQF flag bit will be set to a "1". Writing a "0" to the TIE bit will prevent the TDF flag from
setting the IRQF flag. This bit is automatically cleared to a logic “0” to by the internal Power on Reset
when power is applied and Vcc rises above the Power-fail Voltage.
KIE - Kickstart Enable Interrupt Bit (0FH bit 2)
The KIE bit allows the KSF Flag to assert an interrupt. When the KSF flag bit is set to a “1”, if KIE is a
“1”, the IRQF flag bit will be set to a “1”. Writing a “0” to the KIE bit will prevent the KSF flag from
setting the IRQF flag. This bit is automatically cleared to a logic “0” to by the internal Power on Reset
when power is applied and Vcc rises above the Power-fail Voltage.
WDE - Watchdog Enable Bit (0FH bit 1)
When WDE is set to a "1", the Watchdog function is enabled and either the IRQ or RST pin will be pulled
active based on the state of the WDS bit. This bit is automatically cleared to a logic “0” to by the internal
Power on Reset when power is applied and Vcc rises above the Power-fail Voltage.
WDS - Watchdog Steering Bit (0FH bit 0)
If WDS is a "0" when the Watchdog Flag Bit WDF is set to a "1", the IRQ pin will be pulled low. If
WDS is a "1" when WDF is set to a "1", the watchdog will output a negative pulse on the RST output for
a duration of 40 ms to 200 ms and the ‘IRQF’ flag will be set when the watchdog times out. The WDE
bit will reset to a "0" immediately after RST goes active. This bit is automatically cleared to a logic “0”
to by the internal Power on Reset when power is applied and Vcc rises above the Power-fail Voltage.
CLOCK OSCILLATOR CONTROL
The Clock oscillator may be stopped at any time. To increase the shelf life of a backup lithium battery
source, the oscillator can be turned off to minimize current drain from the battery. The EOSC bit is used
to control state of the oscillator, and must be set to a "0" for the oscillator to function.
READING THE CLOCK
When reading the clock and calendar data, it is recommended to halt updates to the external set of double
buffered RTC registers. This puts the external registers into a static state allowing data to be read without
register values changing during the read process. Normal updates to the internal registers continue while
in this state. External updates are halted when a ”0” is written into the Transfer Enable, TE, bit of
Control register B (0Fh). As long as a “0” remains in the Control register B (TE) bit, updating is halted.
After a halt is issued, the registers reflect the RTC count (day, date, and time) that was current at the
moment the halt command was issued. Normal updates to the external set of registers will resume within
1 second after the (TE) bit is set to a “1”.
SETTING THE CLOCK
It is also recommended to halt updates to the external set of double buffered RTC registers when writing
to the clock. The (TE) bit should be used as described above before loading the RTC registers with the
desired RTC count (day, date, and time) in 24-hour BCD format. Setting the (TE) bit to a “1” will
transfer the new values written, to the internal RTC registers and allow normal operation to resume.
DS1501/DS1511
10 of 30
CLOCK ACCURACY
A standard 32.768 kHz quartz crystal should be directly connected to the DS1501 X1 and X2 oscillator
pins. The crystal selected for use should have a specified load capacitance (CL) of either 6 pF or 12.5 pF,
and the Crystal Select (CS) bit set accordingly. For more information on crystal selection and crystal
layout considerations, please consult Application Note 58, “Crystal Considerations with Dallas Real Time
Clocks.” The DS1501 can also be driven by an external 32.768 kHz oscillator. In order to achieve low
power operation when using an external oscillator, it may be necessary to connect the X1 pin to the
external oscillator signal through a series connection consisting of a resistor and a capacitor. A typical
configuration consists of a 1.0Meg resistor in series with a 100pf ceramic capacitor. When using an
external oscillator the X2 pin must be left open. Accuracy of DS1511 is better than ±1 min./month at
25°C.
USING THE CLOCK ALARM
The alarm settings and control for the DS1501/DS1511 reside within registers 08h - 0Bh (see Table 2).
The TIE bit and alarm mask bits AM1-AM4 must be set as described below for the IRQ or PWR outputs
to be activated for a matched alarm condition.
The alarm can be programmed to activate on a specific day of the month, day of the week, or repeat every
day, hour, minute, or second. It can also be programmed to go off while the DS1501/DS1511 is in the
battery-backed state of operation to serve as a system wake-up. Alarm mask bits AM1-AM4 control the
alarm mode. Table 3 shows the possible settings. Configurations not listed in the table default to the
once per second mode to notify the user of an incorrect alarm setting. When the RTC register values
match alarm register settings, the Time of Day/Date alarm Flag TDF bit is set to a "1". Once the TDF
flag is set, the TIE bit enables the alarm to activate the IRQ pin. The TPE bit enables the alarm flag to
activate the PWR pin.
ALARM MASK BITS Table 3
DY/DT AM4 AM3 AM2 AM1 ALARM RATE
X 1 1 1 1 Once per Second
X 1 1 1 0 When seconds match
X 1 1 0 0 When minutes and seconds match
X 1 0 0 0 When hours, minutes, and seconds match
0 0 0 0 0 When date, hours, minutes, and seconds match
1 0 0 0 0 When day, hours, minutes, and seconds match
USING THE WATCHDOG TIMER
The watchdog timer can be used to restart an out-of-control processor. The watchdog timer is user
programmable in 10 milli-second intervals ranging from 0.01 seconds to 99.99 seconds. The user
programs the watchdog timer by setting the desired amount of time-out into the two BCD Watchdog
Registers (Address 0Ch and 0Dh). For example: writing 60h in the watchdog register 0Ch and 00h to
watchdog register 0Dh will set the watchdog time-out to 600 milli-seconds. If the processor does not
access the timer with a write within the specified period, both the Watchdog Flag WDF and the Interrupt
Request Flag IRQF will be set. If the Watchdog Enable bit WDE is enabled, then either IRQ or RST will
go active depending on the state of the Watchdog Steering Bit WDS. The watchdog will be reloaded and
restarted whenever the watchdog times out. The WDF bit will be set to a "1" regardless of the state of
WDE to serve as an indication to the processor that a watchdog time out has occurred.
DS1501/DS1511
11 of 30
The watchdog timer is reloaded when the processor performs a write of the Watchdog registers. The
time-out period then starts over. The watchdog timer is disabled by writing a value of 00h to both
watchdog registers. The watchdog function is automatically disabled upon power-up by the POWER on
RESET setting WDE=0 and WDS=0. The watchdog registers are not initialized at power up and should
be initialized by the user.
The following summarizes the configurations in which the watchdog can be used.
1. WDE=0 and WDS=0: WDF will be set.
2. WDE=0 and WDS=1: WDF will be set.
3. WDE=1 and WDS=0: WDF and IRQF will be set, and the IRQ pin will be pulled low.
4. WDE=1 and WDS=1: WDF will be set, the RST pin will be pulled low for a duration of 40 ms to
200 ms, and ‘WDE’ will be reset to ‘0’.
CLEARING IRQ AND FLAGS
The Time of Day/Date Alarm Flag (TDF), Watchdog Flag (WDF), and Interrupt Request Flag (IRQF),
are cleared by reading the flag register (0EH) as shown in Figures 2a, 2b, and 2c. The address must be
stable for a minimum of 15 ns (tIRQZ). After the tIRQZ requirement has been met, either a change in
address (figure 2a), a rising edge of OE (figure 2b), or a rising edge of CS (Figure 2c) will cause the flags
to be cleared. The IRQ pin will go inactive after the IRQF flag is cleared.
IRQ AND FLAG WAVEFORMS (ADDRESS RELATED) Figure 2a
DS1501/DS1511
12 of 30
IRQ AND FLAG WAVEFORMS (OE RELATED) Figure 2b
IRQ AND FLAG WAVEFORMS (CE RELATED) Figure 2c
DS1501/DS1511
13 of 30
WAKE UP/KICKSTART
The DS1501/DS1511 incorporates a wake up feature that can power the system on at a pre-determined
day/date and time through activation of the PWR output pin. In addition, the kickstart feature can allow
the system to be powered up in response to a high to low transition on the KS pin, without operating
voltage applied to the VCC pin. As a result, system power may be applied upon such events as key closure,
or a modem ring detect signal. In order to use the kickstart features, the DS1501/DS1511 must have an
auxiliary battery connected to the VBAUX pin. The oscillator must be running to make use of the wakeup
feature.
The wake up feature is controlled through the Time of Day/Date Power Enable bit TPE. Setting TPE to
"1" enables the wake up feature. Writing TPE to a "0" disables the wake up feature. The kickstart feature
is always enabled as long as VBAUX is present.
If the wake up feature is enabled, while the system is powered down (no VCC voltage), the clock/calendar
will monitor the current day or date for a match condition with day/date alarm register (0Bh). In
conjunction with the day/date alarm register, the hours, minutes, and seconds alarm bytes in the clock
calendar register map (02h, 01h, and 00h) are also monitored. As a result, a wake up will occur at the day
or date and time specified by the day/date, hours, minutes, and seconds alarm register values. This
additional alarm will occur regardless of the programming of the TIE bit. When the match condition
occurs, the PWR pin will automatically be driven low. This output can be used to turn on the main system
power supply that provides VCC voltage to the DS1501/DS1511 as well as the other major components in
the system. Also, at this time, the Time of Day/Date alarm Flag, TDF, will be set, indicating that a wake
up condition has occurred.
If VBAUX is present, while VCC is low, the KS input pin will be monitored for a low going transition of
minimum pulse width tKSPW. When such a transition is detected, the PWR line will be pulled low, as it is
for a wake up condition. Also at this time, the Kickstart Flag KSF will be set, indicating that a kickstart
condition has occurred. The KS input pin is always enabled and must not be allowed to float.
The timing associated with both the wake up and kickstarting sequence is illustrated in the Wake
Up/Kickstart Timing Diagram, Figure 3. The timing associated with these functions is divided into
5 intervals, labeled 1-5 on the diagram.
The occurrence of either a kickstart or wake up condition will cause the PWR pin to be driven low, as
described above. During interval 1, if the supply voltage on the DS1501/DS1511 VCC pin rises above VSO
before the power on timeout period (tPOTO) expires, then PWR will remain at the active low level. If VCC
does not rise above the VSO in this time, then the PWR output pin will be turned off and will return to its
high impedance level. In this event, the IRQ pin will also remain tri-stated. The interrupt flag bit (either
TDF or KSF) associated with the attempted power on sequence will remain set until cleared by software
during a subsequent system power on.
If VCC is applied within the time-out period, then the system power on sequence will continue as shown in
intervals 2-5 in the timing diagram. During interval 2, PWR will remain active and IRQ will be driven to
its active low level, indicating that either TDF or KSF was set in initiating the power on. In the diagram
KS is assumed to be pulled up to the VBAUX supply. Also at this time, the PAB bit will be automatically
cleared to "0" in response to a successful power on. The PWR line will remain active as long as the PAB
remains cleared to "0".
DS1501/DS1511
14 of 30
At the beginning of interval 3, the system processor has begun code execution and clears the interrupt
condition of TDF and/or KSF by writing zeroes to both of these control bits. As long as no other interrupt
within the DS1501/DS1511 is pending, the IRQ line will be taken inactive once these bits are reset, and
execution of the application software may proceed. During this time, both the wakeup and kickstart
functions may be used to generate status and interrupts. TDF will be set in response to a day/date, hours,
minutes, and seconds match condition. KSF will be set in response to a low going transition on KS . If the
associated interrupt enable bit is set (TIE and/or KIE) then the IRQ line will be driven low in response to
enabled event. In addition, the other possible interrupt sources within the DS1501/DS1511 may cause IRQ
to be driven low. While system power is applied, the on chip logic will always attempt to drive the PWR
pin active in response to the enabled kickstart or wake up condition. This is true even if PWR was
previously inactive as the result of power being applied by some means other than wake up or kickstart.
The system may be powered down under software control by setting the PAB bit to a “1”. The PAB bit
can only be set to a “1” after the TDF and KSF flags have been cleared to a”0”. Setting PAB to a “1”
causes the open-drain PWR pin to be placed in a high impedance state, as shown at the beginning of
interval 4 in the timing diagram. As VCC voltage decays, the IRQ output pin will be placed in a high
impedance state when VCC goes below VPF. If the system is to be again powered on in response to a wake
up or kickstart, then both the TDF and KSF flags should be cleared and TPE and/or KIE should be
enabled prior to setting the PAB bit.
During interval 5, the system is fully powered down. Battery backup of the clock calendar and nonvolatile
RAM is in effect and IRQ is tri-stated, and monitoring of wake up and kickstart takes place. If PRS="1",
PWR stays active, otherwise if PRS="0", PWR is tri-stated.
DS1501/DS1511
15 of 30
WAKE-UP/KICKSTART TIMING Figure 3
tKSPW
tPOTO
VCC
CONDITION:
VPF VBAT
<VPF
VBAT
0V
VBAT
VPF
0V
VCC
CONDITION:
VBAT
VPF >
TDF/KSF
(INTERNAL)
VIL
VIH
HI-Z
____
IRQ
VIL
VIH
HI-Z
____
PW R
VIH
VIL
___
KS
12345
INT ER VALS
NOTE:
Time intervals shown above are referenced in Wake-up/Kickstart section.
WAKE-UP/KICKSTART TIMING (TA= 5°C)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Kickstart Input Pulse Width tKSPW 2µs
Wake-up/Kickstart Power-on
Timeout
tPOTO 2 seconds 5
DS1501/DS1511
16 of 30
SQUARE WAVE OUTPUT
The square wave output is enabled and disabled via the E32K bit. If the square wave is enabled
(E32K ="0") and the oscillator is running, then a 32.768 kHz square wave will be output on the SQW pin.
If the Battery Backup 32 kHz enable bit (BB32) is enabled, and voltage is applied to VBAUX, then the
32.768 kHz square wave will be output on the SQW pin in the absence of VCC.
BATTERY MONITOR
The DS1501/DS1511 constantly monitors the battery voltage of the back-up battery sources (VBAT and
VBAUX). The Battery Low Flags BLF1 and BLF2 will be set to a "1" if the battery voltage on VBAT and
VBAUX are less than 2.5 volts (typical), otherwise BLF1 and BLF2 will be a "0". BLF1 monitors VBAT,
and BLF2 monitors VBAUX.
POWER-UP DEFAULT STATES
These bits are set upon power-up: EOSC ="0", E32K ="0", TIE="0", KIE="0", WDE="0", and WDS="0".
256 X 8 EXTENDED RAM
The DS1501/DS1511 provides 256 x 8 of on-chip SRAM which is controlled as nonvolatile storage
sustained from a lithium battery. On power-up, the RAM is taken out of write protect status by an internal
signal.
Access to the SRAM is controlled by two on-chip latch registers. One register is used to hold the SRAM
address, and the other is used to hold read/write data. The SRAM address space is from 00h to FFh. The
8-bit address of the RAM location to be accessed must be loaded into the extended RAM address register
located at 10h. Data in the addressed location may be read by performing a read operation from location
13h, or written to by performing a write operation to location 13h. Data in any addressed location may be
read or written repeatedly with changing the address in location 10h.
To read or write consecutive extended RAM locations, a burst mode feature can be enabled to increment
the extended RAM address. To enable the burst mode feature, set the BME bit to a 1. With burst mode
enabled, write the extended RAM starting address location to register 10h. Then read or write the
extended RAM data from/to register 13h. The extended RAM address locations are automatically
incremented on the rising edge of OE ,WE ,or CS only when register 13h is being accessed. Refer to the
Burst Mode Timing Waveform (Figure 7).
DS1501/DS1511
17 of 30
ABSOLUTE MAXIMUM RATINGS*
Voltage on Any Pin Relative to Ground -0.5V to +6.0V
Operating Temperature, Commercial Range 0°C to 70°C
Operating Temperature, Industrial Range -40°C to +85°C
Storage Temperature, DS1501 -55°C to +125°C
Storage Temperature, DS1511 -40°C to +70°C
Soldering Temperature 260°C for 10 seconds (DIP Package) (See Note 7)
See IPC/JEDEC Standard J-STD-020A for
Surface Mount Devices
* This is a stress rating only and functional operation of the device at these or any other conditions above
those indicated in the operation sections of this specification is not implied. Exposure to absolute
maximum rating conditions for extended periods of time may affect reliability.
OPERATING RANGE
Range Temperature VCC
Commercial 0°C to +70°C 3.3V ± 10% or 5V ± 10%
Industrial -40°C to +85°C 3.3V ± 10% or 5V ± 10%
RECOMMENDED DC OPERATING CONDITIONS (Over the Operating Range)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Power Supply Voltage
5V Operation VCC 4.5 5.0 5.5 V 1
Power Supply Voltage
3.3V Operation VCC 3.0 3.3 3.6 V 1
Logic 1 Voltage All Inputs
VCC = 5V ±10% VIH 2.2 VCC+0.3 V 1
VCC = 3.3V ±10% VIH 2.0 VCC+0.3 V 1
Logic 0 Voltage All Inputs
VCC = 5V ±10% VIL -0.3 0.8 V 1
VCC = 3.3V ±10% VIL -0.3 0.6 V 1
Battery Voltage VBAT 2.5 3.7 V 1
Auxiliary Battery Voltage
5V Operation VBAUX 2.5 5.3 V 1
Auxiliary Battery Voltage
3V Operation VBAUX 2.5 3.7 V 1
DS1501/DS1511
18 of 30
DC ELECTRICAL CHARACTERISTICS
(Over the Operating Range; VCC = 5.0V ± 10%)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Active Supply Current ICC 15 mA 2
TTL Standby Current( CE =
VIH ) ICC1 5mA 2
CMOS Standby Current
(CE =VCC -0.2V) ICC2 5mA 2
Battery Current, Oscillator On IBAT1 1.0 µA
Battery Current, Oscillator Off IBAT2 0.1 µA
Input Leakage Current
(any input) IIL -1 +1 µA
Output Leakage Current
(any output) IOL -1 +1 µA
Output Logic 1 Voltage
(IOUT = -1.0 mA) VOH 2.4 V 1
VOL1 0.4 V 1
Output Logic 0 Voltage
IOUT = 2.1 mA, DQ0-7 Outputs
IOUT = 7.0 mA, IRQ ,PWR , and
RST Outputs VOL2 0.4 V 1, 3
Power-fail Voltage VPF 4.25 4.50 V 1
Battery Switch-over Voltage VSO
VBAT,
VBAUX
or VPF
V1, 4
DS1501/DS1511
19 of 30
DC ELECTRICAL CHARACTERISTICS
(Over the Operating Range; VCC = 3.3V ± 10%)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Active Supply Current ICC 10 mA 2
TTL Standby Current( CE =
VIH ) ICC1 4mA 2
CMOS Standby Current
(CE ==VCC -0.2V) ICC2 4mA 2
Battery Current, Oscillator On IBAT1 1.0 µA
Battery Current, Oscillator Off IBAT2 0.1 µA
Input Leakage Current
(any input) IIL -1 +1 µA
Output Leakage Current
(any output) IOL -1 +1 µA
Output Logic 1 Voltage
(IOUT = -1.0 mA) VOH 2.4 V 1
VOL1 0.4 V 1
Output Logic 0 Voltage
IOUT = -2.1 mA, DQ0-7 Outputs
IOUT = 7.0 mA, IRQ ,PWR , and
RST Outputs VOL2 0.4 V 1, 3
Power-fail Voltage VPF 2.80 2.97 V 1
Battery Switch-over Voltage VSO
VBAT,
VBAUX,
or VPF
V 1, 4
DS1501/DS1511
20 of 30
AC OPERATING CHARACTERISTICS
(Over the Operating Range; VCC = 5.0V ± 10%)
PARAMETER SYMBOL MIN TYPE MAX UNITS NOTES
Read Cycle Time tRC 70 ns
Address Access Time tAA 70 ns
CE to DQ Low-Z tCEL 5ns
CE Access Time tCEA 70 ns
CE Data Off Time tCEZ 25 ns
OE to DQ Low-Z tOEL 5ns
OE Access Time tOEA 35 ns
OE Data Off Time tOEZ 25 ns
Output Hold from Address tOH 5ns
Write Cycle Time tWC 70 ns
Address Setup Time tAS 0ns
WE Pulse Width tWEW 50 ns
CE Pulse Width tCEW 55 ns
Data Setup Time tDS 30 ns
Data Hold Time tDS 30 ns
Address Hold Time tAH 0ns
WE Data Off Time tWEZ 25 ns
Write Recovery Time tWR 5ns
DS1501/DS1511
21 of 30
AC OPERATING CHARACTERISTICS
(Over the Operating Range; VCC = 3.3V ± 10%)
PARAMETER SYMBOL MIN TYPE MAX UNITS NOTES
Read Cycle Time tRC 120 ns
Address Access Time tAA 120 ns
CE to DQ Low-Z tCEL 5ns
CE Access Time tCEA 120 ns
CE Data Off Time tCEZ 40 ns
OE to DQ Low-Z tOEL 5ns
OE Access Time tOEA 100 ns
OE Data Off Time tOEZ 35 ns
Output Hold from Address tOH 5ns
Write Cycle Time tWC 120 ns
Address Setup Time tAS 0ns
WE Pulse Width tWEW 100 ns
CE Pulse Width tCEW 110 ns
Data Setup Time tDS 80 ns
Data Hold Time tDS 0ns
Address Hold Time tAH 0ns
WE Data Off Time tWEZ 40 ns
Write Recovery Time tWR 10 ns
READ CYCLE TIMING Figure 4
DS1501/DS1511
22 of 30
WRITE CYCLE TIMING, WRITE ENABLE CONTROLLED Figure 5
WRITE CYCLE TIMING, CHIP ENABLE CONTROLLED Figure 6
DS1501/DS1511
23 of 30
BURST MODE TIMING CHARACTERISTICS (VCC=5.0V±10%)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Pulse Width OE ,WE , or CE High PWHIGH xns
Pulse Width OE , WE , or CE Low PWLOW xns
BURST MODE TIMING CHARACTERISTICS (VCC=3.3V±10%)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Pulse Width OE ,WE , or CE High PWHIGH xns
Pulse Width OE , WE , or CE Low PWLOW xns
BURST MODE TIMING WAVEFORM Figure 7
A
0-A4
DQ0-DQ7
OE ,WE ,or CS
13h
PW HIGH
PW LOW
DS1501/DS1511
24 of 30
POWER UP/DOWN CHARACTERISTICS
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
CE or WE at VIH Before
Power Fail
TPD 0µs
VCC Fall Time: VPF(MAX) to
VPF(MIN)
tF300 µs
VCC Fall Time: VPF(MIN) to VSO TFB 10 µs
VCC Rise Time: VPF(MIN) to
VPF(MAX)
tR0µs
VPF to RST High tREC 40 200 ms
(TA =25°C)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Expected Data Retention
Time(Oscillator On)
tDR 10 years 6
CAPACITANCE (TA=25°C)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Capacitance on all input pins CIN 10 pF
Capacitance on IRQ ,PWR ,
RST ,and DQ pins
CIO 10 pF
AC TEST CONDITIONS
Output Load: 100 pF + 1TTL Gate
Input Pulse Levels: 0.0 to 3.0V for 5V operation
0.0 to 2.7V for 3.3V operation
Timing Measurement Reference Levels:
Input: 1.5V
Output: 1.5V
Input Pulse Rise and Fall Times: 5 ns
DS1501/DS1511
25 of 30
POWER-UP/DOWN WAVEFORM TIMING 5-VOLT DEVICE Figure 8
POWER-UP/DOWN WAVEFORM TIMING 3.3-VOLT DEVICE Figure 9
DS1501/DS1511
26 of 30
NOTE
1. Voltage referenced to ground.
2. Outputs are open.
3. The IRQ ,PWR , and RST outputs are open drain.
4. If VPF is less than VBAT and VBAUX, the device power is switched from VCC to the greater of VBAT and
VBAUX when VCC drops below VPF. If VPF is greater than VBAT and VBAUX, the device power is
switched from VCC to the larger of VBAT and VBAUX when VCC drops below the larger of VBAT and
VBAUX.
5. The wake-up timeout is generated only when the oscillator is enabled.
6. tDR is the amount of time that the internal battery can power the internal oscillator and internal
registers of the DS1511.
7. Real-Time Clock Modules can be successfully processed through conventional wave-soldering
techniques as long as temperature exposure to the lithium energy source contained within does not
exceed +85°C. Post-solder cleaning with water washing techniques is acceptable, provided that
ultrasonic vibration is not used.
DS1501/DS1511
27 of 30
PKG 28-PIN
DIM MIN MAX
A IN.
MM
1.445
36.70
1.470
37.34
B IN.
MM
0.530
13.46
0.550
13.97
C IN.
MM
0.140
3.56
0.160
4.06
D IN.
MM
0.600
15.24
0.625
15.88
E IN.
MM
0.015
0.38
0.040
1.02
F IN.
MM
0.120
3.05
0.145
3.68
G IN.
MM
0.090
2.29
0.110
2.79
H IN.
MM
0.625
15.88
0.675
17.15
J IN.
MM
0.008
0.20
0.012
0.30
K IN.
MM
0.015
0.38
0.022
0.56
DS1501 28-PIN
DS1501/DS1511
28 of 30
PKG 28-PIN
DIM MIN MAX
A IN.
MM
0.706
17.93
0.728
18.49
B IN.
MM
0.338
8.58
0.350
8.89
C IN.
MM
0.086
2.18
0.110
2.79
D IN.
MM
0.020
0.58
0.050
1.27
E IN.
MM
0.002
0.05
0.014
0.36
F IN.
MM
0.090
2.29
0.124
3.15
G IN.
MM
0.050
1.27
BSC
H IN.
MM
0.460
11.68
0.480
12.19
J IN.
MM
0.006
0.15
0.013
0.33
K IN.
MM
0.014
0.36
0.020
0.51
DS1501S 28-PIN SOIC
DS1501/DS1511
29 of 30
PKG 28-PIN
DIM MIN MAX
A - 1.20
A1 0.05 -
A2 0.91 1.02
b 0.18 0.27
c 0.15 0.20
D 13.20 13.60
D1 11.70 11.90
E 7.90 8.10
e 0.55 BSC
L 0.30 0.70
l 0.80 BSC
DS1501E 28-PIN TSOP
N
OTES:
1. ALL DIMENSIONS ARE IN MILLIMETERS
2. DETAILS OF PIN 1 IDENTIFIER ARE OPTIONAL
BUT ONE HALF OF ITS AREA MUST BE
LOCATED WITHIN THE ZONE INDICATED
DS1501/DS1511
30 of 30
PKG 28-PIN
DIM MIN MAX
A IN.
MM
1.520
38.61
1.540
39.12
B IN.
MM
0.695
17.65
0.720
18.29
C IN.
MM
0.350
8.89
0.375
9.52
D IN.
MM
0.100
2.54
0.130
3.30
E IN.
MM
0.015
0.38
0.030
0.76
F IN.
MM
0.110
2.79
0.140
3.56
G IN.
MM
0.090
2.29
0.110
2.79
H IN.
MM
0.590
14.99
0.630
16.00
J IN.
MM
0.008
0.20
0.012
0.30
K IN.
MM
0.015
0.38
0.021
0.53
DS1511
-
N
OTE: PINS 2, 3, 21, AND 25 ARE MISSING BY
DESIGN.