17 / 37 page

SA25F020 Advanced Information
SAIFUN
17
Functional Description
Instructions
Figure 9 presents a schematic diagram of
the SA25F020's SPI serial interface.
SI
SO
CSb
SCK
SI
SO
CSb
SCK
SI
SO
CSb
SCK
DATA OUT
DATA IN
SERIAL CLOCK
SSO
SS1
SS2
SS3
MASTER:
MICROCONTROLLER
SLAVE
SA25F020
SI
SO
CSb
SCK
Figure 9. SPI Serial Interface
The SA25F020's SPI consists of an 8-bit
instruction register that decodes a specific
instruction
to
be
executed.
Thirteen
different instructions (called opcodes) are
incorporated in the device for various
operations. Table 6 lists the instruction set
and the format for proper operation. All
opcodes, array addresses and data are
transferred
in
an
MSB-first-LSB-last
fashion. Detailed information about each of
these opcodes is provided for the individual
instruction descriptions in the sections that
follow.
Table 6. Instruction Set
Instruction
Name
Instruction
Format
Operation
WREN
0000 0110
Set Write Enable
Latch
WRDI
0000 0100
Reset Write Enable
Latch
RDSR
0000 0101
Read Status
Register
WRSR
0000 0001
Write Status
Register
READ
0000 0011
Read Data from
Memory Array
FAST_READ
0000 1011
Read Data from
Memory Array
Page
Program
0000 0010
Write Data to
Memory Array
PE
1000 0001
Page Erase
SE
1101 1000
Sector Erase
BE
1100 0111
Bulk Erase
SP
1011 1001
Software Protect
1010 1011
Release from
Software Protect
Mode
RES
1010 1011
+3 dummy bytes
Release from
Software Protect +
Read ID
READ_ID
1010 1011
+3 dummy bytes
Read ID