M95640, M95320
10/39
Status Register
Figure 8 shows the pos ition of the St atus Register
in the control logic o f the device. The Status Reg-
ister contains a number of status and control bits
that can be read or set (as appropriate) by speci fic
instructions.
WIP bit. The Write In Progress (WIP) bit indicates
whether the memory is busy with a Write or Write
Status Regist er cycle.
WEL bit. The W ri te Enable Latch (WEL) bit indi-
cates the status of the int ernal Write Enable Lat ch.
BP1, BP0 bits. The Block Protect (BP1, BP0) bit s
are non-volatile. They define the size of the area to
be software p rotected again st Write instructions.
SRWD bit. The Status Register Write Disable
(SRWD) bit is operated in conjunction with the
Write Protect (W) signal. The Status Register
Write Disable (SRWD) bit and Write Protect (W)
signal allow the device to be put in the Hardware
Protected mode. In this mode, the non-v ol atile bits
of t he Status Register (SRWD, BP1, BP0) become
read-only bits.
Table 2. Status Register Format
Data Protection and Protocol Control
Non-volatile memory devi ces can be used in envi-
ronments that are particular ly noisy, and wi thin ap-
plications that could experience problems if
memory bytes are corrupted. Consequently, the
device features the following data protection
mechanisms:
■Write and Write Status Register instructions are
checked that they consist of a number of clock
pulses that is a multiple of eight, before they are
accepted for execution.
■All instructions that modify data mus t be
preceded by a Write Enable (WREN) instruction
to set the Write Enable Latch (WEL) bit . This bit
is returned to its reset state by the following
events:
– Power-up
– W rite Disable (WRDI) instruction completion
– Write Status Register (WRSR) instruction
completion
– W rite (WRITE) instruction completion
■The Bl ock Protect (B P1, BP0) bits al l ow part of
the memory to be configured as read-only. This
is the Software Protected Mode (SPM).
■The Write Protect (W) sign al allows the Block
Protect (BP1, BP0) bits to be protected . This is
the Hardware Protected Mode (HPM).
For any instruct ion to be acc epted, and executed,
Chip Select (S) must be driven High aft er the rising
edge of Serial Clock (C) for the last bit of the in-
struction, and bef ore the next rising edge of Serial
Clock (C).
Two point s need to be noted in the p revious s en-
tence:
– Th e ‘last bit of the instruction’ can be the eighth
bit of the i nstruction cod e, or the eig hth bit of a
data b yte, depending on th e i nstruction (except
for Read Status Register (RDSR) and Read
(READ) instructions).
– The ‘next rising edge of Serial Clock (C)’ might
(or might not) be the next bus transaction for
some other device on the SPI bus.
Table 3. W rite-Protected Block Size
b7 b0
SRWD 0 0 0 BP1 BP0 WEL WIP
Status Register Write Protect
Block Protect Bits
Write Enable Latch Bit
Write In Progress Bit
Status Regis ter Bits Protected Block Array Addresses Protected
BP1 BP0 M95640 M95320
0 0 none none none
0 1 Upper quarter 1800h - 1FFFh 0C00h - 0FFFh
1 0 Upper half 1000h - 1FFFh 0800h - 0FFFh
1 1 Whole memory 0000h - 1FFFh 0000h - 0FFFh