250mA Output in Vcc Mode (0.6Ω)
25mA Output in Battery Mode (5Ω)
■ On-Board Gating of Chip-Enable Signals
Memory Write-Cycle Completion
6ns CE Gate Propagation Delay
■ Voltage Monitor for Power-Fail or Low Battery
■ Backup-Battery Monitor
■ RESET Valid to Vcc=1V
■ Pin Compatible Upgrade to MAX791
DESCRIPTION
The SP791 is a microprocessor (µP) supervisory circuit that integrates a myriad of components involved in discrete solutions to monitor power-supply and battery-control functions in
µP and digital systems. The SP791 offers complete µP monitoring and watchdog functions.
The SP791 is ideal for a low-cost battery management solution and is well suited for portable,
battery-powered applications with its supply current of 40µA. The 6ns chip-enable propagation delay, the 25mA current output in battery-backup mode, and the 250mA current output
in standard operation also makes the SP791 suitable for larger scale, high-performance
equipment.
Stresses beyond these listed under "Absolute Maximum
Ratings" may cause permanent damage to the device. These
are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is
not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Operating Temperature Ranges
SP791C ..............................0oC to +70oC
SP791E ...........................-40oC to +85oC
Storage T emperature Range...........-65oC to +160oC
Lead Temperature (soldering,10sec)..........+300oC
ELECTRICAL CHARACTERISTICS
(Vcc = 4.75V to 5.5V, VBATT = 2.8V, TA = T
PARAMETERMINTYPMAXUNITSCONDITIONS
Operating Voltage Range05.5V
VCC, V
V
(Note 1)
BATT
in NormalVCC- 0.3VCC - 0.15VVCC = 4.5V, I
OUT
Operating ModeVCC- 0.2VCC - 0.09V
to T
MIN
unless otherwise noted, typicals specified at 25oC)
MAX
VCC - 0.05 VCC - 0.015VCC = 4.5V,I
CC
=3.0V; V
OUT
OUT
BATT
= 25mA
= 250mA
= 2.8V, I
OUT
= 100mA
VCC-to-V
V
OUT
V
BATT
On ResistanceΩ
OUT
in Battery Backup ModeV
-to-V
On Resistance725ΩV
OUT
0.61.2V
0.92.0V
V
- 0.3V
BATT
- 0.25VV
BATT
V
- 0.15V
BATT
515V
1030V
CC
CC
BATT
BATT
BATT
BATT
BATT
BATT
=4.5V;
=3.0V;
=4.5V, I
=2.8V, I
=2.0V, I
=4.5V
=2.8V
=2.0V
OUT
OUT
OUT
=20mA
=10mA
=5mA
Supply Current in Normal
Operating Mode (Excludes IOUT)4075µAV
Threshold Voltage
VCC-to-RESET Delay100µsPower down
VCC-to-LOWLINE Delay80µsPower down
RESET Active Timeout Period140200280msPower up
Watchdog Timeout Period1.01.62.25secSWT connected to V
OUT
Minimum Watchdog10ms4.7nF capacitor connected from
Timeout PeriodSWT to GND
to select another watchdog-timeout period.
W atchdog-timeout period = 2.1 x (capacitor
value in nF) ms.
V
BATT
V
OUT
Vcc
GND
BATT ON
PFO
PFI
SWT
1
2
3
4
Corporation
5
6
7
8
DIP/SO
16
15
14
13
12
11
10
9
WDPO
RESET
WDO
IN
CE
CE
OUT
WDI
LOWLINE
MR
PIN ASSIGNMENTS
Pin 1 — V
— Backup-Battery Input. Connect
BATT
to external battery or capacitor and charging
circuit.
Pin 2 —V
— Output Supply Voltage. V
OUT
OUT
con-
nects to VCC when VCC is greater than V
BATT
and VCC is above the reset threshold. When
VCC falls below V
reset threshold, V
nect a 0.1µF capacitor from V
and VCC is below the
BATT
connects to V
OUT
to GND.
OUT
BATT
. Con-
Pin 3 — VCC — Input Supply Voltage —
+5V input
Pin 4 — GND — Ground reference for all signals
Pin 5 — BATT ON — Battery On Output. Goes
high when V
when V
switches to V
OUT
switches to VCC. Connect the base
OUT
. Goes low
BATT
of a PNP through a current-limiting resistor
to BATT ON for V
current requirements
OUT
greater than 250mA.
Pin 6 — PFO — Power-Fail Output. This is the
output of the power-fail comparator. PFO
goes low when PFI is less than1.25V . This is
an uncommitted comparator, and has no ef-
fect on any other internal circuitry.
Pin 7 — PFI — Power-Fail Input. This is the
noninverting input to the power-fail compara-
tor. When PFI is less than 1.25V, PFO goes
low. Connect PFI to GND or V
when not
OUT
used.
Pin 8 — SWT — Set Watchdog-Timeout Input.
Connect this input to V
to select the de-
OUT
fault 1.6 sec watchdog timeout period. Con-
nect a capacitor between this input and GND
Pin 9 — MR — Manual-Reset Input. This input
can be tied to an external momentary
pushbutton switch, or to a logic gate output.
RESET remains low as long as MR is held
low and for 200ms after MR returns high.
Pin 10 — LOWLINE — LOWLINE Output goes
low when VCC falls to 150mV above the reset threshold. The output can be used to generate an NMI (nonmaskable interrupt) if the
unregulated supply is inaccessible.
Pin 11 — WDI — W atchdog Input. WDI is a three-
level input. If WDI remains either high or
low for longer than the watchdog timeout
period, WDO goes low. WDO remains low
until the next transition at WDI. Leaving
WDI unconnected disables the watchdog
function. WDI connects to an internal voltage divider between V
and GND, which
OUT
sets it to mid-supply when left unconnected.
Pin 12 — CE OUT — Chip-Enable Output.
CE OUT goes low only when CE IN is low
and VCC is above the reset threshold. If CE
IN is low when reset is asserted, CE OUT will
stay low for 15us or until CE IN goes high,
whichever occurs first.
Pin 13 — CE IN — Chip-Enable Input. The Input
to chip-enable gating circuit. Connect to
GND or V
if not used.
OUT
Pin 14 — WDO — W atchdog Output. WDO goes
low if WDI remains either high or low longer
than the watchdog timeout period. WDO
returns high on the next transition at WDI.
WDO remains high if WDI is unconnected.
WDO is also high when RESET is asserted.
Pin 15 — RESET — RESET Output goes low
whenever VCC falls below the reset threshold. RESET will remain low for 200ms
after VCC crosses the reset threshold on
power-up.
Pin 16 — WDPO — Watchdog-Pulse Output.
Upon the absence of a transition at WDI,
WDPO will pulse low for a minimum of
1ms. WDPO precedes WDO by 70ns.
The SP791 is a microprocessor (µP) supervisory circuit that monitors the power supplied to
digital circuits such as microprocessors,
microcontrollers, or memory. The SP791 is an
ideal solution for portable, battery-powered
equipment that require power supply monitoring. The SP791 watchdog functions will continuously oversee the operational status of a system. Implementing the SP791 will reduce the
number of components and overall complexity
in a design that requires power supply monitoring circuitry. The operational features and benefits of the SP791 are described in more detail
below.
15
µs
TYP
*
DIODES NOT REQUIRED ON OPEN-DRAIN OUTPUTS
Figure 3. Diode "OR" connections allow multiple reset
sources to connect to MR.
2) Manual-Reset input ➡ Manually resets
RESET output
3) Power Fail Comparator ➡ Provides for power-
fail warning and low-battery detection, or
monitors another power supply .
4) Watchdog function ➡ Monitors µP activity
where the watchdog output goes to a logic
LOW state if the watchdog input is not toggled
for a period greater than the timeout period.
5) Internal switch ➡ Switches over from VCC to
V
if the VCC falls below the reset thresh-
BATT
old and below V
BATT
.
MANUAL RESET INPUT
THEORY OF OPERATION
The SP791 is a complete µP supervisor IC and
provides the following main functions:
1) µP reset ➡ RESET output is asserted during
power fluctuations such as power-up, powerdown, and brown out conditions, and is guaranteed to be in the correct state for VCC down
to 1V.
Many microprocessor or microcontroller products include manual-reset capability, allowing
the operator or test technician to initiate a reset.
The Manual Reset Input (MR) can be connected
directly to a switch, without an external pull-up
resistor. It connects to a 1.25V comparator, and
has an internal pull-up to VOUT as shown in Fig-ure 1. The propagation delay from asserting MR
to RESET being asserted is 7us typical. Pulsing
8
Page 9
RESET
15
TO µP RESET
WDI
1.6sec
100ns MIN
Corporation
Figure 4. Adding an external pull-down resistor ensures
RESET is valid with VCC down to GND.
+5V
Vcc
1
BATT
V
3.6V
LOWLINE
9
MR
GND
10k
4.7k
4
Ω
REACTIVATE
+5V
*
1µF
3
Corporation
RESET
WDPO
V
OUT
WDI
WDO
2
15
11
10
16
14
WDPO
WDO
70ns
Figure 5. WDI, WDO and WDPO Timing
Diagram (VCC mode).
µ
0.1µF
1/6 74HC04
14
3
Vcc
CLOCK
CD4013
D
SET
RESET Vss
654
∗
SETS Q HIGH ON POWER-UP
2
Q
1
Q
7
P POWER
µ
P
RESET
I/O
NMI
INTERRUPT
TWO
CONSECUTIVE
WATCHDOG
FAULT
INDICATIONS
Figure 6. Two consecutive watchdog faults latch the system in reset.
MR low for a minimum of 25µs resets all the
internal counters, sets the Watchdog Output
(WDO) and Watchdog-Pulse Output (WDPO)
high, and sets the Set W atchdog-Timeout (SWT)
input to VOUT if it is not already connected to
VOUT (for Internal timeouts). It also, disables
the Chip-Enable Output (CE OUT) forcing it to
a high state. The RESET output remains at a
logic low as long as MR is held low, and the
reset-timeout period begins after MR returns
high, Figure 2.
Use this input as either a digital-logic input or a
second low-line comparator. Normal TTL/
CMOS levels can be wire-OR connected via
pull-down diodes, Figur e 3, and open-drain/collector outputs can be wire-ORed directly.
1.6mA at VOUT – 0.5V. When no backup battery is used, RESET output is valid down to VCC
= 1V, and an external 10kΩ pull-down resistor
on RESET ensures that RESET will be valid
with VCC down to GND as shown on Figure 4.
As VCC goes below 1V, the gate drive to the
RESET output switch reduces accordingly,
increasing the rDS(ON) and the saturation voltage. The 10kΩ pull-down resistor ensures the
parallel combination of switch and external
resistor is 10kΩ and the output saturation voltage is below 0.4V, while sinking 40µA. When
using a 10kΩ external pull-down resistor, the
high state for the RESET output with Vcc =
4.75V is 4.5V typical. For battery voltages
greater than or equal to 2V, RESET remains
valid for VCC between 0V and 5.5V. RESET will
RESET OUTPUT
The SP791's RESET output ensures that the µP
powers up in a known state, and prevents codeexecution errors during power-down or brownout conditions.
The RESET output is active low, and typically
sinks 3.2mA at 0.1V saturation voltage in its
active state. When deasserted, RESET sources
3) RESET = logic "0" ; for 200 ms (typ) after
Vcc rises above 4.65V or after MR has exceeded
1.25V.
The SP791 battery-switchover comparator does
not affect RESET assertion.
9
Page 10
WATCHDOG FUNCTION
The watchdog monitors µP activity via the
Watchdog Input (WDI). If the µP becomes inactive over a period of time, WDO and WDPO
are asserted.
To use the watchdog functon, connect WDI to a
bus line or µP I/O line. If WDI remains high or
low for longer than the watchdog timeout
period (1.6sec nominal), WDPO and WDO are
asserted, indicating a software fault or idle
condition.
WATCHDOG INPUT
A change of logic state (minimum 100ns duration) at WDI during the watchdog period will
reset the watchdog timer. The watchdog default
timeout is 1.6sec. To select an alternative
timeout period, connect an external capacitor
from SWT to GND.
To disable the watchdog function, leave WDI
floating. An internal impedance network (100kΩ
equivalent at WDI) biases WDI to approximately
1.6V. Internal comparators detect this level and
disable the watchdog timer. When Vcc is below
the reset threshold, the watchdog function is disabled and WDI is disconnected from its internal
network, thus becoming high impedance.
WATCHDOG OUTPUT
WDO remains high if there is activity (transition or pulse) at WDI during the watchdogtimeout period. The watchdog function is disabled and WDO is a logic high when VCC is
less than the reset threshold, or when WDI is an
open circuit. In watchdog mode, if no transition occurs at WDI during the watchdog-timeout
period, WDO goes low 70ns after the falling
edge of WDPO and remains low until the next
transition at WDI as shown on Figure 5. A flip-
flop can force the system into a hardware shutdown if there are two successive watchdog
faults, shown on Figure 6. WDO has a 2 x TTL
output characteristic.
WATCHDOG-PULSE OUTPUT
As described in the preceding section, WDPO
can be used as the clock input to an external D
flip-flop. Upon the absence of a watchdog edge
or pulse at WDI at the end of a watchdog-timeout
period, WDPO will pulse low for 1ms. The fall-
ing edge of WDPO precedes WDO by 70ns.
Since WDO is high when WDPO goes low, the
Q output of the flip-flop remains high as WDO
goes low (Figure 6). If the watchdog timer is
not reset by a transition at WDI, WDO remains
low and WDPO clocks a logic low to the Q output, causing the SP791 to latch in reset. If the
watchdog timer is reset by a transition at WDI,
WDO goes high and the flip-flop's Q output remains high. Thus, a system shutdown is only
caused by two successive watchdog faults.
The internal pull-up resistors associated with
WDO and WDPO connect to VOUT. Therefore,
do not connect these outputs directly to CMOS
logic that is powered from VCC since, in the absence of VCC (i.e., battery mode), excessive
current will flow from WDO or WDPO through
the protection diode(s) of the CMOS-logic inputs to ground.
SELECTING AN ALTERNATIVE
WA TCHDOG TIMEOUT PERIOD
SWT input controls the watchdog-timeout period. Connecting SWT to VOUT selects the internal 1.6sec watchdog-timeout period. Select
an alternative timeout period by connecting a
capacitor between SWT and GND. Do not leave
SWT floating, and do not connect it to ground.
The following formula determines the watchdog-timeout period:
Watchdog Timeout Period = 2.1 x
(capacitor value in nF) ms
This formula is valid for capacitance values
between 4.7 nF and 100nF (see the Watchdog
Timeout vs. T iming Capacitor graph in the T ypi-
cal Operating Characteristics).
CHIP-ENABLE SIGNAL GATING
The SP791 provides internal gating of chip-enable (CE) signals to prevent erroneous data from
corrupting the CMOS RAM in the event of a
power failure. During normal operation, the CE
gate is enabled and passes all CE transitions.
When reset is asserted, this path becomes disabled, preventing erroneous data from corrupting the CMOS RAM. The SP791 uses a series
transmission gate from CE IN to CE OUT.
CE IN is high impedance (disabled mode) while
RESET is asserted.
During a power-down sequence where VCC falls
below 4.65V, CE IN assumes a high impedance
state when the voltage at CE IN goes high or
15µs after RESET is asserted, whichever
occurs first, (Figure 7).
During a power-up sequence, CE IN remains
high impedance until RESET is deasserted.
In the high-impedance mode, the leakage
currents into this input are less than 1µA over
temperature. In the low-impedance mode, the
impedance of CE IN appears as a 65Ω resistor
in series with the load at CE OUT.
The propagation delay through the CE
transmission gate depends on both the source
impedance of the drive to CE IN and the
capacitive loading on CE OUT (see the ChipEnable Propagation Delay vs. CE OUT Load
µ
s
100
Capacitance graph in the Typical Operating
Characteristics). The CE propagation delay is
defined from the 50% point on CE IN to the 50%
point on CE OUT using a 50Ω driver with 50pF
load capacitance as in Figure 8. For minimum
propagation delay, minimize the capacitive load
at CE OUT and use a low output-impedance
driver.
CHIP-ENABLE OUTPUT
In the enabled mode, the impedance of CE OUT
is equivalent to 65Ω in series with the source
driving CE IN. In the disabled mode, the 65Ω
transmission gate is off and CE OUT is actively
pulled to VOUT. This source turns off when the
transmission gate is enabled.
Figure 9. a) If the unregulated supply is inaccessible, LOWLINE generates the NMI for the µP.
b) Use PFO to generate the µP NMI if the unregulated supply is accessible.
LOWLINE OUTPUT
The low-line comparator monitors VCC with a
typical threshold voltage 150mV above the reset threshold and has 15mV of hysteresis.
LOWLINE typically sinks 3.2mA at 0.1V. For
normal operation (Vcc above the LOWLINE
threshold), LOWLINE is pulled to VOUT. If ac-
POWER-FAIL INPUT
The Power-Fail Input (PFI) has a guaranteed
input leakage of +/-25nA max over temperature.
The typical comparator delay is 15µs from VIL
to VOL (power failing), and 55µs from VIH to
VOH (power being restored). Connect PFI to
ground if not used.
cess to the unregulated supply is unavailable,
use LOWLINE to provide a nonmaskable interrupt (NMI) to the µP as shown in Figure 9a.
POWER-FAIL OUTPUT
The Power-Fail Output (PFO) goes low when
PFI falls below 1.25V. It sinks 3.2mA with a
POWER-FAIL COMPARATOR
The power-fail comparator is an uncommitted
comparator that has no effect on the other functions of the SP791. Common uses include monitoring supplies other than 5V (see the TypicalOperating Circuit and the Monitoring a Nega-
saturation voltage of 0.1V. With PFI above
1.25V, PFO is actively pulled to VOUT. Connecting PFI through a voltage divider to an unregulated supply allows PFO to generate an NMI
as the unregulated power begins to fall (see
Figure 9b).
tive Voltage section) and early power-fail de-
tection when the unregulated power is easily accessible as shown in Figure 9b.
4GNDGND-0V reference for all signals.
5BATT ONLogic high. The open-circuit output is
6PFOThe power-fail comparator is disabled
7PFIThe power-fail comparator is disabled
8SWTSWT is Ignored.
9MRMR is ignored.
10LOWLINE Logic low.
11WDIWDI is ignored, and goes high
12CE OUTLogic high. The open-circuit output
13CE INHigh Impedance.
14WDOLogic high. The open-circuit output
15RESET Logic low.
16WDPOLogic high. The open-circuit output
Table 1. Input/Output states in Battery-Backup mode
To enter the Battery-Backup mode, VCC must be less than
the Reset threshold and less than V
When VCC < V
through an Internal PMOS switch.
monitors VCC for active switchover.
VCC is disconnected from V
equal to VOUT.
PFO is forced low.
impedance.
voltage is equal to VOUT.
voltage is equal to VOUT.
voltage is equal to VOUT.
BATT
BATT
-1.2V
OUT
.
BATTERY-BACKUP MODE
The SP791 requires two conditions to switch to
battery-backup mode: 1) VCC must be below
the reset threshold; 2) VCC must be below
VBATT. T able 1 lists the status of the inputs and
outputs in battery-backup mode.
BATTERY ON OUTPUT
The Battery On Output (BATT ON) indicates
the status of the internal VCC/battery-switchover
comparator, which controls the internal VCC and
VBA TT switches. For VCC greater than VBATT
(ignoring the small hysteresis effect), BATT ON
is a logic low. For VCC less than VBATT, BA TT
ON is a logic high. Use BATT ON to indicate
battery-switchover status or to supply base drive
to an external pass transistor for higher-current
applications (see Typical Operating Circuit).
V
BATT
2
Vcc
Corporation
Figure 10. VCC and VBATT-to-VOUT Switch
0.1µF
V
OUT
INPUT SUPPLY VOLTAGE
The Input Supply Voltage (VCC) should be a
regulated +5V source. VCC connects to VOUT
via a parallel diode and a large PMOS switch
(Figure 10). The switch carries the entire
current load for currents less than 250mA.
The parallel diode carries any current in excess
of 250mA. The maximum continuous current
is 250mA, but power-on transients may reach a
maximum of 1A.
BACKUP-BATTERY INPUT
The Backup-Battery Input (VBATT) is similar
to VCC, except the PMOS switch and parallel
diode are much smaller. Continuous current
should be limited to 25mA and peak currents
(only during power-up) limited to 250mA. The
reverse leakage of this input is less than 1µA
over temperature and supply voltage.
OUTPUT SUPPLY VOLTAGE
The Output Supply Voltage (VOUT) supplies all
the current to the external system and internal
circuitry. All open-circuit outputs will, for example, assume the VOUT voltage in their high
states rather than the VCC voltage. At the maximum source current of 250mA, VOUT will typically be 200mV below VCC. VOUT should be
decoupled with 0.1µF capacitor.
The SP791 low-battery voltage function moni-
tors VBATT. Low-battery detection of 2.0V±0.15V is monitored only during the resettimeout period (200ms) that occurs either after
a normal power-up sequence or after the MR
reset input has been returned to its high state. If
the battery voltage is below 2.0V, the second
CE pulse is inhibited after reset timeout. If the
battery voltage is above 2.0V, all CE pulses are
allowed through the CE gate after the reset
timeout period. To use this function, after the
200ms reset delay, write 00 (HEX) to a location using the first CE pulse, and write FF (HEX)
to the same location using the second CE pulse
following RESET going inactive on power-up.
The contents of the memory then indicates a
good battery (FF) or a low battery (00),
Figure 11.
TYPICAL APPLICA TIONS
The SP791 is not short-circuit protected. Shorting VOUT to ground, other than power-up transients such as charging a decoupling capacitor,
may destroy the device. All open-circuit outputs swing between VOUT and GND rather than
VCC and GND. If long leads connect to the chip
inputs, ensure that these lines are free from ringing and other conditions that would forward bias
the chip's protection diodes.
Figure 12. High Capacity Capacitor on VBATT
There are three distinct modes of operation:
1) Normal operating mode with all circuitry
powered up from VCC. Typical supply
current from VCC is 40µA, while only
leakage currents flow from the battery.
2) Battery-backup mode where VCC is typically
within 0.7V below VBATT. All circuitry is
powered up from VBATT, and the supply
current is typically less than 40µA.
3) Battery-backup mode where VCC is less than
VBATT by at least 0.7V. VBATT supply
current is less than 1µA.
USING HIGH CAPACITY CAPACITOR
WITH THE SP791
VBATT has the same operating voltage range as
VCC, and the battery-switchover threshold voltages are typically +30mV centered at VBATT,
allowing use of a capacitor and a simple charging circuit as a backup source (see Figure 12) .
If VCC is above the reset threshold and VBATT
is 0.5V above VCC, current flows to VOUT and
VCC from VBATT until the voltage at VBATT is
less than 0.5V above VCC.
MAXIMUM Rp VALUE DEPENDS ON
THE NUMBER OF RAM DEVICES.
MINIMUM Rp VALUE IS 1KΩ
OUT
IN
Corporation
GND
Figure 13. Alternate CE Gating
*
ACTIVE-HIGH CE
LINES FROM LOGIC
VIN
CE
RAM 1
CE
CE
RAM 2
CE
CE
RAM 3
CE
CE
RAM 4
CE
PFO
R1
R2
+5V
OV
R3
TO
OV
V
TRIP
= 1.25
VH = 1.25
C1*
µ
P
R2 II R3
(
R1 + R2 II R3
R1 + R2
(
*
R2
+5V
Vcc
PFI
Corporation
PFO
GND
* OPTIONAL FOR ADDITIONAL
NOISE REJECTION
V
L
V
H
V
TRIP
)
VL - 1.25 5 - 1.25 1.25
)
+
R1 R3 R2
V
IN
=
Figure 14. Adding Hysteresis to the Power-Fail Comparator
Leakage current through the capacitor charging
diode and the SP791 internal power diode eventually discharges the capacitor to VCC. Also, if
VCC and VBATT start from 0.5V above the reset
threshold and power is lost at VCC, the capacitor
on VBATT discharges through VCC until VBATT
reaches the reset threshold; the SP791 then
switches to battery-backup mode.
USING SEPARATE POWER SUPPLIES
FOR VBATT AND VCC
If using separate power supplies for VCC and
VBATT, VBATT must be less than 0.3V above VCC
when VCC is above the reset threshold. As
described in the previous section, if VBATT ex-
ceeds this limit and power is lost at VCC, current
flows continuously from VBATT to VCC via the
VBATT-to-VOUT diode and the VOUT-to-VCC
switch until the circuit is broken.
ALTERNATIVE CHIP-ENABLE GATING
Using memory devices with CE and CE inputs
allows the SP791 CE loop to be bypassed. T o do
this, connect CE IN to ground, pull up CE OUT
to VOUT, and connect CE OUT to the CE input
of each memory device as shown in Figure 13.
The CE input of each part then connects directly
to the chip-select logic, which does not have to
be gated by the SP791.
ADDING HYSTERESIS TO THE
POWER-FAIL COMPARATOR
Hysteresis adds a noise margin to the power-fail
comparator and prevents repeated triggering of
PFO when VIN is near the trip point. Figure 14
shows how to add hysteresis to the power-fail
comparator. Select the ratio of R1 to R2 such
that PFI sees 1.25V when VIN falls to the desired trip point (VTRIP). Resistor R3 adds hysteresis. It will typically be an order of magnitude greater than R1 or R2. The current through
R1 and R2 should be at least 1µA to ensure that
the 25nA (max) PFI input current does not shift
the trip point. R3 should be larger than 10kΩ to
prevent it from loading down the PFO pin. Capacitor C1 adds additional noise rejection.
MONITORING A NEGATIVE VOLTAGE
The power-fail comparator can be used to monitor a negative supply voltage using the circuit
shown in Figure 15. When the negative supply
is valid, PFO is low. When the negative supply
voltage drops, PFO goes high. This circuit's accuracy is affected by the PFI threshold tolerance,
the VCC voltage, and resistors R1 and R2.
BACKUP-BATTERY REPLACEMENT
The backup battery may be disconnected while
VCC is above the reset threshold. No precautions
are necessary to avoid spurious reset pulses.
Figure 16. Watchdog Flow DiagramFigure 15. Monitoring a Negative Voltage
NEGATIVE-GOING VCC TRANSIENTS
The SP791 is relatively immune to short-duration negative-going VCC transients resulting
from power up, power down, and brownout conditions. It is usually undesirable to reset the µP
when VCC experiences only small glitches.
Typically, a VCC transient that goes 100mV below the reset threshold and lasts for 40µs or less
will not cause a reset pulse to be issued.
A 100nF bypass capacitor mounted close to the
VCC pin provides additional transient immunity .
CONNECTING A TIMING CAPACITOR
TO THE SWT PIN
To prevent timing errors minimize external cur rent leakage sources at this pin, and locate the
capacitor as close to SWT as possible. The sum
of PC board leakage + SWT capacitor leakage
must be small compared to ±100 nA.
WATCHDOG SOFTWARE
CONSIDERATIONS
A way to help the watchdog timer keep a closer
watch on software execution involves setting
and resetting the watchdog input at different
points in the program, rather than "pulsing" the
watchdog input high-low-high or low-high-low.
This technique avoids a "stuck" loop where the
watchdog timer continues to be reset within the
loop, keeping the watchdog from timing out.
Figure 16 shows an example flow diagram
where the I/O driving the watchdog input is set
low at the beginning of the program, set high at
the beginning of every subroutine or loop, then
set low again when the program returns to the
beginning. If the program should "hang" in any
subroutine, the I/O is continually set high and
the watchdog timer is allowed to time out, causing a reset or interrupt to be issued.
MAXIMUM VCC FALL TIME
The VCC fall time is limited by the propagation
delay of the battery switchover comparator and
should not exceed 0.03V/µs. A standard rule of
thumb for filter capacitance on most regulators
is on the order of 100µF per amp of current.
When the power supply is shut off or the main
battery is disconnected, the associated initial
VCC fall rate is just the inverse of 1A/100µF =
0.01V/µs. The VCC fall rate decreases with time
as VCC falls exponentially , which more than satisfies the maximum fall-time requirement.
SP791CP ...................................................................................0˚C to +70˚C .............................................................................. 16-pin, Plastic DIP
SP791CN ................................................................................... 0˚C to +70˚C .......................................................................... 16-pin, Narrow SOIC
SP791EP .................................................................................... -40˚C to +85˚C .......................................................................... 16–pin, Plastic Dip
SP791EN ...................................................................................-40˚C to +85˚C ..................................................................... 16–pin, Narrow SOIC
Please consult the factory for pricing and availability on a Tape-On-Reel option.
Corporation
SIGNAL PROCESSING EXCELLENCE
Sipex Corporation
Headquarters and
Sales Office
22 Linnell Circle
Billerica, MA 01821
TEL: (978) 667-8700
FAX: (978) 670-9001
e-mail: sales@sipex.com
Sales Office
233 South Hillview Drive
Milpitas, CA 95035
TEL: (408) 934-7500
FAX: (408) 935-7600
Sipex Corporation reserves the right to make changes to any products described herein. Sipex does not assume any liability arising out of the
application or use of any product or circuit described hereing; neither does it convey any license under its patent rights nor the rights of others.