M95160-x, M95080-x Instructions
Doc ID 8028 Rev 11 19/49
Figure 9. Read Status Register (RDSR) sequence
C
D
S
21 3456789101112131415
Instruction
0
AI02031E
Q
7 6543210
Status Register Out
High Impedance
MSB
7 6543210
Status Register Out
MSB
7
Instructions M95160-x, M95080-x
20/49 Doc ID 8028 Rev 11
6.4 Write Status Register (WRSR)
The Write Status Register (WRSR) instruction allows new values to be written to the Status
Register. Before it can be accepted, a Write Enable (WREN) instruction must previously
have been executed.
The Write Status Register (WRSR) instruction is entered by driving Chip Select (S
) low,
followed by the instruction code, the data byte on Serial Data input (D) and Chip Select (S
)
driven high. Chip Select (S
) must be driven high after the rising edge of Serial Clock (C) that
latches in the eighth bit of the data byte, and before the next rising edge of Serial Clock (C).
Otherwise, the Write Status Register (WRSR) instruction is not executed.
The instruction sequence is shown in Figure 10.
Driving the Chip Select (S
) signal high at a byte boundary of the input data triggers the self-
timed write cycle that takes t
W
to complete (as specified in Ta b l e 21, Ta ble 22 , Tabl e 2 3,
Tabl e 2 4 , Tabl e 2 6 and Tabl e 2 7 ).
While the Write Status Register cycle is in progress, the Status Register may still be read to
check the value of the Write in progress (WIP) bit: the WIP bit is 1 during the self-timed write
cycle t
W
, and, 0 when the write cycle is complete. The WEL bit (Write enable latch) is also
reset at the end of the write cycle t
W
.
The Write Status Register (WRSR) instruction allows the user to change the values of the
BP1, BP0 and SRWD bits:
The Block Protect (BP1, BP0) bits define the size of the area that is to be treated as
read only, as defined in Tabl e 3 .
The SRWD bit (Status Register Write Disable bit), in accordance with the signal read
on the Write Protect pin (W
), allows the user to set or reset the Write protection mode
of the Status Register itself, as defined in Ta ble 6. When in Write-protected mode, the
Write Status Register (WRSR) instruction is not executed.
The contents of the SRWD and BP1, BP0 bits are updated after the completion of the
WRSR instruction, including the t
W
Write cycle.
The Write Status Register (WRSR) instruction has no effect on the b6, b5, b4, b1, b0 bits in
the Status Register. Bits b6, b5, b4 are always read as 0.
Table 6. Protection modes
W
signal
SRWD
bit
Mode
Write protection of the
Status Register
Memory content
Protected area
(1)
1. As defined by the values in the Block Protect (BP1, BP0) bits of the Status Register, as shown in Table 3.
Unprotected area
(1)
10
Software-
protected
(SPM)
Status Register is
writable (if the WREN
instruction has set the
WEL bit)
The values in the BP1
and BP0 bits can be
changed
Write-protected
Ready to accept
Write instructions
00
11
01
Hardware-
protected
(HPM)
Status Register is
Hardware write-protected
The values in the BP1
and BP0 bits cannot be
changed
Write-protected
Ready to accept
Write instructions
M95160-x, M95080-x Instructions
Doc ID 8028 Rev 11 21/49
The protection features of the device are summarized in Ta bl e 6 .
When the Status Register Write Disable (SRWD) bit in the Status Register is 0 (its initial
delivery state), it is possible to write to the Status Register (provided that the WEL bit has
previously been set by a WREN instruction), regardless of the logic level applied on the
Write Protect (W
) input pin.
When the Status Register Write Disable (SRWD) bit in the Status Register is set to 1, two
cases need to be considered, depending on the state of the Write Protect (W
) input pin:
If Write Protect (W) is driven high, it is possible to write to the Status Register (provided
that the WEL bit has previously been set by a WREN instruction.
If Write Protect (W) is driven low, it is not possible to write to the Status Register even if
the WEL bit has previously been set by a WREN instruction. (Attempts to write to the
Status Register are rejected, and are not accepted for execution). As a consequence,
all the data bytes in the memory area, which are software-protected (SPM) by the Block
Protect (BP1, BP0) bits in the Status Register, are also hardware-protected against
data modification.
Regardless of the order of the two events, the Hardware-protected mode (HPM) can be
entered by:
either setting the SRWD bit after driving the Write Protect (W) input pin low
or driving the Write Protect (W) input pin low after setting the SRWD bit
Once the Hardware-protected mode (HPM) has been entered, the only way of exiting it is to
pull high the Write Protect (W
) input pin.
If the Write Protect (W
) input pin is permanently tied high, the Hardware-protected mode
(HPM) can never be activated, and only the Software-protected mode (SPM), using the
Block Protect (BP1, BP0) bits in the Status Register, can be used.
Figure 10. Write Status Register (WRSR) sequence
Table 7. Address range bits
(1)
1. b15 to b11 are Don’t Care on the M95160-x.
b15 to b10 are Don’t Care on the M95080-x.
Device M95160-x M95080-x
Address bits A10-A0 A9-A0
C
D
AI02282D
S
Q
21 3456789101112131415
High Impedance
Instruction Status
Register In
0
765432 0
1
MSB

M95080-RMB6TG

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
EEPROM 16 Kbit and 8 Kbit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet