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

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
June 6, 2007 S29PL-N_00_A5
Software Functions and Sample Code
The following are C functions and source code examples of using the Secured Silicon Sector Entry, Program,
and exit commands. Refer to the Spansion Low Level Driver User Guide (available soon on
www.spansion.com) for general information on Spansion Flash memory software development guidelines.
Note
Base = Base Address.
Note
Base = Base Address.
Note
Base = Base Address.
/* Example: SecSi Sector Entry Command */
/* Once in the SecSi Sector mode, you program */
/* words using the programming algorithm.
/* Example: SecSi Sector Exit Command */
*((UINT16 *)base_addr + 0x555) = 0x00AA;
*((UINT16 *)base_addr + 0x2AA) = 0x0055;
*((UINT16 *)base_addr + 0x555) = 0x0088;
*((UINT16 *)base_addr + 0x555) = 0x00AA;
*((UINT16 *)base_addr + 0x2AA) = 0x0055;
*((UINT16 *)base_addr + 0x555) = 0x0090;
*((UINT16 *)base_addr + 0x000) = 0x0000;
Program Setup
Unlock Cycle 1
Unlock Cycle 2
Unlock Cycle 1
Unlock Cycle 2
Unlock Cycle 1
Unlock Cycle 2
D a t a
Entry Cycle
Program
Exit Cycle
Cycle
Cycle
Cycle
S h e e t
S29PL-N MirrorBit
Table 10.3 Secured Silicon Sector Program
Table 10.2 Secured Silicon Sector Entry
( P r e l i m i n a r y )
Table 10.4 Secured Silicon Sector Exit
(LLD Function = lld_SecSiSectorEntryCmd)
(LLD Function = lld_SecSiSectorExitCmd)
Operation
(LLD Function = lld_ProgramCmd)
Write
Write
Write
Write
Operation
Operation
Write
Write
Write
Write
Write
Write
Flash Family
/* write unlock cycle 1
/* write unlock cycle 2
/* write Secsi Sector Entry Cmd
/* write unlock cycle 1
/* write unlock cycle 2
/* write SecSi Sector Exit cycle 3 */
/* write SecSi Sector Exit cycle 4 */
*/
Word Address
Word Address
Base + 2AAh
Base + 555h
Base + 555h
Word Address
Word Address
Base + 2AAh
Base + 2AAh
Base + 555h
Base + 555h
Base + 555h
Base + 555h
Data Word
00AAh
0055h
00A0h
Data
00AAh
00AAh
0055h
0088h
0055h
0090h
Data
Data
*/
*/
*/
*/
*/
53

Related parts for S29PL-N_07