S29PL-N_07 SPANSION [SPANSION], S29PL-N_07 Datasheet - Page 24

no-image

S29PL-N_07

Manufacturer Part Number
S29PL-N_07
Description
256/128/128 Mb (16/8/8 M x 16-Bit) CMOS, 3.0 Volt-only Simultaneous Read/Write, Page-Mode Flash Memory
Manufacturer
SPANSION [SPANSION]
Datasheet
24
Software Functions and Sample Code
Notes
1. Any offset within the device works.
2. BA = Bank Address. The bank address is required.
3. base = base address.
The following is a C source code example of using the autoselect function to read the manufacturer ID. See
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 *)bank_addr + 0x555) = 0x00AA; /* write unlock cycle 1 */
*((UINT16 *)bank_addr + 0x2AA) = 0x0055; /* write unlock cycle 2 */
*((UINT16 *)bank_addr + 0x555) = 0x0090; /* write autoselect command */
/* multiple reads can be performed after entry */
manuf_id = *((UINT16 *)bank_addr + 0x000); /* read manuf. id */
/* Autoselect exit */
*((UINT16 *)base_addr + 0x000) = 0x00F0; /* exit autoselect (write reset command) */
Autoselect Command
Unlock Cycle 1
Unlock Cycle 2
Unlock Cycle 1
Cycle
Cycle
S29PL-N MirrorBit
D a t a
(LLD Function = lld_AutoselectEntryCmd)
(LLD Function = lld_AutoselectExitCmd)
Operation
Operation
Table 7.5 Autoselect Entry
Table 7.6 Autoselect Exit
S h e e t
Write
Write
Write
Write
Flash Family
( P r e l i m i n a r y )
Word Address
Word Address
base + xxxh
BAx2AAh
BAx555h
BAx555h
S29PL-N_00_A5 June 6, 2007
0x00AAh
0x0055h
0x0090h
0x00F0h
Data
Data

Related parts for S29PL-N_07