MAXIM DS1321

19-6312; Rev 6/12
DS1321
Flexible Nonvolatile Controller with
Lithium Battery Monitor
FEATURES










Converts CMOS SRAM into nonvolatile
memory
Unconditionally write-protects SRAM when
VCC is out of tolerance
Automatically switches to battery backup
supply when VCC power failure occurs
Flexible memory organization
- Mode 0: 4 banks with 1 SRAM each
- Mode 1: 2 banks with 2 SRAMs each
- Mode 2: 1 bank with 4 SRAMs each
Monitors voltage of a lithium cell and
provides advanced warning of impending
battery failure
Signals low-battery condition on active low
Battery Warning output signal
Resets processor when power failure occurs
and holds processor in reset during system
power-up
Optional 5% or 10% power-fail detection
16-pin PDIP, 16-pin SO and 20-pin TSSOP
packages
Industrial temperature range of -40°C to
+85°C
PIN ASSIGNMENT
VCCO
1
16
VCCI
VBAT
2
15
RST
TOL
3
14
BW
CEI1
4
13
CEO1
CEI2
5
12
CEO2
A/CEI3
6
11
CEO3
B/CEI4
7
10
CEO4
GND
8
9
MODE
DS1321 16-Pin PDIP
(300 mils)
VCCO
1
16
VCCI
VBAT
2
15
RST
TOL
3
14
BW
CEI1
4
13
CEO1
CEI2
5
12
CEO2
A/CEI3
6
11
CEO3
B/CEI4
7
10
CEO4
GND
8
9
MODE
DS1321S 16-Pin SO
(150 mils)
PIN DESCRIPTION
VCCI
VCCO
VBAT
A, B
- +5V Power Supply Input
- SRAM Power Supply Output
- Backup Battery Input
- Address Inputs
- Chip Enable Inputs
CEI1 - CEI4
CEO1 - CEO4 - Chip Enable Outputs
TOL
- VCC Tolerance Select
- Battery Warning Output (Open
BW
Drain)
- Reset Output (Open Drain)
RST
MODE
- Mode Input
GND
- Ground
NC
- No Connection
VCCO
1
20
VCCI
VBAT
2
19
RST
TOL
3
BW
CEI1
4
18
17
CEI2
5
16
CEO2
NC
6
NC
A/CEI3
7
15
14
B/CEI4
8
13
CEO4
NC
9
12
NC
10
11
MODE
GND
CEO1
CEO3
DS1321E 20-Pin TSSOP
1 of 13
DS1321
DESCRIPTION
The DS1321 Flexible Nonvolatile Controller with Lithium Battery Monitor is a CMOS circuit which
solves the application problem of converting CMOS SRAMs into nonvolatile memory. Incoming power
is monitored for an out-of-tolerance condition. When such a condition is detected, chip enable outputs are
inhibited to accomplish write protection and the battery is switched on to supply the SRAMs with
uninterrupted power. Special circuitry uses a low-leakage CMOS process which affords precise voltage
detection at extremely low battery consumption. One DS1321 can support as many as four SRAMs
arranged in any of three memory configurations.
In addition to battery-backup support, the DS1321 performs the important function of monitoring the
remaining capacity of the lithium battery and providing a warning before the battery reaches end-of-life.
Because the open-circuit voltage of a lithium backup battery remains relatively constant over the majority
of its life, accurate battery monitoring requires loaded-battery voltage measurement. The DS1321
performs such measurement by periodically comparing the voltage of the battery as it supports an internal
resistive load with a carefully selected reference voltage. If the battery voltage falls below the reference
voltage under such conditions, the battery will soon reach end-of-life. As a result, the Battery Warning
pin is activated to signal the need for battery replacement.
MEMORY BACKUP
The DS1321 performs all the circuit functions required to provide battery-backup for as many as four
SRAMs. First, the device provides a switch to direct power from the battery or the system power supply
(VCCI). Whenever VCCI is less than the VCCTP trip point and VCCI is less than the battery voltage VBAT, the
battery is switched in to provide backup power to the SRAM. This switch has voltage drop of less than
0.2 volts.
Second, the DS1321 handles power failure detection and SRAM write-protection. VCCI is constantly
monitored, and when the supply goes out of tolerance, a precision comparator detects power failure and
inhibits the four chip enable outputs in order to write-protect the SRAMs. This is accomplished by
holding CEO1 through CEO4 to within 0.2 volts of VCCO when VCCI is out of tolerance. If any CEI is
active (low) at the time that power failure is detected, the corresponding CEO signal is kept low until the
CEI signal is brought high again. Once the CEI signal is brought high, the CEO signal is taken high and
held high until after VCCI has returned to its nominal voltage level. If the CEI signal is not brought high
by 1.5 µs after power failure is detected, the corresponding CEO is forced high at that time. This specific
scheme for delaying write protection for up to 1.5 µs guarantees that any memory access in progress
when power failure occurs will complete properly. Power failure detection occurs in the range of 4.75 to
4.5 volts (5% tolerance) when the TOL pin is wired to GND or in the range of 4.5 to 4.25 volts (10%
tolerance) when TOL is connected to VCCO.
2 of 13
DS1321
MEMORY CONFIGURATIONS
The DS1321 can be configured via the MODE pin for three different arrangements of the four attached
SRAMs. The state of the MODE pin is latched at VCCI = VCCTP on power up. See Figure 1 for details.
MEMORY CONFIGURATIONS Figure 1
MODE = GND (4 BANKS WITH 1 SRAM EACH):
MODE = VCCO (2 BANKS WITH 2 SRAM EACH):
MODE FLOATING (1 BANK WITH 4 SRAMs):
3 of 13
DS1321
BATTERY VOLTAGE MONITORING
The DS1321 automatically performs periodic battery voltage monitoring at a factory-programmed time
interval of 24 hours. Such monitoring begins within tREC after VCCI rises above VCCTP and is suspended
when power failure occurs.
After each 24-hour period (tBTCN) has elapsed, the DS1321 connects VBAT to an internal 1 MΩ test
resistor (RINT) for one second (tBTPW). During this one second, if VBAT falls below the factoryprogrammed battery voltage trip point (VBTP), the battery warning output BW is asserted. While BW is
active, battery testing will be performed with period tBTCW to detect battery removal and replacement.
Once asserted, BW remains active until the battery is physically removed and replaced by a fresh cell.
The battery is still retested after each VCC power-up, however, even if BW was active on power-down. If
the battery is found to be higher than VBTP during such testing, BW is deasserted and regular 24-hour
testing resumes. BW has an open-drain output driver.
Battery replacement following BW activation is normally done with VCCI nominal so that SRAM data is
not lost. During battery replacement, the minimum time duration between old battery detachment and
new battery attachment (tBDBA) must be met or BW will not deactivate following attachment of the new
battery. Should BW not deactivate for this reason, the new battery can be detached for tBDBA and then reattached to clear BW .
NOTE: The DS1321 cannot constantly monitor an attached battery because such monitoring would
drastically reduce the life of the battery. As a result, the DS1321 only tests the battery for one second out
of every 24 hours and does not monitor the battery in any way between tests. If a good battery (one that
has not been previously flagged with BW ) is removed between battery tests, the DS1321 may not
immediately sense the removal and may not activate BW until the next scheduled battery test. If a battery
is then reattached to the DS1321, the battery may not be tested until the next scheduled test.
NOTE: Battery monitoring is only a useful technique when testing can be done regularly over the entire
life of a lithium battery. Because the DS1321 only performs battery monitoring when VCC is nominal,
systems which are powered-down for excessively long periods can completely drain their lithium cells
without receiving any advanced warning. To prevent such an occurrence, systems using the DS1321
battery monitoring feature should be powered-up periodically (at least once every few months) in order to
perform battery testing. Furthermore, anytime BW is activated on the first battery test after a power-up,
data integrity should be checked via checksum or other technique.
POWER MONITORING
The DS1321 automatically detects out-of-tolerance power supply conditions and warns a processor-based
system of impending power failure. When VCCI falls below the trip point level defined by the TOL pin
(VCCTP), the VCCI comparator activates the reset signal RST . Reset occurs in the range of 4.75 to 4.5 volts
(5% tolerance) when the TOL pin is connected to GND or in the range of 4.5 to 4.25 volts (10%
tolerance) when TOL is connected to VCCO.
RST also serves as a power-on reset during power-up. After VCCI exceeds VCCTP, RST will be held active
for 200 ms nominal (tRPU). This reset period is sufficiently long to prevent system operation during
power-on transients and to allow tREC to expire. RST has an open-drain output driver.
4 of 13
DS1321
FRESHNESS SEAL MODE
When the battery is first attached to the DS1321 without VCC power applied, the device does not
immediately provide battery-backup power on VCCO. Only after VCCI exceeds VCCTP will the DS1321
leave Freshness Seal Mode. This mode allows a battery to be attached during manufacturing but not used
until after the system has been activated for the first time. As a result, no battery energy is drained during
storage and shipping.
FUNCTIONAL BLOCK DIAGRAM Figure 2
5 of 13
DS1321
ABSOLUTE MAXIMUM RATINGS
Voltage Range on Any Pin Relative to Ground
Operating Temperature Range
Storage Temperature Range
Soldering Temperature (reflow, SO or TSSOP)
Lead Temperature (soldering, 10s)
-0.5V to +6.0V
-40°C to +85°C
-55°C to +125°C
+260°C
+300°C
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.
PACKAGE THERMAL CHARACTERISTICS (Note 1)
PDIP
Junction-to-Ambient Thermal Resistance (θJA).…………………...………………………......95°C/W
Junction-to-Case Thermal Resistance (θJC)……………………………………………………35°C/W
SO
Junction-to-Ambient Thermal Resistance (θJA).…………………...………………………......75°C/W
Junction-to-Case Thermal Resistance (θJC)……………………………………………………24°C/W
TSSOP
Junction-to-Ambient Thermal Resistance (θJA).……………………………………………..73.8°C/W
Junction-to-Case Thermal Resistance (θJC)……………………………………………………20°C/W
Note 1:
Package thermal resistances were obtained using the method described in JEDEC specification JESD51-7, using a four-layer board
for the SMT packages. For detailed information on package thermal considerations, refer to www.maxim-ic.com/thermal-tutorial.
RECOMMENDED OPERATING CONDITIONS
PARAMETER
Supply Voltage TOL=GND
Supply Voltage TOL=VCCO
Battery Supply Voltage
Logic 1 Input
Logic 0 Input
SYMBOL
VCCI
VCCI
VBAT
VIH
VIL
DC ELECTRICAL CHARACTERISTICS
PARAMETER
Operating Current (TTL inputs)
Operating Current (CMOS inputs)
RAM Supply Voltage
RAM Supply Current
(VCCO ≥ VCCI -0.2V)
Supply Current
(VCCO ≥ VCCI -0.3V)
VCC Trip Point (TOL=GND)
VCC Trip Point (TOL=VCCO)
VBAT Trip Point
Output Current @ 2.2V
Output Current @ 0.4V
SYMBOL
ICC1
ICC2
VCCO
ICCO1
MIN
4.75
4.5
2.0
2.0
-0.3
MIN
VCC1
-0.2
TYP
5.0
5.0
3.0
4.50
4.25
2.50
-1
6 of 13
UNITS
V
V
V
V
V
NOTES
2
2
2
2. 13
2, 13
(-40°C to +85°C; VCCI ≥ VCCTP)
TYP
1
100
ICCO2
VCCTP
VCCTP
VBTP
IOH
IOL
MAX
5.5
5.5
6.0
VCCI+0.3
+0.8
(-40°C to +85°C)
4.62
4.37
2.6
MAX
1.5
150
UNITS
mA
µA
V
NOTES
3
3, 6
2
185
mA
4
260
mA
5
4.75
4.50
2.70
V
V
V
mA
mA
2
2
2
8, 11
8, 11
4
DS1321
Input Leakage
Output Leakage
Battery Monitoring Test Load
IIL
ILO
RINT
-1.0
-1.0
0.8
DC ELECTRICAL CHARACTERISTICS
PARAMETER
Battery Current
Battery Backup Current
Supply Voltage
CEO Output
CAPACITANCE
PARAMETER
Input Capacitance
( CEI *, TOL, MODE)
Output Capacitance
( CEO *, BW , RST )
SYMBOL
IBAT
ICCO3
VCCO
VOHL
SYMBOL
CIN
SYMBOL
tPD
tCE
tREC
tPU
tRPU
tBPU
PARAMETER
VCC Slew Rate
VCC Fail Detect to RST Active
VCC Slew Rate
SYMBOL
tF
tRPD
tR
AC ELECTRICAL CHARACTERISTICS
PARAMETER
Battery Test to BW Active
Battery Test Cycle-Normal
Battery Test Cycle-Warning
Battery Test Pulse Width
Battery Detach to Battery Attach
Battery Attach to BW Inactive
MIN
MIN
150
AC ELECTRICAL CHARACTERISTICS
SYMBOL
tBW
tBTCN
tBTCW
tBTPW
tBDBA
tBABW
µA
µA
MΩ
(-40°C to +85°C; VCCI < VBAT; VCCI < VCCTP)
MIN
TYP
MAX
UNITS NOTES
100
nA
3
500
µA
7
VBAT-0.2
V
2
VBAT-0.2
V
2, 9
TYP
COUT
AC ELECTRICAL CHARACTERISTICS
PARAMETER
CEI to CEO Propagation Delay
CE Pulse Width
VCC Valid to End of
Write Protection
VCC Valid to CEI Inactive
VCC Valid to RST Inactive
VCC Valid to BW Valid
1.2
+1.0
+1.0
1.5
MIN
150
MAX
7
UNITS
pF
7
pF
TYP
12
200
MAX
20
1.5
125
UNITS
ns
µs
ms
2
350
1
ms
ms
s
7 of 13
NOTES
12
10
11
11
(-40°C to +85°C; VCCI < VCCTP)
TYP
MAX
15
UNITS
µs
µs
µs
NOTES
11
(-40°C to +85°C; VCCI ≥ VCCTP)
TYP
24
5
7
NOTES
(-40°C to +85°C; VCCI ≥ VCCTP)
15
MIN
(TA = +25°C)
MAX
1
1
1
UNITS
s
hr
s
s
s
s
NOTES
11
11
DS1321
TIMING DIAGRAM: POWER-UP
NOTE:
If VBAT > VCCTP, VCCO will begin to slew with VCCI when VCCI = VCCTP.
8 of 13
DS1321
TIMING DIAGRAM: POWER-DOWN
NOTES:
If VBAT > VCCTP, VCCO will slew down with VCCI until VCCI = VCCTP.
9 of 13
TIMING DIAGRAM: BATTERY WARNING DETECTION
NOTE:
DS1321
tBW is measured from the expiration of the internal timer to the activation of the battery warning output
BW .
TIMING DIAGRAM: BATTERY REPLACEMENT
10 of 13
DS1321
NOTES:
2. All voltages referenced to ground.
3. Measured with outputs open circuited.
4. ICCO1 is the maximum average load which the DS1321 can supply to attached memories at VCCO ≥ VCCI
-0.2V.
5. ICCO2 is the maximum average load which the DS1321 can supply to attached memories at VCCO ≥ VCCI
-0.3V.
6. All inputs within 0.3V of ground or VCCI.
7. ICCO3 is the maximum average load current which the DS1321 can supply to the memories in the
battery backup mode at VCCO ≥ VBAT -0.2V.
8. Measured with a load as shown in Figure 1.
9. Chip Enable Outputs CEO1 - CEO4 can only sustain leakage current in the battery backup mode.
10. CEO1 through CEO4 will be held high for a time equal to tREC after VCCI crosses VCCTP on power-up.
11. BW and RST are open drain outputs and, as such, cannot source current. External pullup resistors
should be connected to these pins for proper operation. Both BW and RST can sink 10 mA.
12. tCE maximum must be met to ensure data integrity on power down.
13. In battery backup mode, inputs must never be below ground or above VCCO.
14. The DS1321 is recognized by Underwriters Laboratories (UL) under file E99151.
DC TEST CONDITIONS
Outputs Open
All voltages are referenced to ground
AC TEST CONDITIONS
Output Load: See below
Input Pulse Levels: 0 - 3.0V
Timing Measurement Reference Levels
Input: 1.5V
Output: 1.5V
Input pulse Rise and Fall Times: 5 ns
11 of 13
DS1321
OUTPUT LOAD Figure 3
*INCLUDING SCOPE AND JIG CAPACITANCE
ORDERING INFORMATION
TEMP
PINRANGE
PACKAGE
DS1321+
-40°C to +85°C 16 PDIP
DS1321S+
-40°C to +85°C 16 SO
DS1321E+
-40°C to +85°C 20 TSSOP
+ Denotes a lead(Pb)-free/RoHS-compliant package.
PART
PACKAGE INFORMATION
For the latest package outline information and land patterns (footprints), go to www.maxim-ic.com/packages. Note that a “+”,
“#”, or “-” in the package code indicates RoHS status only. Package drawings may show a different suffix character, but the
drawing pertains to the package regardless of RoHS status.
PACKAGE TYPE
16 PDIP
16 SO
20 TSSOP
PACKAGE CODE
P16+1
S16+1
U20+1
OUTLINE NO.
21-0043
21-0041
21-0066
12 of 13
LAND PATTERN NO.

