Hold (HOLD).
The HOLD pin is used to pause
serial communications with the Memory without
resetting the serial sequence. To take the Hold
condition into account, the product must be selected (S = 0). Then the Hold stateis validatedby
a high tolowtransitionon HOLDwhenC islow. To
resumethecommunications,HOLDisbroughthigh
whileC is low.During the Hold conditionD, Q, and
C are at a highimpedancestate.
Whenthe Memoryis underthe Holdcondition,itis
possibletodeselectthedevice.However,theserial
communications will remain paused after a reselect, and the chip will be reset.
TheMemorycanbedrivenbyamicrocontrollerwith
its SPI peripheral running in either of the two followingmodes:(CPOL, CPHA)= (’0’, ’0’)or (CPOL,
CPHA)= (’1’, ’1’).
Forthesetwo modes,inputdatais latchedinby the
lowto high transitionof clockC, andoutputdatais
available from the high to low transition of Clock
(C).
Thedifferencebetween(CPOL, CPHA)=(0,0)and
(CPOL,CPHA) = (1,1) is the stand-bypolarity:C
remains at ’0’ for (CPOL, CPHA) = (0, 0) and C
remainsat’1’for(CPOL,CPHA)=(1,1)whenthere
is no data transfer.
OPERATIONS
All instructions,addresses and data are shifted in
and out of the chip MSB first. Data input (D) is
sampled on the first rising edge of clock (C) after
thechip select(S) goeslow.Priorto any operation,
a one-byte instructioncode must be enteredin the
chip. This code is enteredvia the data input (D),
and latched on the rising edge of the clock input
(C).Toenter an instructioncode, the productmust
have been previously selected (S = low). Table 3
shows the instruction set and format for device
operation. If an invalid instructionis sent (one not
contained in Table 3), the chip is automatically
deselected.For operations that read or write data
in the memoryarray,bit 3 of the instruction is the
MSB of the address,otherwise,it is a don’t care.
WriteEnable(WREN) and WriteDisable (WRDI)
The Memory contains a write enable latch. This
latch must be set prior to every WRITE or WRSR
operation.The WREN instructionwill set the latch
and the WRDI instruction will reset the latch. The
latchis reset under the following conditions:
– W pin is low
– Power on
– WRDI instruction executed
– WRSR instruction executed
– WRITE instruction executed
As soon as the WREN or WRDI instruction is
received by the memory, the circuit executes the
instructionand enters a wait mode until it is deselected.
Read Status Register (RDSR)
TheRDSRinstructionprovidesaccesstothestatus
register. The status register may be read at any
time,evenduring a writeto thememoryoperation.
If a ReadStatusregister reaches the 8thbit of the
Status register, an additional 9th clock pulse will
wrap around to read the 1st bit of theStatus Register
Thestatus register format is as follows:
b7 b0
1 1 1 1 BP1 BP0 WEL WIP
BP1, BP0: Read and write bits
WEL, WIP: Read only bits.
b7 to b4: Readonly bits.
Instruction Description Instruction Format
WREN Set Write Enable Latch 0000 0110
WRDI Reset Write Enable Latch 0000 0100
RDSR Read Status Register 0000 0101
WRSR Write Status Register 0000 0001
READ Read Data fromMemory Array 0000 A
8
011
WRITE Write Data to Memory Array 0000 A
8
010
Notes: A8= 1, Upper page selected on ST95040.
A
8
= 0, Lower page selected on ST95040.
Table3. InstructionSet
4/18
ST95040, ST95020, ST95010