A
PPLICATION
N
OTES
A V A I L A B L E
AN11
X25043/45
• AN21
4K
X25043/45
Programmable Watchdog Supervisory E
2
PROM
DESCRIPTION
512 x 8 Bit
FEATURES
•
•
•
•
The system is protected from low voltage conditions by
the X25043/45 low V
CC
detection circuits. When V
CC
drops below the minimum V
CC
trip point, the system is
reset. Reset is asserted until V
CC
returns and stabilizes.
The memory portion of the X25043/45 is a CMOS 4096-
bit serial E
2
PROM, internally organized as 512 X 8. The
X25043/45 features a Serial Peripheral Interface (SPI)
and software protocol allowing operation on a simple
three-wire bus.
The X25043/45 utilizes Xicor’s proprietary Direct Write™
cell, providing a minimum endurance of 100,000 cycles
per byte and a minimum data retention of 100 years.
•
•
•
•
DIE PHOTOGRAPH
ol
bs
RESET
CONTROL
LOGIC
et
e
PROGRAMMABLE
VOLTAGE
SENSOR
P
1
ro
d
O
SERIAL
INTERFACE
LOGIC
2
4K BITS E
2
PROM
HIGH VOLTAGE GENERATOR
HIGH VOLTAGE GENERATOR
AND
AND
CONTROL
CONTROL
Direct Write™ is a trademark of Xicor, Inc.
©Xicor, Inc. 1994, 1995, 1996 Patents Pending
3844-6.5 2/24/99 T4/C2/D2 NS
3844 ILL F01
Characteristics subject to change without notice
uc
W
A T
T I
C M
H E
D R
O
G
•
•
•
•
•
Programmable Watchdog Timer
Low V
CC
Detection
Reset Signal Valid to V
CC
= 1V
1MHz Clock Rate
512 X 8 Bits Serial E
2
PROM
—4 Byte Page Mode
Low Power CMOS
—50
µ
A Standby Current
—3mA Active Current
2.7V To 5.5V Power Supply
Block Lock
TM
—Protect 1/4, 1/2 or all of E
2
PROM Array
Built-in Inadvertent Write Protection
—Power-Up/Power-Down protection circuitry
—Write Latch
—Write Protect Pin
High Reliability
—Endurance: 100,000 cycles per byte
—Data Retention: 100 Years
—ESD protection: 2000V on all pins
Available Packages
—8-Lead PDlP
—8-Lead SOIC
—14-Lead TSSOP
X25043 = Active LOW
RESET
X25045 = Active HIGH RESET
The Watchdog Timer provides an independent protec-
tion system for microcontrollers. During a system failure,
the X25043/45 watchdog will respond with a
RESET/
RESET signal after a selectable time-out interval. The
user selects the interval from three preset values. Once
selected, the interval does not change, even after cy-
cling the power.
t
The X25043/45 combines three popular functions,
Watchdog Timer, Voltage Supervision, and E
2
PROM in
a single package. This combination lowers the system
cost and reduces the board space requirements.
X25043/45
PIN DESCRIPTIONS
Serial Output (SO)
SO is a push/pull serial data output pin. During a read
cycle, data is shifted out on this pin. Data is clocked out
by the falling edge of the serial clock.
Serial Input (SI)
SI is the serial data input pin. All opcodes, byte ad-
dresses, and data to be written to the memory are input
on this pin. Data is latched by the rising edge of the serial
clock.
Serial Clock (SCK)
The Serial Clock controls the serial bus timing for data
input and output. Opcodes, addresses, or data present
on the SI pin is latched on the rising edge of the clock
input, while data on the SO pin changes after the falling
edge of the clock input.
Chip Select (CS)
When
CS
is HIGH, the X25043/45 is deselected and the
SO output pin is at high impedance and, unless an
internal write operation is underway, the X25043/45 will
be in the standby power mode.
CS
LOW enables the
X25043/45, placing it in the active power mode. It should
be noted that after power-up, a HIGH to LOW transition
on
CS
is required prior to the start of any operation.
Write Protect (WP)
When
WP
is LOW, nonvolatile writes to the X25043/45
are disabled, but the part otherwise functions normally.
When
WP
is held HIGH, all functions, including nonvola-
tile writes operate normally.
WP
going LOW while
CS
is
still LOW will interrupt a write to the X25043/45. If the
internal write cycle has already been initiated,
WP
going
LOW will have no affect on a write.
Reset (RESET, RESET)
CS
SO
NC
NC
NC
X25043/45
8-LEAD DIP/SOIC
CS
SO
WP
VSS
1
2
3
4
8
7
6
5
VCC
RESET/RESET
SCK
SI
PIN CONFIGURATION
X25043/45
14-LEAD TSSOP
1
2
3
4
5
6
7
14
13
12
11
10
9
8
ro
d
WP
VSS
P
2
PIN NAMES
Symbol
CS
SO
SI
SCK
WP
V
SS
V
CC
RESET/RESET
Description
Chip Select Input
Serial Output
Serial Input
Serial Clock Input
Write Protect Input
Ground
Supply Voltage
Reset Output
3844 PGM T01.1
O
X25043/45,
RESET/RESET
is an active LOW/HIGH,
open drain output which goes active whenever V
CC
falls below the mimimum V
CC
sense level. It will remain
active until V
CC
rises above the minimum V
CC
sense
level for 200ms.
RESET/RESET
also goes active if
the Watchdog timer is enabled and
CS
remains either
HIGH or LOW longer than the Watchdog time-out
period. A falling edge of
CS
will reset the watchdog timer.
bs
ol
et
e
uc
VCC
NC
NC
NC
SCK
SI
RESET/RESET
t
3844 ILL F02.3
X25043/45
PRINCIPLES OF OPERATION
The X25043/45 is a 512 x 8 E
2
PROM designed to
interface directly with the synchronous serial peripheral
interface (SPI) of many popular microcontroller families.
The X25043/45 contains an 8-bit instruction register. It
is accessed via the SI input, with data being clocked in
on the rising SCK.
CS
must be LOW and
WP
input must
be HIGH during the entire operation. The X25043/45
monitors the bus and provides a
RESET/RESET
output
if there is no bus activity within the preset time period.
Table 1 contains a list of the instructions and their
operation codes. All instructions, addresses and data
are transferred MSB first. Bit 3 of the Read and Write
instructions contain the higher order address bit, A
8
.
Data input is sampled on the first rising edge of SCK after
CS
goes LOW. SCK is static, allowing the user to stop
the clock and then resume operations.
Write Enable Latch
The X25043/45 contains a “write enable” latch. This
latch must be SET before a write operation will be
completed internally. The WREN instruction will set the
latch and the WRDI instruction will reset the latch. This
latch is automatically reset upon a power-up condition
and after the completion of a byte, page, or status
register write cycle. The latch is also reset if
WP
is
brought LOW.
Status Register
The Write-In-Process (WIP) bit indicates whether the
X25043/45 is busy with a write operation. When set to a
“1”, a write is in progress, when set to a “0”, no write is
in progress. During a write, all other bits are set to “1”.
The WIP bit is read-only.
The Write Enable Latch (WEL) bit indicates the status of
the “write enable” latch. When set to a “1”, the latch is set,
when set to a “0”, the latch is reset. The WEL bit is read-
only and is set by the WREN instruction and reset by
WRDI instruction or successful completion of a write
cycle.
The Block Protect (BL0 and BL1) bits indicate the extent
of protection employed. These nonvolatile bits are set by
issuing the WRSR instruction and allows the user to
select one of four levels of protection and program the
watchdog timer. The X25043/45 is divided into four
1024-bit segments. One, two, or all four of the segments
may be locked. That is, the user may read the segments
but will be unable to alter (write) data within the selected
segments. The partitioning is controlled as illustrated
below with the state of BL1 and BL0.
P
0
0
1
1
0
0
1
1
3
ro
d
Status Register Bits
BL1
BL0
0
1
0
1
Status Register Bits
WD1
WD0
0
1
0
1
et
e
uc
Array Addresses
Protected
None
$180–$1FF
$100–$1FF
$000–$1FF
3844 PGM T04
7
X
6
5
4
3
X WD1 WD0 BL1
ol
The RDSR instruction provides access to the status
register. The status register may be read at any time,
even during a write cycle. The status register is format-
ted as follows:
2
BL0
1
WEL
0
WIP
The Watchdog Timer (WD0 and WD1) bits allow setting
of the watchdog time-out function as shown in the table
below. These nonvolatile bits are set by issuing the
WRSR instruction.
Watchdog Time-out
(Typical)
1.4 Seconds
600 Milliseconds
200 Milliseconds
Disabled
3844 PGM T03
bs
3844 PGM T02
When issuing, WREN, WRDI and RDSR commands, it
is not necessary to send a byte address or data.
O
t
X25043/45
Clock and Data Timing
Data input on the SI line is latched on the rising edge of
SCK. Data is output on the SO line by the falling edge of
SCK.
Read Sequence
When reading from the E
2
PROM memory array,
CS
is
first pulled LOW to select the device. The 8-bit READ
instruction is transmitted to the X25043/45, followed by
the 8-bit byte address. Bit 3 of the Read instruction
contains address A
8
. This bit is used to select the upper
or lower half of the device. After the read opcode and
byte address are sent, the data stored in the memory
at the selected address is shifted out on the SO line.
The data stored in memory at the next address can be
read sequentially by continuing to provide clock pulses.
The byte address is automatically incremented to the
next higher address after each byte of data is shifted
out. When the highest address is reached ($1FF) the
address counter rolls over to address $000, allowing
the read cycle to be continued indefinitely. The read
operation is terminated by taking
CS
HIGH. Refer to the
read E
2
PROM Array operation sequence illustrated in
Figure 1.
To read the status register the
CS
line is first pulled
LOW to select the device followed by the 8-bit RDSR
instruction. After the read status register opcode is
sent, the contents of the status register is shifted out on
the SO line as shown in Figure 2.
Write Sequence
transmitted,
CS
must then be taken HIGH. If the user
continues the write operation without taking
CS
HIGH
after issuing the WREN instruction the write operation
will be ignored.
To write data to the E
2
PROM memory array, the user
issues the WRITE instruction, followed by the address
and then the data to be written. Bit 3 of the Write
instruction contains address A
8
. This bit is used to select
the upper or lower half of the device. This is minimally a
twenty-four clock operation.
CS
must go LOW and
remain LOW for the duration of the operation. The host
may continue to write up to four bytes of data to the
X25043/45. The only restriction is the four bytes must
reside on the same page. A page address begins with
address X XXXX XX00 and ends with X XXXX XX11. If
the byte address counter reaches X XXXX XX11 and the
clock continues the counter will roll back to the first
address of the page and overwrite any data that may
have been written.
For the write operation (byte or page write) to be
completed,
CS
can only be brought HIGH after the
twenty-fourth, thirty-second, fortieth, or forty-eighth
clock. If it is brought HIGH at any other time, the write
operation will not be completed. Refer to Figure 4 and 5
below for a detailed illustration of the write sequences.
While the write is in progress, following a status register
or E
2
PROM write sequence the status register may be
read to check the WIP bit. During this time the WIP bit will
be HIGH and all other bits in the status register will be
undefined.
RESET/RESET
Operation
The
RESET
(X25043) output is designed to go LOW
whenever V
CC
has dropped below the minimum trip
point and/or the Watchdog timer has reached its pro-
grammable time-out limit.
Table 1. Instruction Set
Instruction Name
WREN
WRDI
RDSR
WRSR
READ
bs
ol
Prior to any attempt to write data into the X25043/45 the
“write enable” latch must first be set by issuing
the WREN instruction (See Figure 3).
CS
is first taken
LOW, then the WREN instruction is clocked into the
X25043/45. After all eight bits of the instruction are
Instruction Format*
0000 0110
0000 0100
0000 0101
0000 0001
0000 A
8
011
0000 A
8
010
et
e
P
4
WRITE
Set the Write Enable Latch (Enable Write Operations)
Reset the Write Enable Latch (Disable Write Operations)
Read Status Register
Write Status Register (Block Lock Bits)
Read Data from Memory Array beginning at selected
address
Write Data to Memory Array beginning at Selected Address
(1 to 4 Bytes)
3844 PGM T05.1
O
*Instructions are shown MSB in leftmost position. Instructions are transferred MSB first.
ro
d
Operation
uc
t
X25043/45
The RESET (X25045) output is designed to go HIGH
whenever V
CC
has dropped below the minimum trip
point and/or the watchdog timer has reached its pro-
grammable time-out limit.
Operational Notes
The X25043/45 powers-up in the following state:
• The device is in the low power standby state.
• A HIGH to LOW transition on
CS
is required to
enter an active state and receive an instruction.
• SO pin is high impedance.
• The “write enable” latch is reset.
Figure 1. Read E
2
PROM Array Operation Sequence
CS
Data Protection
The following circuitry has been included to prevent
inadvertent writes:
• The “write enable” latch is reset upon power-up.
• A WREN instruction must be issued to set the “write
enable” latch.
0
SCK
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22
INSTRUCTION
SI
8
7
6
P
5
4
3
BYTE ADDRESS
2
1
0
e
9TH BIT OF ADDRESS
HIGH IMPEDANCE
SO
ro
d
7
MSB
6
5
uc
DATA OUT
4
3
2
1
The “write enable” latch is reset when
WP
is brought
LOW.
et
CS
bs
ol
Figure 2. Read Status Register Operation Sequence
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14
SCK
O
INSTRUCTION
SI
DATA OUT
HIGH IMPEDANCE
SO
7
MSB
6
5
4
3
2
1
0
3844 ILL F15
5
t
0
3844 FHD F04
•
CS
must come HIGH at the proper clock count in
order to start a write cycle.