AT25DF041A-MU ATMEL [ATMEL Corporation], AT25DF041A-MU Datasheet - Page 16

no-image

AT25DF041A-MU

Manufacturer Part Number
AT25DF041A-MU
Description
4-megabit 2.7-volt Only Serial Firmware DataFlash Memory
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
9.3
16
Protect Sector
AT25DF041A
Figure 9-2.
Every physical 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 or after a
device reset, 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.
Table 9-1.
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 the opcode of 36h must be clocked into
the device followed by three address bytes designating any address within the sector to be
locked. Any additional data clocked into the device will be ignored. When the CS pin is deas-
serted, 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 complete three address bytes must be clocked into the device before the CS pin is deas-
serted, and the CS pin must be deasserted on an even byte boundary (multiples of eight bits);
otherwise, the device will abort the 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 Protec-
tion 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 Reg-
ister back to a logical “0” and return to the idle state once the CS pin has been deasserted.
Value
0
1
Write Disable
Sector Protection Register Values
Sector Protection Status
Sector is unprotected and can be programmed and erased.
Sector is protected and cannot be programmed or erased. This is the default state.
SCK
SO
CS
SI
HIGH-IMPEDANCE
MSB
0
0
0
1
0
2
OPCODE
0
3
0
4
1
5
0
6
0
7
3668A–DFLASH–03/07

Related parts for AT25DF041A-MU