125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE
Rev.1.1_00 S-25A128B
Seiko Instruments Inc. 13
4. Read the status register (RDSR)
Reading data in the status register is possible by the RDSR instruction. During the write operation, it is possible to
confirm the progress by checking bit WIP.
Set the chip select (CS ) "L" first. After that, input the instruction code from serial data input (SI). The status of bit in
the status register is output f rom serial data output (SO). Sequential read is available for the status register. To stop
the read cycle, set CS to "H".
It is possible to read the status register always. The bits in it are valid and can be read by RDSR even in the write
cycle.
However, during the write cycle in progress, t he nonvolatile bits SRWD, BP1, BP0 are fixed in a certain value. These
updated values of bit can be obtained by inputting another new RDSR instruction af ter the write cycle has completed.
Contrarily, two of read only bits WEL and WIP are being updated while the writ e cycle is in progress.
SO
SCK
WP
CS
SI
Instruction
High-Z
12345678
High / Low
9 10111213141516
Outputs Data in the Status Register
b7 b6 b5 b7b0b1b2b3b4
Figure 13 RDSR Operation
5. Write in the status register (WRSR)
The values of status register (SRWD, BP1, BP0) can be rewrit ten by inputting the WRSR instruction. But b6, b5, b4,
b1, b0 of status register cannot be rewritten. b6 to 4 are always data "0" when reading the status register.
Before inputting the WRSR instruction, set bit WEL by the WREN instruction. The operation of WRSR is shown
below.
Set the chip select (CS ) "L" first. After that, input the instruction code and data from serial data input (SI). To start
WRSR write (tPR), set the chip select (CS ) to "H" after inputting data or before inputting a rising of the next serial
clock. It is possible to confirm the operation status by reading the value of bit WIP during WRSR write. Bit WIP is "1"
during write, "0" during any other status. Bit WEL is reset when write is completed.
With the WRSR instruction, the values of BP1 and BP0; which determine the area size the users can handle as the
Read only memory; can be changed. Besides bit SRWD can be set or reset by the WRSR instruction depending on
the status of write protect ( WP ). With a combination of bit SRWD and write protect ( WP ), this IC can be set in
Hardware Protect mode (HPM). In this case, the WRSR instruction is not be performed (Refer to " Protect
Operation").
Bit SRWD and BP1, BP0 keep the value which is the one prior to the WRSR instruction during the WRSR inst ruction.
The newly updated value is changed when the WRSR instruction has completed.
To cancel the WRSR instruction, input the clock different from a specif ied value (n = 16 clock) while CS is in "L".