Using Separate Power Supplies
for VBATT and V
CC
If using separate power supplies for V
CC
and VBATT,
VBATT must be less than 0.3V above V
CC
when V
CC
is
above the reset threshold. As described in the previ-
ous section, if VBATT exceeds this limit and power is
lost at V
CC
, current flows continuously from VBATT to
V
CC
via the VBATT-to-V
OUT
diode and the V
OUT
-to-V
CC
switch until the circuit is broken (Figure 8).
Alternate Chip-Enable Gating
Using memory devices with both CE and CE inputs
allows the CE loop to be bypassed. To do this, con-
nect CE IN to ground, pull up CE OUT to V
OUT
, and
connect
CE OUT to the CE input of each memory
device (Figure 10). The CE input of each part then
connects directly to the chip-select logic, which does
not have to be gated.
Adding Hysteresis to the
Power-Fail Comparator
Hysteresis adds a noise margin to the power-fail com-
parator and prevents repeated triggering of PFO when
V
IN
is near the power-fail comparator trip point. Figure
11 shows how to add hysteresis to the power-fail com-
MAX691A/MAX693A/MAX800L/MAX800M
Microprocessor Supervisory Circuits
______________________________________________________________________________________ 13
MAX691A
MAX693A
MAX800L
MAX800M
V
OUT
GND
CE IN
CE
CE
CE OUT
CE
CE
CE
CE
CE
CE
*MAXIMUM Rp VALUE DEPENDS ON
THE NUMBER OF RAMS.
MINIMUM Rp VALUE IS 1kΩ.
ACTIVE-HIGH
CE LINES
FROM LOGIC
RAM 1
RAM 2
RAM 3
RAM 4
Rp*
MAX691A
MAX693A
MAX800L
MAX800M
V
CC
GND
PFI
*OPTIONAL
R2
R3
R1
V
IN
+5V
C1*
TO μP
PFO
V
TRIP
= 1.25
R1 + R2
R2
V
H
= 1.25/
R2 I I R3 V
L
- 1.25
+
5 - 1.25
=
1.25
R1 + R2 I I R3 R1 R3 R2
PFO
5V
0V
0V V
H
V
TRIP
V
IN
V
L
MAX691A
MAX693A
MAX800L
MAX800M
V
CC
GND
PFI
R2
R1
+5V
PFO
PFO
5V
0V
NOTE: V
TRIP
IS NEGATIVE.
0V
V
TRIP
V-
5 - 1.25
=
1.25 - V
TRIP
R1 R2
V-
Figure 10. Alternate CE Gating
Figure 12. Monitoring a Negative Voltage
Figure 11. Adding Hysteresis to the Power-Fail Comparator
MAX691A/MAX693A/MAX800L/MAX800M
Microprocessor Supervisory Circuits
14 ______________________________________________________________________________________
parator. Select the ratio of R1 and R2 such that PFI sees
1.25V when V
IN
falls to the desired trip point (V
TRIP
).
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 noise
rejection.
Monitoring a Negative Voltage
The power-fail comparator can be used to monitor a
negative supply voltage using Figure 12’s circuit. When
the negative supply is valid, PFO is low. When the neg-
ative supply voltage drops, PFO goes high. This cir-
cuit’s accuracy is affected by the PFI threshold
tolerance, the V
CC
voltage, and resistors R1 and R2.
Backup-Battery Replacement
The backup battery may be disconnected while V
CC
is
above the reset threshold. No precautions are neces-
sary to avoid spurious reset pulses.
Negative-Going V
CC
Transients
While issuing resets to the µP during power-up, power-
down, and brownout conditions, these supervisors are
relatively immune to short-duration, negative-going V
CC
transients (glitches). It is usually undesirable to reset
the µP when V
CC
experiences only small glitches.
Figure 13 shows maximum transient duration vs. reset-
comparator overdrive, for which reset pulses are not
generated. The graph was produced using negative-
going V
CC
pulses, starting at 5V and ending below the
reset threshold by the magnitude indicated (reset com-
parator overdrive). The graph shows the maximum
pulse width a negative-going V
CC
transient may typical-
ly have without causing a reset pulse to be issued. As
the amplitude of the transient increases (i.e., goes far-
ther below the reset threshold), the maximum allowable
pulse width decreases. Typically, a V
CC
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 V
CC
pin provides additional transient immunity.
Connecting a Timing Capacitor at OSC IN
When OSC SEL is connected to ground, OSC IN dis-
connects from its internal 10µA (typ) pullup and is inter-
nally connected to a ±100nA current source. When a
capacitor is connected from OSC IN to ground (to
select alternative reset and watchdog timeout periods),
the current source charges and discharges the timing
capacitor to create the oscillator that controls the reset
and watchdog timeout period. To prevent timing errors
or oscillator startup problems, minimize external current
leakage sources at this pin, and locate the capacitor as
close to OSC IN as possible. The sum of PC-board
leakage plus OSC capacitor leakage must be small
compared to ±100nA.
100
0
10 1000 10000
40
20
80
60
MAX791-16
RESET COMPARATOR OVERDRIVE,
(Reset Threshold Voltage - V
CC
) (mV)
MAXIMUM TRANSIENT DURATION (μs)
100
V
CC
= 5V
T
A
= +25°C
0.1μF CAPACITOR
FROM V
OUT
TO GND
Figure 13. Maximum Transient Duration without Causing a
Reset Pulse vs. Reset Comparator Overdrive
MAX691A/MAX693A/MAX800L/MAX800M
Microprocessor Supervisory Circuits
______________________________________________________________________________________ 15
Maximum V
CC
Fall Time
The V
CC
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
V
CC
fall rate is just the inverse or 1A/100µF = 0.01V/µs.
The V
CC
fall rate decreases with time as V
CC
falls expo-
nentially, which more than satisfies the maximum fall-time
requirement.
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
14 shows an example flow diagram where the I/O dri-
ving the watchdog input is set high at the beginning of
the program, set low at the beginning of every subrou-
tine or loop, then set high again when the program
returns to the beginning. If the program should “hang”
in any subroutine, the I/O is continually set low and the
watchdog timer is allowed to time out, causing a reset
or interrupt to be issued.
START
SET
WDI
LOW
RETURN
END
SUBROUTINE
OR PROGRAM LOOP
SET WDI
HIGH
Figure 14. Watchdog Flow Diagram

MAX691CWE+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Supervisory Circuits MPU Supervisor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union