X25401
DEVICE OPERATION
reset upon power-up and must be intentionally set by
the user to enable any write or store operations. Al-
though a recall operation is performed upon power-up,
the previous recall latch is not set by this operation.
The X25401 contains an 8-bit instruction register. It is
accessed via the SI input, with data being clocked in on
the rising edge of SCK. CS must be LOW during the
entire data transfer operation.
WRDS and WREN
Internally the X25401 contains a “write enable” latch.
This latch must be set for either writes to the RAM or
store operations to the E PROM. The WREN instruction
Table 1 contains a list of the instructions and their
operation codes. The most significant bit (MSB) of all
instructions is a logic one (HIGH), bits 6 through 3 are
either RAM address bits (A) or don’t cares (X) and bits
2 through 0 are the operation codes. The X25401
requires the instruction to be shifted in with the MSB
first.
2
sets the latch and the WRDS instruction resets the latch,
2
disabling both RAM writes and E PROM stores, effec-
tively protecting the nonvolatile data from corruption. The
write enable latch is automatically reset on power-up.
STO
After CS is LOW, the X25401 will not begin to interpret
the data stream until a logic “1” has been shifted in on
SI. Therefore, CS may be brought LOW with SCK
running and SI LOW. SI must then go HIGH to indicate
the start condition of an instruction before the X25401
will begin any action.
The software STO instruction will initiate a transfer of
data from RAM to E PROM. In order to safeguard
against unwanted store operations, the following con-
ditions must be true:
2
• STO instruction issued.
In addition, the SCK clock is totally static. The user can
completely stop the clock and data shifting will be
stopped. Restarting the clock will resume shifting of
data.
• The internal “write enable” latch must be set
(WREN instruction issued).
• The “previous recall” latch must be set (either a
software or hardware recall operation).
RCL and RECALL
Once the store cycle is initiated, all other device func-
tions are inhibited. Upon completion of the store cycle,
the write enable latch is reset. Refer to Figure 4 for a
state diagram description of enabling/disabling condi-
tions for store operations.
Either a software RCL instruction or a LOW on the
RECALL input will initiate a transfer of E PROM data
into RAM. This software or hardware recall operation
sets an internal “previous recall” latch. This latch is
2
TABLE 1. INSTRUCTION SET
Instruction
Format, I I I
Operation
2 1 0
WRDS (Figure 3)
STO (Figure 3)
ENAS
1XXXX000
1XXXX001
1XXXX010
1AAAA011
1XXXX100
1XXXX101
1AAAA11X
Reset Write Enable Latch (Disables Writes and Stores)
2
Store RAM Data in E PROM
Enable AUTOSTORE Feature
WRITE (Figure 2)
WREN (Figure 3)
RCL (Figure 3)
READ (Figure 1)
Write Data into RAM Address AAAA
Set Write Enable Latch (Enables Writes and Stores)
2
Recall E PROM Data into RAM
Read Data from RAM Address AAAA
2051 PGM T11
X = Don’t Care
A = Address
3