3/21
M95256, M95128
SIGNAL DESCRIPTION
Seria l O utput ( Q )
The output pin is used to transfer data serially out
of the Memory. Data is shifted out on the falling
edge of the serial clock.
Serial Inpu t ( D )
The input pin is used to transfer data serially into
the device. Instructions, addresses, and the data
to be written, are each received this way . Input is
latched on the rising edge of the serial clock.
Serial Clock (C)
The serial clock provides the timing for the serial
interface (as shown in Figure 4). Instructions,
addresses, or data are latched, from the input pin,
on the rising edge of the clock input. The output
data on the Q pin chang es state after the falling
edge of the clock input.
Chip Select (S
)
When S
is high, the memory device is deselected,
and the Q output pin is held in its high impe dance
state. Unless an internal write operation is
underway, the memory device is placed in its
stand-by power mode.
After power-on, a high-to-low transition on S
is
required prior to the start of any operation.
Write Protect (W
)
The protection features of t he m em ory device are
summarized in Table 3.
The hardware write protection, controlled by the W
pin, restricts write access to the Status Register
(though not to the WIP and WEL bits, which are
set or reset by the device internal logic).
Bit 7 of the status register (as shown in Table 5) is
the Status Register Write Disable bit (SRWD).
When this is set to 0 (its initial delivery state) it is
possible to write to the status register if the WEL
bit (Write Enable Latch) has been set by the
WREN instruction (irrespective of the l evel being
applied to the W
input).
When bit 7 (SRWD) of the st atus register is set to
1, the ability to write to the status register depends
on the logic level being presented at pin W
:
–If W
pin is high, it is possible to write to the
status register, after having set the WEL bit
using the WREN instruction (Write Enable
Latch).
–If W
pin is low, any attempt to modify the status
register is ignored by the device, even if the
WEL bit has been set. As a consequence, all the
data bytes in the EE PROM area, protected by
the BPn bits of the status register, are also
hardware protected against data corruption,
and appear as a Read Only EEPROM area for
the microcontroller. This mode is called the
Hardware Protected Mode (HPM).
It is possible to enter the Hardware Protected
Mode (HPM) either by s etting the SRWD bi t after
pulling low the W
pin, or by pulling low the W pin
after setting the SRWD bit.
The only way to abort the Hardware Protected
Mode, once entered, is to pull high the W
pin.
If W
pin is permanently t ied to the hi gh level, the
Hardware Protected Mode is never activated, and
Figure 3. Microcontroller and Memor y Devices on the SPI Bus
AI01958C
Master
(ST6, ST7, ST9,
ST10, Others)
M95xxx
SDO
SDI
SCK
CQD
S
M95xxx
CQD
S
M95xxx
CQD
S
CS3 CS2 CS1
SPI Interface with
(CPOL, CPHA) =
('0', '0') or ('1', '1')