DS1238A
4 of 13
full period as outlined in NO TAG. The WDS pin will remain low until one of three operations occurs.
The first is to strobe the ST pin with a falling edge, which will both set the WDS as well as the watchdog
timer count. The second is to leave the ST pin open, which disables the watchdog. Lastly, the WDS pin is
active low whenever V
CC
falls below V
CCTP
and activates the RVT signal. The ST input can be derived
from microprocessor address, data, or control signals, as well as microcontroller port pins. Under normal
operating conditions, these signals would routinely reset the watchdog timer prior to timeout. The
watchdog is disabled by leaving the
ST input open, or as soon as V
CC
falls to V
CCTP
.
NON-MASKABLE INTERRUPT
The DS1238A generates a non-maskable interrupt ( NMI ) for early warning of a power failure to the
microprocessor. A precision comparator monitors the voltage level at the IN pin relative to an on-chip
reference generated by an internal band gap. The IN pin is a high-impedance input allowing for a user-
defined sense point. An external resistor voltage divider network (NO TAG) is used to interface with high
voltage signals. This sense point may be derived from the regulated 5-volt supply, or from a higher DC
voltage level closer to the main system power input. Since the IN trip point V
TP
is 1.27 volts, the proper
values for R1 and R2 can be determined by the equation as shown in NO TAG. Proper operation of the
DS1238A requires that the voltage at the IN pin be limited to V
IH
. Therefore, the maximum allowable
voltage at the supply being monitored (V
MAX
) can also be derived as shown in NO TAG. A simple
approach to solving this equation is to select a value for R2 of high enough value to keep power
consumption low, and solve for R1. The flexibility of the IN input pin allows for detection of power loss
at the earliest point in a power supply system, maximizing the amount of time for microprocessor
shutdown between NMI and RST or RST .
When the supply being monitored decays to the voltage sense point, the DS1238A will force the NMI
output to an active state. Noise is removed from the NMI power-fail detection circuitry using built-in
time domain hysteresis. That is, the monitored supply is sampled periodically at a rate determined by an
internal ring oscillator running at approximately 30 kHz (33 µs/cycle). Three consecutive samplings of
out-of-tolerance supply (below V
SENSE
) must occur at the IN pin to active NMI . Therefore, the supply
must be below the voltage sense point for approximately 100 µs or the comparator will reset. In this way,
power supply noise is removed from the monitoring function preventing false trips. During a power-up,
any IN pin levels below V
TP
detected by the comparator are disabled from reaching the NMI pin until
V
CC
rises to V
CCTP
. As a result, any potential active NMI will not be initiated until V
CC
reaches V
CCTP
.
Removal of an active low level on the NMI pin is controlled by the subsequent rise of the IN pin above
V
TP
. The initiation and removal of the NMI signal during power up depends on the relative voltage
relationship between V
CC
and the IN pin voltage. Note that a fast-slewing power supply may cause the
NMI to be virtually nonexistent on power-up. This is of no consequence, however, since an RST will be
active. The NMI voltage will follow V
CC
down until V
CC
decays to V
BAT
. Once V
CC
decays to V BAT , the
NMI pin will enter a tri-state mode.
ST INPUT TIMING Figure 2
DS1238A
5 of 13
OSCILLATOR CONTROLS Table 1
Watchdog Timeout Period (typ)
OSCIN OSCSEL
First Period
Following a Reset
Other Timeout
Reset Active
Duration
Ext Clk Low 20480 Clks 5120 Clocks 641 Clks
Ext Cap Low
pf 47
sec2.2
X Cpf
pf 47
ms550
X Cpf
pf 47
ms 69
X Cpf
Low Hi/Open 2.7 sec 170 ms 85 ms
External
Internal
Hi/Open Hi/Open 2.7 sec 2.7 sec 85 ms
Note that the OSCIN and OSCSEL pins are tri-stated when V
CC
is below V
BAT
.
POWER MONITOR, WATCHDOG TIMER, AND PUSHBUTTON RESET Figure 3
PUSHBUTTON RESET TIMING Figure 4
DS1238A
6 of 13
NON-MASKABLE INTERRUPT Figure 5
V
SENSE
=
R2
R2 R1+
x 1.27
MAXVOLTAGE =
1.27
V
SENSE
x 5.0 = VMAX
Example 1: 5-Volt Supply, R2 = 10k Ohms,
V
SENSE
= 4.8 Volts
4.8 =
10k
10k R1+
x 1.27 R1 = 27.8k Ohm
Example 2: 12-Volt Supply, R2 = 10k Ohms,
V
SENSE
= 9.0 Volts
9.0 =
10k
10k R1+
x 1.27 R1 = 60.9k Ohm
V
MAX
=
1.27
9.00
x 5.0 = 35.4 Volts
NMI FROM IN INPUT Figure 6

DS1238A-5+

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