S29GL256P10FFI020 Spansion Inc., S29GL256P10FFI020 Datasheet - Page 23

no-image

S29GL256P10FFI020

Manufacturer Part Number
S29GL256P10FFI020
Description
IC 256M PAGE-MODE FLASH MEMORY
Manufacturer
Spansion Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S29GL256P10FFI020
Manufacturer:
SPANSION
Quantity:
1 831
Part Number:
S29GL256P10FFI020
Manufacturer:
SAPION10
Quantity:
246
November 17, 2010 S29GL-P_00_A13
Software Functions and Sample Code
Note
1. Any offset within the device works.
2. base = base address.
The following is a C source code example of using the autoselect function to read the manufacturer ID. 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.
/* Here is an example of Autoselect mode (getting manufacturer ID) */
/* Define UINT16 example: typedef unsigned short UINT16; */
UINT16 manuf_id;
/* Auto Select Entry */
*( (UINT16 *)base_addr + 0x555 ) = 0x00AA; /* write unlock cycle 1 */
*( (UINT16 *)base_addr + 0x2AA ) = 0x0055; /* write unlock cycle 2 */
*( (UINT16 *)base_addr + 0x555 ) = 0x0090; /* write autoselect command */
/* multiple reads can be performed after entry */
manuf_id = *( (UINT16 *)base_addr + 0x000 ); /* read manuf. id */
/*
*( (UINT16 *)base_addr + 0x000 ) = 0x00F0; /* exit autoselect (write reset command) */
Autoselect Exit Command
Autoselect Command
Autoselect exit */
Unlock Cycle 1
Unlock Cycle 2
Cycle
Cycle
D a t a
S29GL-P MirrorBit
Operation
Operation
S h e e t
Table 7.4 Autoselect Entry in System
Write
Write
Write
Write
(LLD Function = lld_AutoselectEntryCmd)
(LLD Function = lld_AutoselectExitCmd)
Table 7.5 Autoselect Exit
®
Byte Address
Byte Address
Base + AAAh
Base + AAAh
base + XXXh
Base + 555h
Flash Family
Word Address
Word Address
Base + 2AAh
base + XXXh
Base + 555h
Base + 555h
0x00AAh
0x0055h
0x0090h
0x00F0h
Data
Data
23

Related parts for S29GL256P10FFI020