S29WS-P SPANSION [SPANSION], S29WS-P Datasheet - Page 37

no-image

S29WS-P

Manufacturer Part Number
S29WS-P
Description
512/256/128 Mb (32/16/8 M x 16 bit) 1.8 V Burst Simultaneous Read/Write MirrorBit Flash Memory
Manufacturer
SPANSION [SPANSION]
Datasheet
November 8, 2006 S29WS-P_00_A7
Once the sector erase operation has begun, only the Erase Suspend command is valid. All other commands
are ignored. However, note that a hardware reset immediately terminates the erase operation. If that occurs,
the sector erase command sequence should be reinitiated once that bank has returned to reading array data,
to ensure data integrity.
Figure 7.5 on page 36
on page 28
Software Functions and Sample Code
The following is a C source code example of using the sector erase function. Refer to the Spansion Low Level
Driver User’s Guide (available on www.spansion.com) for general information on Spansion Flash memory
software development guidelines.
Cycle
/* Example: Sector Erase Command */
1
2
3
4
5
6
D a t a
*( (UINT16 *)base_addr + 0x555 ) = 0x00AA;
*( (UINT16 *)base_addr + 0x2AA ) = 0x0055;
*( (UINT16 *)base_addr + 0x555 ) = 0x0080;
*( (UINT16 *)base_addr + 0x555 ) = 0x00AA;
*( (UINT16 *)base_addr + 0x2AA ) = 0x0055;
*( (UINT16 *)sector_address )
for parameters and timing diagrams.
S h e e t
Unlimited additional sectors may be selected for erase; command(s) must be written within t
Sector Erase Command
Setup Command
Description
Unlock
Unlock
Unlock
Unlock
illustrates the algorithm for the erase operation. Refer to
( A d v a n c e
(LLD Function = lld_SectorEraseCmd)
S29WS-P
Table 7.28 Sector Erase
Operation
I n f o r m a t i o n )
= 0x0030;
Write
Write
Write
Write
Write
Write
Sector Address
Byte Address
Base + AAAh
Base + AAAh
Base + AAAh
Base + 554h
Base + 554h
/* write unlock cycle 1
/* write unlock cycle 2
/* write setup command
/* write additional unlock cycle 1 */
/* write additional unlock cycle 2 */
/* write sector erase command
Word Address
Sector Address
Base + 2AAh
Base + 2AAh
Base + 555h
Base + 555h
Base + 555h
Program/Erase Operations
SEA
.
00AAh
00AAh
0055h
0080h
0055h
0030h
Data
*/
*/
*/
*/
35

Related parts for S29WS-P