s71ws256nc0bawa30 Meet Spansion Inc., s71ws256nc0bawa30 Datasheet - Page 40

no-image

s71ws256nc0bawa30

Manufacturer Part Number
s71ws256nc0bawa30
Description
Stacked Multi-chip Product Mcp 256/512/128 Megabit 32m/16m/8m X 16 Bit Cmos 1.8 Volt-only Simultaneous Read/write, Burst-mode Flash Memory With 128/64megabit 8m/4m X 16-bit Psram.
Manufacturer
Meet Spansion Inc.
Datasheet
38
5 to 36
Cycle
Last
1
2
3
4
Notes:
1. Base = Base Address.
2. Last = Last cycle of write buffer program operation; depending on number of words written, the total
3. For maximum efficiency, it is recommended that the write buffer be loaded with
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.amd.com and
www.fujitsu.com) for general information on Spansion Flash memory software development
guidelines.
/* Example: Write Buffer Programming Command
/* NOTES: Write buffer programming limited to 16 words. */
/*
/*
/*
/*
loop:
confirm:
/* Example: Write Buffer Abort Reset */
Write Buffer Load Command
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 )
*dst = *src; /* ALL dst MUST BE SAME PAGE */ /* write source data to destination */
dst++;
src++;
if (wc == 0) goto confirm
wc--;
goto loop;
*( (UINT16 *)sector_address )
/* poll for completion */
*( (UINT16 *)addr + 0x555 ) = 0x00AA;
*( (UINT16 *)addr + 0x2AA ) = 0x0055;
*( (UINT16 *)addr + 0x555 ) = 0x00F0;
number of cycles may be from 6 to 37.
the highest number of words (N words) possible.
Write Buffer to Flash
Load Buffer Word N
Number of words (N) loaded into the write buffer can be from 1 to 32 words.
Write Word Count
Description
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.
Unlock
Unlock
= words_to_program -1;
Table 10.14 Software Functions and Sample Code
A d v a n c e
Operation
S71WS-Nx0 Based MCPs
Write
Write
Write
Write
Write
Write
= 0x0025;
= wc;
= 0x0029;
/* write unlock cycle 1
/* write unlock cycle 2
/* write buffer abort reset
Base + AAAh
Base + 554h
Byte Address
/* flash destination address
Program Address, Word N
/* 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)
/* increment destination pointer
/* increment source pointer
/* done when word count equals zero */
/* decrement word count
/* do it again
/* write confirm command
I n f o r m a t i o n
Program Address
Program Address
Sector Address
*/
*/
*/
*/
*/
Word Address
Base + 2AAh
Base + 555h
Word Count (N–1)h
*/
*/
*/
S71WS-N_01_A4 September 15, 2005
*/
Word N
00AAh
0055h
0025h
0029h
*/
*/
*/
*/
*/
*/
Data
*/
*/
*/
*/

Related parts for s71ws256nc0bawa30