3 protect sector, Sck cs si (sio) so (soi) – Rainbow Electronics AT25DL081 User Manual

Page 23

Advertising
background image

23

AT25DL081 [DATASHEET]

8732D–DFLASH–12/2012

9.3

Protect Sector

Every physical 64KB sector of the device has a corresponding single-bit Sector Protection Register that is used to control
the software protection of a sector. Upon device power-up, each Sector Protection Register will default to the Logical 1
state indicating that all sectors are protected and cannot be programmed or erased.

Issuing the Protect Sector command to a particular sector address will set the corresponding Sector Protection Register
to the Logical 1 state. The following table outlines the two states of the Sector Protection Registers.

Before the Protect Sector command can be issued, the Write Enable command must have been previously issued to set
the WEL bit in the Status Register to a Logical 1. To issue the Protect Sector command, the CS pin must first be asserted
and then the opcode 36h must be clocked into the device followed by three address bytes designating any address within
the sector to be protected. Any additional data clocked into the device will be ignored. When the CS pin is deasserted,
the Sector Protection Register corresponding to the physical sector addressed by A23-A0 will be set to the Logical 1
state and the sector itself will then be protected from program and erase operations. In addition, the WEL bit in the Status
Register will be reset back to the Logical 0 state.

The three complete address bytes must be clocked into the device before the CS pin is deasserted, and the CS pin must
be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation. When the
device aborts the Protect Sector operation, the state of the Sector Protection Register will be unchanged, and the WEL
bit in the Status Register will be reset to a Logical 0.

As a safeguard against accidental or erroneous protecting or unprotecting of sectors, the Sector Protection Registers can
themselves be locked from updates by using the SPRL (Sector Protection Registers Locked) bit of the Status Register
(please refer to the Status Register description for more details). If the Sector Protection Registers are locked, then any
attempts to issue the Protect Sector command will be ignored, and the device will reset the WEL bit in the Status
Register back to a Logical 0 and return to the idle state once the CS pin has been deasserted.

Figure 9-3. Protect Sector

Table 9-1.

Sector Protection Register Values

Value

Sector Protection Status

0

Sector is unprotected and can be programmed and erased.

1

Sector is protected and cannot be programmed or erased (the default state).

SCK

CS

SI (SIO)

SO (SOI)

MSB

MSB

2

3

1

0

0

0

1

1

0

1

1

0

6

7

5

4

10 11

9

8

12

31

29 30

27 28

26

Opcode

A

A

A

A

A

A

A

A

A

A

A

A

Address Bits A23-A0

High-impedance

Advertising