New Features
•
•
•
•
Monitor Voltages: 5V to 1.6V
Memory Security
Battery Switch Backup
V
OUT
5mA to 50mA
Preliminary Datasheet
4kbit EEPROM
X40420/X40421
APPLICATIONS
• Communications Equipment
—Routers, Hubs, Switches
—Disk arrays
• Industrial Systems
—Process Control
—Intelligent Instrumentation
• Computer Systems
—Desktop Computers
—Network Servers
X40420/21
Dual Voltage Monitor with Integrated CPU Supervisor and System Battery Switch
FEATURES
• Dual voltage detection and reset assertion
—Three standard reset threshold settings
(4.6V/2.9V, 4.6V/2.6V, 2.9V/1.6V)
—V
TRIP2
Programmable down to 0.9V
—Adjust low voltage reset threshold voltages
using special programming sequence
—Reset signal valid to V
CC
= 1V
—Monitor two voltages or detect power fail
• Battery Switch Backup
• V
OUT
: 5mA to 50mA from V
CC
; or 250µA from
V
BATT
• Fault detection register
• Selectable power on reset timeout
(0.05s, 0.2s, 0.4s, 0.8s)
• Selectable watchdog timer interval
(25ms, 200ms, 1.4s, off)
• Debounced manual reset input
• Low power CMOS
—25µA typical standby current, watchdog on
—6µA typical standby current, watchdog off
—1µA typical battery current in backup mode
• 4Kbits of EEPROM
—16 byte page write mode
—Self-timed write cycle
—5ms write cycle time (typical)
• Built-in inadvertent write protection
—Power-up/power-down protection circuitry
—Block lock protect 0 or 1/2, of EEPROM
• 400kHz 2-wire interface
• 2.7V to 5.5V power supply operation
• Available packages
—14-lead SOIC, TSSOP
EL
IM
BLOCK DIAGRAM
V2MON
PR
IN
A
DESCRIPTION
V
OUT
+
V2 Monitor
Logic
V
TRIP2
Standard V
TRIP1
Level Standard V
TRIP2
Level Suffix
4.6V (+/-1%)
2.9V(+/-1.7%)
-A
4.6V (+/-1%)
2.6V (+/-2%)
-B
2.9V(+/-1.7%)
1.6V (+/-3%)
-C
See “Ordering Information” for more details
For Custom Settings, call Xicor.
The X40420/21 combines power-on reset control,
watchdog timer, supply voltage supervision, and sec-
ondary supervision, manual reset, and Block Lock
™
protect serial EEPROM in one package. This combina-
tion lowers system cost, reduces board space require-
ments, and increases reliability.
Applying voltage to V
CC
activates the power on reset
circuit which holds RESET/RESET active for a period of
time. This allows the power supply and system oscillator
to stabilize before the processor can execute code.
R
Y
V
OUT
V2FAIL
-
SDA
WP
Data
Register
Command
Decode Test
& Control
Logic
Fault Detection
Register
Status
Register
EEPROM
Array
Watchdog
and
Reset Logic
WDO
MR
RESET
X40420
SCL
V
OUT
V
CC
(V1MON)
+
V
CC
Monitor
Logic
System
Battery
Switch
V
TRIP1
-
Power on,
Manual Reset
Low Voltage
Reset
Generation
RESET
X40421
BATT-ON
V
OUT
V
BATT
LOWLINE
REV 1.2.14 7/12/02
www.xicor.com
Characteristics subject to change without notice.
1 of 25
X40420/X40421 – Preliminary
Low V
CC
detection circuitry protects the user’s system
from low voltage conditions, resetting the system when
V
CC
falls below the minimum V
TRIP1
point. RESET/
RESET is active until V
CC
returns to proper operating
level and stabilizes. A second voltage monitor circuit
tracks the unregulated supply to provide a power fail
warning or monitors different power supply voltage.
Three common low voltage combinations are available,
however, Xicor’s unique circuits allows the threshold for
either voltage monitor to be reprogrammed to meet
special needs or to fine-tune the threshold for applica-
tions requiring higher precision.
A manual reset input provides debounce circuitry for
minimum reset component count.
A battery switch circuit compares V
CC
with V
BATT
input
and connects V
OUT
to whichever is higher. This pro-
vides voltage to external SRAM or other circuits in the
event of main power failure. The X40420/21 can drive
50mA from V
CC
to 250µA from V
BATT
. The device only
switches to V
BATT
when V
CC
drops below the low V
CC
voltage threshold and V
BATT
.
selected, the interval does not change, even after
cycling the power.
The memory portion of the device is a CMOS Serial
EEPROM array with Xicor’s Block Lock protection. The
array is internally organized as x 8. The device features
an 2-wire interface and software protocol allowing
operation on a two-wire bus.
The device utilizes Xicor’s proprietary Direct Write
™
cell, providing a minimum endurance of 100,000 cycles
and a minimum data retention of 100 years.
Unreg.
Supply
IN
A
V2FAIL
V2MON
LOWLINE
WDO
MR
RESET
V
SS
1
2
3
4
5
6
7
R
5V
REG
BATT-ON
V
CC
V
BATT
+
X40420/21
V2MON
V2FAIL
VDO
RESET
MR
SCL SDA
Addr
uC
NMI
V
CC
IRQ
RESET
Manual
Reset
I
2
C
V
OUT
Enable
SRAM
Addr
Example Application
PIN CONFIGURATION
EL
IM
The Watchdog Timer provides an independent protec-
tion mechanism for microcontrollers. When the micro-
controller fails to restart a timer within a selectable time
out interval, the device activates the WDO signal. The
user selects the interval from three preset values. Once
X40420
14-Pin SOIC, TSSOP
X40421
14-Pin SOIC, TSSOP
14
13
12
11
10
9
8
V
CC
BATT-ON
V
OUT
V
BATT
WP
SCL
SDA
PIN DESCRIPTION
Pin
1
2
Name
V2FAIL
V2MON
PR
V2FAIL
V2MON
LOWLINE
WDO
MR
RESET
V
SS
1
2
3
4
5
6
7
14
13
12
11
10
9
8
V
CC
BATT-ON
V
OUT
V
BATT
WP
SCL
SDA
Function
V2 Voltage Fail Output.
This open drain output goes LOW when V2MON is less than V
TRIP2
and
goes HIGH when V2MON exceeds V
TRIP2
. There is no power up reset delay circuitry on this pin.
V2 Voltage Monitor Input.
When the V2MON input is less than the V
TRIP2
voltage, V2FAIL goes
LOW. This input can monitor an unregulated power supply with an external resistor divider or can
monitor a second power supply with no external components. Connect V2MON to V
SS
or
V
CC
when not used.
Early Low V
CC
Detect.
This open drain output signal goes LOW when
V
CC
< V
TRIP1
.
When
V
CC
> V
TRIP1
, this pin is pulled high with the use of an external pull up resistor.
3
LOWLINE
Y
REV 1.2.14 7/12/02
www.xicor.com
Characteristics subject to change without notice.
2 of 25
X40420/X40421 – Preliminary
PIN DESCRIPTION
(Continued)
Pin
4
5
6
Name
WDO
MR
RESET/
RESET
Function
WDO Output.
WDO is an active LOW, open drain output which goes active whenever the watch-
dog timer goes active.
Manual Reset Input.
Pulling the MR pin LOW initiates a system reset. The RESET/RESET pin will re-
main HIGH/LOW until the pin is released and for the t
PURST
thereafter. It has an internal pull up resistor.
RESET Output.
(X40421) This open drain pin is an active LOW output which goes LOW whenever
V
CC
falls below V
TRIP1
voltage or if manual reset is asserted. This output stays active for the pro-
grammed time period (t
PURST
) on power up. It will also stay active until manual reset is released
and for t
PURST
thereafter.
RESET Output.
(X40420) This pin is an active HIGH open drain output which goes HIGH when-
ever V
CC
falls below V
TRIP1
voltage or if manual reset is asserted. This output stays active for the
programmed time period (t
PURST
) on power up. It will also stay active until manual reset is released
and for t
PURST
thereafter.
Ground
Serial Data.
SDA is a bidirectional pin used to transfer data into and out of the device. It has an
open drain output and may be wire ORed with other open drain or open collector outputs. This pin
requires a pull up resistor and the input buffer is always active (not gated).
Watchdog Input.
A HIGH to LOW transition on the SDA (while SCL is toggled from HIGH to LOW
and followed by a stop condition) restarts the Watchdog timer. The absence of this transition within
the watchdog time out period results in WDO going active.
Serial Clock.
The Serial Clock controls the serial bus timing for data input and output.
Write Protect.
WP HIGH prevents writes to any location in the device (including all the registers).
It has an internal pull down resistor. (>10M
Ω
typical)
Battery Supply Voltage.
This input provides a backup supply in the event of a failure of the
primary V
CC
voltage. The V
BATT
voltage typically provides the supply voltage necessary to
maintain the contents of SRAM and also powers the internal logic to “stay awake.” If the battery is
not used, connect V
BATT
to ground.
Output Voltage. (V)
V
OUT
= V
CC
if V
CC
> V
TRIP1
.
IF V
CC
< V
TRIP1
then V
OUT
= V
CC
if V
CC
> V
BATT
+ 0.03V
else V
OUT
= V
BATT
(ie if V
CC
< V
BATT
– 0.03V)
Note:
There is hysteresis around V
BATT
± 0.03V point to avoid oscillation at or near the
switchover voltage. A capacitance of 0.1µF must be connected to V
OUT
to ensure stability.
Battery On.
This CMOS output goes HIGH when the V
OUT
switches to V
BATT
and goes LOW
when V
OUT
switches to V
CC
. It is used to drive an external PNP pass transistor when V
CC
= V
OUT
and current requirements are greater than 50mA.
7
8
V
SS
SDA
9
10
11
SCL
WP
V
BATT
12
V
OUT
13
BATT-ON
14
V
CC
PR
The purpose of this output is to drive an external transistor to get higher operating currents when
the V
CC
supply is fully functional. In the event of a V
CC
failure, the battery voltage is applied to the
V
OUT
pin and the external transistor is turned off. In this “backup condition,” the battery only needs
to supply enough voltage and current to keep SRAM devices from losing their data–there is no
communication at this time.
Supply Voltage
EL
IM
IN
A
R
Y
REV 1.2.14 7/12/02
www.xicor.com
Characteristics subject to change without notice.
3 of 25
X40420/X40421 – Preliminary
PRINCIPLES OF OPERATION
Power On Reset
Applying power to the X40420/21 activates a Power On
Reset Circuit that pulls the RESET/RESET pins active.
This signal provides several benefits.
– It prevents the system microprocessor from starting
to operate with insufficient voltage.
– It prevents the processor from operating prior to sta-
bilization of the oscillator.
– It allows time for an FPGA to download its configura-
tion prior to initialization of the circuit.
– It prevents communication to the EEPROM, greatly
reducing the likelihood of data corruption on power up.
When V
CC
exceeds the device V
TRIP1
threshold value
for t
PURST
(selectable) the circuit releases the RESET
(X40421) and RESET (X40420) pin allowing the system
to begin operation.
Figure 1. Connecting a Manual Reset Push-Button
X40420/21
System
Reset
RESET
MR
Figure 2. Two Uses of Multiple Voltage Monitoring
V
OUT
X40420
5V
Reg
V
CC
RESET
V2MON
V2FAIL
IN
A
Unreg.
Supply
R
R
Unreg.
Supply
5V
Reg
3V
Reg
R
V2MON voltage monitor is powered by V
OUT.
If V
CC
and V
BATT
go away, V2MON cannot be monitored.
Y
V
CC
V2MON
Low Voltage V2 Monitoring
The X40420/21 also monitors a second voltage level
and asserts V2FAIL if the voltage falls below a preset
minimum V
TRIP2
. The V2FAIL signal is either ORed
with RESET to prevent the microprocessor from oper-
ating in a power fail or brownout condition or used to
interrupt the microprocessor with notification of an
impending power failure. The V2FAIL signal remains
active until the V
CC
drops below 1V (V
CC
falling). It
also remains active until V2MON returns and exceeds
V
TRIP2
.
System
Reset
IM
Resistors selected so 3V appears on V2MON when unregulated
supply reaches 6V.
V
OUT
X40421
EL
Manual
Reset
Manual Reset
By connecting a push-button directly from MR to
ground, the designer adds manual system reset capa-
bility. The MR pin is LOW while the push-button is
closed and RESET/RESET pin remains LOW for
t
PURST
or till the push-button is released and for t
PURST
thereafter. A weak pull up resistor is connected to the
MR pin.
RESET
System
Reset
PR
V2FAIL
Notice:
No external components required to monitor two voltages.
WATCHDOG TIMER
The Watchdog Timer circuit monitors the microproces-
sor activity by monitoring the SDA and SCL pins. A
standard read or write sequence to any slave address
byte restarts the watchdog timer and prevents the
WDO signal to go active. A minimum sequence to
reset the watchdog timer requires four microprocessor
instructions namely, a Start, Clock Low, Clock High and
Stop. The state of two nonvolatile control bits in the
Status Register determine the watchdog timer period.
The microprocessor can change these watchdog bits
by writing to the X40420/21 control register.
Characteristics subject to change without notice.
Low Voltage V1 Monitoring
During operation, the X40420/21 monitors the V
CC
level and asserts RESET if supply voltage falls below a
preset minimum V
TRIP1
. The RESET signal prevents
the microprocessor from operating in a power fail or
brownout condition. The V1FAIL signal remains active
until the voltage drops below 1V. It also remains active
until V
CC
returns and exceeds V
TRIP1
for
t
PURST
.
REV 1.2.14 7/12/02
www.xicor.com
4 of 25
X40420/X40421 – Preliminary
Figure 3. V
TRIPX
Set/Reset Conditions
V
TRIPX
(X = 1, 2)
V
CC
/V2MON
V
P
WDO
SCL
0
7
0
7
0
7
SDA
A0h
00h
Figure 4. Watchdog Restart
.6µs
SCL
SDA
Start
WDT Reset
Stop
1.3µs
IM
V1 AND V2 THRESHOLD PROGRAM PROCEDURE
(OPTIONAL)
EL
The X40420/21 is shipped with standard V1 and V2
threshold (V
TRIP1,
V
TRIP2
) voltages. These values will not
change over normal operating and storage conditions.
However, in applications where the standard thresholds
are not exactly right, or if higher precision is needed in the
threshold value, the X40420 trip points may be adjusted.
The procedure is described below, and uses the applica-
tion of a high voltage control signal.
There are two procedures used to set the threshold volt-
ages (V
TRIPx
), depending if the threshold voltage to be
stored is higher or lower than the present value. For
example, if the present V
TRIPx
is 2.9 V and the new
V
TRIPx
is 3.2 V, the new voltage can be stored directly
into the V
TRIPx
cell. If however, the new setting is to be
lower than the present setting, then it is necessary to
“reset” the V
TRIPx
voltage before setting the new value.
Setting a Higher V
TRIPx
Voltage (x=1, 2)
To set a V
TRIPx
threshold to a new voltage which is higher
than the present threshold, the user must apply the
desired V
TRIPx
threshold voltage to the corresponding
input pin (Vcc(V1MON) or V2MON). Then, a program-
ming voltage (Vp) must be applied to the WDO pin before
a START condition is set up on SDA. Next, issue on the
SDA pin the Slave Address A0h, followed by the Byte
Address 01h for V
TRIP1
, and 09h for V
TRIP2
, and a 00h
REV 1.2.14 7/12/02
PR
Setting a V
TRIPx
Voltage (x=1, 2)
IN
A
C
ASE
A
C
ASE
B
Data Byte in order to program V
TRIPx
. The STOP bit
following a valid write operation initiates the programming
sequence. Pin WDO must then be brought LOW to
complete the operation.
To check if the V
TRIPX
has been set, set VXMON to a
value slightly greater than V
TRIPX
(that was previously
set). Slowly ramp down VXMON and observe when the
corresponding outputs (LOWLINE and V2FAIL) switch.
The voltage at which this occurs is the V
TRIPX
(actual).
Now if the desired V
TRIPX
is greater than the V
TRIPX
(actual), then add the difference between V
TRIPX
(desired) – V
TRIPX
(actual) to the original V
TRIPX
desired.
This is your new V
TRIPX
that should be applied to
VXMON and the whole sequence should be repeated
again (see Figure 5).
Now if the V
TRIPX
(actual), is higher than the V
TRIPX
(desired), perform the reset sequence as described in the
next section. The new V
TRIPX
voltage to be applied to
VXMON will now be: V
TRIPX
(desired) – (V
TRIPX
(actual)
– V
TRIPX
(desired)).
Note:
1. This operation does not corrupt the memory
array.
2. Set V
CC
= 5V, when V
TRIP2
is being pro-
grammed
Setting a Lower V
TRIPx
Voltage (x=1, 2)
In order to set V
TRIPx
to a lower voltage than the
present value, then V
TRIPx
must first be “reset” accord-
ing to the procedure described below. Once V
TRIPx
has been “reset”, then V
TRIPx
can be set to the desired
voltage using the procedure described in “Setting a
Higher V
TRIPx
Voltage”.
Characteristics subject to change without notice.
R
Y
t
WC
www.xicor.com
5 of 25