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

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
26
Software Functions and Sample Code
Note
Base = Base Address.
The following is a C source code example of using the single word program function. See the Spansion Low
Level Driver User’s Guide (available on www.spansion.com) for general information on Spansion Flash
memory software development guidelines.
/* Example: Program Command
/* Poll for program completion */
*((UINT16 *)base_addr + 0x555) = 0x00AA;
*((UINT16 *)base_addr + 0x2AA) = 0x0055;
*((UINT16 *)base_addr + 0x555) = 0x00A0;
*((UINT16 *)pa)
Unlock Cycle 1
Unlock Cycle 2
Program Setup
Program
Cycle
PASS. Device is in
read mode.
S29PL-N MirrorBit
D a t a
Figure 7.1 Single Word Program Operation
Yes
Table 7.7 Single Word Program
(LLD Function = lld_ProgramCmd)
Write Program Command:
Program Data to Address:
*/
Perform Polling Algorithm
Address 555h, Data A0h
Address 555h, Data AAh
Address 2AAh, Data 55h
(see Write Operation Status
= data;
S h e e t
Write Unlock Cycles:
Polling Status
Polling Status
= Busy?
flowchart)
= Done?
PA, PD
Flash Family
Operation
Write
Write
Write
Write
No
No
( P r e l i m i n a r y )
to return to read array mode.
/* write unlock cycle 1
/* write unlock cycle 2
/* write program setup command
/* write data to be programmed
FAIL. Issue reset command
Yes
Word Address
Word Address
Base + 2AAh
Base + 555h
Base + 555h
Unlock Cycle 1
Unlock Cycle 2
Setup Command
Program Address (PA),
Program Data (PD)
Error condition
(Exceeded Timing Limits)
S29PL-N_00_A5 June 6, 2007
Data Word
00AAh
0055h
00A0h
Data
*/
*/
*/
*/

Related parts for S29PL-N_07