90-0097
90-0116
DS1321
DATA SHEET REVISION SUMMARY
The following represent the key differences between 03/26/96 and 06/12/97 version of the DS1321 data
sheet. Please review this summary carefully.
1.
Changed ICCO1 from 200 to 185 mA max
2.
Changed ICCO2 from 350 to 260 mA max
3.
Changed VBTP from 2.55 - 2.65V to 2.50 - 2.70V
4.
Changed RIM from 1.0 typ to 1.2 MΩ and 1.4 max to 1.5 MΩ
5.
Changed tPD from 5 typ, 15 max to 12 typ, 20 max
6.
Changed tRPO units from ns to µs
7.
Changed block diagram to show U.L. compliance
The following represent the key differences between 06/12/97 and 09/29/97 version of the DS1321 data
sheet. Please review this summary carefully.
1.
Changed AC test conditions
The following represent the key differences between 09/29/97 and 12/12/97 version of the DS1321 data
sheet. Please review this summary carefully.
1.
Removed preliminary from title bar.
2.
Specified which inputs and outputs are relevant for CIN and COUT specs. This is not a change, just
a clarification.
The following represent the key differences between 12/12/97 and 6/12 version of the DS1321 data sheet.
Please review this summary carefully.
1.
Replace logo and clarify package types.
2.
Update ordering, soldering, and package information; add package thermal data.
13 of 13
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim
reserves the right to change the circuitry and specifications without notice at any time.
Maxim Integrated Products, Inc. 160 Rio Robles, San Jose, CA 95134 USA 1-408-601-1000
© 2012 Maxim Integrated Products
Maxim is a registered trademark of Maxim Integrated Products, Inc.