M95256-RBN6T ST Microelectronics, M95256-RBN6T Datasheet - Page 6

no-image

M95256-RBN6T

Manufacturer Part Number
M95256-RBN6T
Description
256/128 Kbit Serial SPI Bus EEPROM With High Speed Clock
Manufacturer
ST Microelectronics
Datasheet
M95256, M95128
Table 4. Instruction Set
Table 5. Status Register Format
Note: 1. SRWD, BP0 and BP1 are Read and write bits.
As soon as the WREN or WRDI instruction is
received, the memory device first executes the
instruction, then enters a wait mode until the
device is deselected.
Read Status Register (RDSR)
The RDSR instruction allows the status register to
be read, and can be sent at any time, even during
a Write operation. Indeed, when a Write is in
progress, it is recommended that the value of the
Write-In-Progress (WIP) bit be checked. The value
in the WIP bit (whose position in the status register
is shown in Table 5) can be continuously polled,
before sending a new WRITE instruction, using
the timing shown in Figure 7. The Write-In-
Process (WIP) bit is read-only, and indicates
whether the memory is busy with a Write
operation. A ’1’ indicates that a write is in progress,
and a ’0’ that no write is in progress.
The Write Enable Latch (WEL) bit indicates the
status of the write enable latch. It, too, is read-only.
Figure 7. RDSR: Read Status Register Sequence
6/21
WREN
WRDI
RDSR
WRSR
READ
WRITE
SRWD
Instruc
tion
b7
2. WEL and WIP are Read only bits.
Set Write Enable Latch
Reset Write Enable Latch
Read Status Register
Write Status Register
Read Data from Memory Array
Write Data to Memory Array
S
C
D
Q
X
X
Description
HIGH IMPEDANCE
0
X
1
INSTRUCTION
2
BP1
3
4
BP0
5
6
WEL
Instruction
0000 0110
0000 0100
0000 0101
0000 0001
0000 0011
0000 0010
7
Format
MSB
7
8
WIP
STATUS REG. OUT
6
b0
9 10 11 12 13 14 15
5
4
3
Its value can only be changed by one of the events
listed in the previous paragraph, or as a result of
executing WREN or WRDI instruction. It cannot be
changed using a WRSR instruction. A ’1’ indicates
that the latch is set (the forthcoming Write
instruction will be executed), and a ’0’ that it is
reset (and any forthcoming Write instructions will
be ignored).
The Block Protect (BP0 and BP1) bits indicate the
amount of the memory that is to be write-
protected. These two bits are non-volatile. They
are set using a WRSR instruction.
During a Write operation (whether it be to the
memory area or to the status register), all bits of
the status register remain valid, and can be read
using the RDSR instruction. However, during a
Write operation, the values of the non-volatile bits
(SRWD, BP0, BP1) become frozen at a constant
value. The updated value of these bits becomes
available when a new RDSR instruction is
executed, after completion of the write cycle. On
the other hand, the two read-only bits (WEL, WIP)
are dynamically updated during internal write
cycles. Using this facility, it is possible to poll the
WIP bit to detect the end of the internal write cycle.
Write Status Register (WRSR)
The format of the WRSR instruction is shown in
Figure 8. After the instruction and the eight bits of
the status register have been latched-in, the
internal Write cycle is triggered by the rising edge
of the S line. This must occur before the rising
edge of the 17
14), otherwise the internal write sequence is not
performed.
The WRSR instruction is used for the following:
2
to select the size of memory area that is to be
write-protected
to select between SPM (Software Protected
Mode) and HPM (Hardware Protected Mode).
1
0
MSB
7
STATUS REG. OUT
6
th
clock pulse (as indicated in Figure
5
4
3
2
1
0
MSB
7
AI02031

Related parts for M95256-RBN6T