s29ns01gs Meet Spansion Inc., s29ns01gs Datasheet - Page 52

no-image

s29ns01gs

Manufacturer Part Number
s29ns01gs
Description
S29ns01gs 1024 Megabit 128 Megabyte 16-bit Data Width, Burst Access, Simultaneous Read/write, 1.8 Volt-only Flash Memory In 65 Nm Mirrorbit Technology
Manufacturer
Meet Spansion Inc.
Datasheet
52
Software Functions and Sample Code
Note
& indicates a bitwise AND operation.
Software Functions and Sample Code
Note
| indicates a bitwise OR operation.
Cycle
Cycle
/* Example: Sector Lock Command */
UINT16 *CAP1 = ((UINT16 *) sector_address + 0x555); /* Define CAP1 */
UINT16 *CAP2 = ((UINT16 *) sector_address + 0xAAA); /* Define CAP2 */
*CAP1 = 0x0060;
*CAP2 = 0x0060;
*( (UINT16 *)(sector_address & 0xFFFFFFBF) ) = 60;
/* Example: Sector Unlock Command */
UINT16 *CAP1 = ((UINT16 *) sector_address + 0x555); /* Define CAP1 */
UINT16 *CAP2 = ((UINT16 *) sector_address + 0xAAA); /* Define CAP2 */
*CAP1 = 0x0060;
*CAP2 = 0x0060;
*( (UINT16 *)(sector_address | 0x00000040h) ) = 60;
1
2
3
1
2
3
Write First Setup Command to CAP1
Write Second Setup Command to CAP2
Write Sector Lock Command
Write First Setup Command to CAP1
Write Second Setup Command to CAP2
Write Sector Lock Command
Description
Description
S29NS-S MirrorBit
D a t a
Table 8.6 Sector Unlock Command
Table 8.5 Sector Lock Command
S h e e t
®
Eclipse
Operation
Operation
Write
Write
Write
Write
Write
Write
Flash Family
( P r e l i m i n a r y )
Sector Address + 1554h
Sector Address + 1554h
Sector Address + AAAh
Sector Address + AAAh
(Sector Address) &
(Sector Address) |
Byte Address
Byte Address
FFFFFF7Fh
00000080h
Sector Address + AAAh
Sector Address + AAAh
S29NS-S_00_02 April 20, 2009
Sector Address + 555h
Sector Address + 555h
(Sector Address) &
(Sector Address) |
Word Address
Word Address
FFFFFFBFh
00000040h
0060h
0060h
0060h
0060h
0060h
0060h
Data
Data

Related parts for s29ns01gs