
February 18, 2005 S29AL004D_00_A1
S29AL004D
15
A d v a n c e  I n f o r m a t i o n
To access the autoselect codes in-system, the host system can issue the autose-
lect command via the command register, as shown in 
Table  on page 24
. This 
method does not require V
ID
. See 
 Command Definitions on page 18
 for details 
on using the autoselect mode. 
L =  Logic Low =  V
IL
, H =  Logic High =  V
IH
,  SA =  Sector Address, X =  Don’t care.
Sector Protection/Unprotection
The hardware sector protection feature disables both program and erase opera-
tions in any sector. The hardware sector unprotection feature re-enables both 
program and erase operations in previously protected sectors. 
The device is shipped with all sectors unprotected. Spansion offers the option of 
programming and protecting sectors at its factory prior to shipping the device 
through Spansion’s ExpressFlash Service. Contact an Spansion representative 
for details.
It is possible to determine whether a sector is protected or unprotected. See 
 Autoselect Mode on page 14
 for details.
Sector Protection/unprotection can be implemented via two methods.
The primary method requires V
ID
 on the RESET# pin only, and can be imple-
mented either in-system or via programming equipment. 
Figure 2, on page 17
shows the algorithms and 
Figure 23, on page 46
 shows the timing diagram. This 
method uses standard microprocessor bus cycle timing. For sector unprotect, all 
unprotected sectors must first be protected prior to the first sector unprotect 
write cycle. 
The alternate method intended only for programming equipment requires V
ID
 on 
address pin A9 and OE#. This method is compatible with programmer routines 
written for earlier 3.0 volt-only Spansion flash devices.
Temporary Sector Unprotect
This feature allows temporary unprotection of previously protected sectors to 
change data in-system. The Sector Unprotect mode is activated by setting the 
RESET# pin to V
ID
. During this mode, formerly protected sectors can be pro-
grammed or erased by selecting the sector addresses. Once V
ID
 is removed from 
the RESET# pin, all the previously protected sectors are protected again. 
Table 4. S29AL004D Autoselect Codes (High Voltage Method)
Description
Mode
CE#
OE#
WE#
A17
to 
A12
A11
to
A10
A9
A8
to
A7
A6
A4
to
A5
A3
to
A2
A1
A0
DQ8
to
DQ15
DQ7
to
DQ0
Manufacturer ID
: 
Spansion
L
L
H
X
X
V
ID
X
L
X
L
L
L
X
01h
Device ID: 
S29AL004D
(Top Boot Block)
Word
L
L
H
X
X
V
ID
X
L
X
L
L
H
22h
B9h
Byte
L
L
H
X
B9h
Device ID: 
S29AL004D
(Bottom Boot 
Block)
Word
L
L
H
X
X
V
ID
X
L
X
L
L
H
22h
BAh
Byte
L
L
H
X
BAh
Sector Protection 
Verification
L
L
H
SA
X
V
ID
X
L
X
L
H
L
X
01h 
(protected)
X
00h 
(unprotected)