S29GL256P90FFIR20 Spansion Inc., S29GL256P90FFIR20 Datasheet - Page 28

no-image

S29GL256P90FFIR20

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S29GL256P90FFIR20
Manufacturer:
SPANSION
Quantity:
20 000
28
Software Functions and Sample Code
Notes
1. Base = Base Address.
2. Last = Last cycle of write buffer program operation; depending on number of words written, the total number of cycles may be from 6 to
3. For maximum efficiency, it is recommended that the write buffer be loaded with the highest number of words (N words) possible.
The following is a C source code example of using the write buffer program 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
5 to 36
Last
37.
/* Example: Write Buffer Programming Command
/* NOTES: Write buffer programming limited to 16 words. */
/*
/*
/*
/*
for (i=0;i<=wc;i++)
{
*dst++ = *src++; /* ALL dst MUST BE in same Write Buffer */
}
*( (UINT16 *)sector_address )
/* Example: Write Buffer Abort Reset */
1
2
3
4
UINT16 *src = source_of_data;
UINT16 *dst = destination_of_data;
UINT16 wc
*( (UINT16 *)base_addr + 0x555 ) = 0x00AA;
*( (UINT16 *)base_addr + 0x2AA ) = 0x0055;
*( (UINT16 *)sector_address )
*( (UINT16 *)sector_address )
/* poll for completion */
*( (UINT16 *)addr + 0x555 ) = 0x00AA;
*( (UINT16 *)addr + 0x2AA ) = 0x0055;
*( (UINT16 *)addr + 0x555 ) = 0x00F0;
Description
Write Buffer Load Command
Number of words (N) loaded into the write buffer can be from 1 to 32 words (1 to 64 bytes).
All addresses to be written to the flash in
one operation must be within the same flash
page. A flash page begins at addresses
evenly divisible by 0x20.
Write Buffer to Flash
Load Buffer Word N
Write Word Count
= words_to_program -1;
(LLD Functions Used = lld_WriteToBufferCmd, lld_ProgramBufferToFlashCmd)
Unlock
Unlock
S29GL-P MirrorBit
= 0x0029;
Table 7.7 Write Buffer Program
Operation
= 0x0025;
= wc;
Write
Write
Write
Write
Write
Write
D a t a
®
/* write unlock cycle 1
/* write unlock cycle 2
/* write buffer abort reset
Flash Family
/* write confirm command
/* flash destination address
/* address of source data
/* word count (minus 1)
/* write unlock cycle 1
/* write unlock cycle 2
/* write write buffer load command */
/* write word count (minus 1)
Byte Address
Base + AAAh
S h e e t
Base + 555h
Program Address, Word N
*/
*/
*/
*/
*/
Sector Address
Sector Address
Sector Address
Word Address
S29GL-P_00_A13 November 17, 2010
Base + 2AAh
Base + 555h
*/
*/
*/
*/
*/
Data
*/
*/
*/
*/
*/
Word Count (N–1)h
Word N
00AAh
0055h
0025h
0029h

Related parts for S29GL256P90FFIR20