3 read sector protection register command – Rainbow Electronics AT45DB161D User Manual

Page 15

Advertising
background image

15

3500O–DFLASH–11/2012

AT45DB161D

guaranteed. Furthermore, if more than 16-bytes of data is clocked into the device, then the data will wrap back
around to the beginning of the register. For instance, if 17-bytes of data are clocked in, then the 17

th

byte will be

stored at byte location 0 of the Sector Protection Register.

If a value other than 00H or FFH is clocked into a byte location of the Sector Protection Register, then the
protection status of the sector corresponding to that byte location cannot be guaranteed. For example, if a value of
17H is clocked into byte location 2 of the Sector Protection Register, then the protection status of sector 2 cannot
be guaranteed.

The Sector Protection Register can be reprogrammed while the sector protection enabled or disabled. Being able
to reprogram the Sector Protection Register with the sector protection enabled allows the user to temporarily
disable the sector protection to an individual sector rather than disabling sector protection completely.

The Program Sector Protection Register command utilizes the internal SRAM buffer 1 for processing. Therefore,
the contents of the buffer 1 will be altered from its previous state when this command is issued.

Table 9-5.

Program Sector Protection Register Command

Figure 9-3.

Program Sector Protection Register

9.1.3

Read Sector Protection Register Command

To read the Sector Protection Register, the CS pin must first be asserted. Once the CS pin has been asserted, an
opcode of 32H and three dummy bytes must be clocked in via the SI pin. After the last bit of the opcode and
dummy bytes have been clocked in, any additional clock pulses on the SCK pins will result in data for the content
of the Sector Protection Register being output on the SO pin. The first byte corresponds to sector 0 (0a, 0b), the
second byte corresponds to sector 1 and the last byte (byte 16) corresponds to sector 15. Once the last byte of the
Sector Protection Register has been clocked out, any additional clock pulses will result in undefined data being
output on the SO pin. The CS must be deasserted to terminate the Read Sector Protection Register operation and
put the output into a high-impedance state.

Table 9-6.

Read Sector Protection Register Command

Note:

xx = Dummy Byte

Figure 9-4.

Read Sector Protection Register

Command

Byte 1

Byte 2

Byte 3

Byte 4

Program Sector Protection Register

3DH

2AH

7FH

FCH

Data Byte

n

Opcode

Byte 1

Opcode

Byte 2

Opcode

Byte 3

Opcode

Byte 4

Data Byte

n + 1

Data Byte

n + 15

CS

Each transition
represents eight bits

SI

Command

Byte 1

Byte 2

Byte 3

Byte 4

Read Sector Protection Register

32H

xxH

xxH

xxH

Opcode

X

X

X

Data Byte

n

Data Byte

n + 1

CS

Data Byte

n + 15

SI

SO

Each transition
represents eight bits

Advertising