01.04.2014 Views

Preliminary C8051F120/1/2/3 C8051F124/5/6/7 - KEMT FEI TUKE

Preliminary C8051F120/1/2/3 C8051F124/5/6/7 - KEMT FEI TUKE

Preliminary C8051F120/1/2/3 C8051F124/5/6/7 - KEMT FEI TUKE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Preliminary</strong><br />

<strong>C8051F120</strong>/1/2/3<br />

<strong>C8051F124</strong>/5/6/7<br />

Figure 15.2. FLASH Program Memory Map and Security Bytes<br />

Read and Write/Erase Security Bits.<br />

(Bit 7 is MSB.)<br />

SFLE = 0<br />

SFLE = 1<br />

Bit<br />

7<br />

6<br />

5<br />

4<br />

3<br />

2<br />

1<br />

0<br />

Memory Block<br />

0x1C000 - 0x1FBFD<br />

0x18000 - 0x1BFFF<br />

0x14000 - 0x17FFF<br />

0x10000 - 0x13FFF<br />

0x0C000 - 0x0FFFF<br />

0x08000 - 0x0BFFF<br />

0x04000 - 0x07FFF<br />

0x00000 - 0x03FFF<br />

Reserved<br />

Read Lock Byte<br />

Write/Erase Lock Byte<br />

0x1FFFF<br />

0x1FC00<br />

0x1FBFF<br />

0x1FBFE<br />

0x1FBFD<br />

Scratchpad Memory<br />

(Data only)<br />

Program/Data<br />

Memory Space<br />

0x00FF<br />

0x0000<br />

Software Read Limit<br />

0x00000<br />

FLASHReadLockByte<br />

Bits7-0: Each bit locks a corresponding block of memory. (Bit7 is MSB).<br />

0: Read operations are locked (disabled) for corresponding block across the JTAG interface.<br />

1: Read operations are unlocked (enabled) for corresponding block across the JTAG interface.<br />

FLASH Write/Erase Lock Byte<br />

Bits7-0: Each bit locks a corresponding block of memory.<br />

0: Write/Erase operations are locked (disabled) for corresponding block across the JTAG interface.<br />

1: Write/Erase operations are unlocked (enabled) for corresponding block across the JTAG interface.<br />

NOTE: When the highest block is locked, the security bytes may be written but not erased.<br />

FLASH access Limit Register (FLACL)<br />

The content of this register is used as the 8 MSBs of the 17-bit software read limit address. Software<br />

running at or above this address is prohibited from using the MOVX and MOVC instructions to read,<br />

write, or erase FLASH locations below this address. Any attempts to read locations below this limit<br />

will return indeterminate data.<br />

The lock bits can always be read and cleared to logic 0 regardless of the security setting applied to the block containing<br />

the security bytes. This allows additional blocks to be protected after the block containing the security bytes has<br />

been locked. Important Note: The only means of removing a lock once set is to erase the entire program memory<br />

space by performing a JTAG erase operation (i.e. cannot be done in user firmware). Addressing either<br />

security byte while performing a JTAG erase operation will automatically initiate erasure of the entire program<br />

memory space (except for the reserved area). This erasure can only be performed via JTAG. If a nonsecurity<br />

byte in the 0x1F800-0x1FBFF page is addressed during the JTAG erasure, only that page (including<br />

the security bytes) will be erased.<br />

© 2002 Cygnal Integrated Products, Inc. DS008-0.8-AUG02 Page 177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!