DS1312
022598 2/10
In addition to battery–backup support, the DS1312 per-
forms 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 DS1312 performs such measure-
ment by periodically comparing the voltage of the bat-
tery as it supports an internal resistive load with a care-
fully 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 DS1312 performs all the circuit functions required
to provide battery–backup for an SRAM. First, the
device provides a switch to direct power from the bat-
tery or the system power supply (VCCI). Whenever VCCI
is less than the switch point VSW 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 DS1312 handles power failure detection
and SRAM write–protection. VCCI is constantly moni-
tored, and when the supply goes out of tolerance, a pre-
cision comparator detects power failure and inhibits
chip enable output (CEO) in order to write–protect the
SRAM. This is accomplished by holding CEO to within
0.2 volts of VCCO when VCCI is out of tolerance. If CEI is
(active) low at the time that power failure is detected, the
CEO signal is kept low until CEI is brought high again.
Once CEI is brought high, CEO is taken high and held
high until after VCCI has returned to its nominal voltage
level. If CEI is not brought high by 1.5 µs after power fail-
ure is detected, 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.
BATTERY VOLTAGE MONITORING
The DS1312 automatically performs periodic battery
voltage monitoring at a factory–programmed time inter-
val 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
DS1312 connects VBAT to an internal 1.2 MΩ test resis-
tor (RINT) for one second (tBTPW). During this one
second, if VBAT falls below the factory–programmed
battery voltage trip point (VBTP), the battery warning
output BW is asserted. While BW is active battery test-
ing 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 out-
put 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 deacti-
vate following attachment of the new battery. Should
BW not deactivate for this reason, the new battery can
be detached for tBDBA and then re–attached to clear
BW.
NOTE: The DS1312 cannot constantly monitor an
attached battery because such monitoring would drasti-
cally reduce the life of the battery. As a result, the
DS1312 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 DS1312 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 DS1312, the battery may not be tested until the next
scheduled test.
NOTE: Battery monitoring is only an useful technique
when testing can be done regularly over the entire life of
a lithium battery. Because the DS1312 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. T o prevent such an occurrence,
systems using the DS1312 battery monitoring feature
should be powered–up periodically (at least once every
few months) in order to perform battery testing. Further-