English
Language : 

PIC18F6390 Datasheet, PDF (294/412 Pages) Microchip Technology – 64/80-Pin Flash Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F6390/6490/8390/8490
23.5 Program Verification and
Code Protection
The overall structure of the code protection on the
PIC18F6390/6490/8390/8490 Flash devices differs
from previous PIC18 devices.
For all devices in the PIC18F6X90/8X90 family, the
user program memory is made of a single block.
Figure 23-5 shows the program memory organization
for individual devices. Code protection for this block is
controlled by a single bit, CP (CONFIG5L<0>). The CP
bit inhibits external reads from and writes to the entire
program memory space. It has no direct effect in
normal execution mode.
23.5.1 READING PROGRAM MEMORY
AND OTHER LOCATIONS
The program memory may be read to any location
using the table read instructions. The device ID and the
configuration registers may be read with the table read
instructions.
23.5.2 CONFIGURATION REGISTER
PROTECTION
The configuration registers can only be written via
ICSP using an external programmer. No separate
protection bit is associated with them.
FIGURE 23-5:
CODE-PROTECTED PROGRAM MEMORY FOR PIC18F6390/6490/8390/8490
MEMORY SIZE/DEVICE
8 Kbytes
Address
16 Kbytes
Address
(PIC18F6390/8390) Range (PIC18F6490/8490) Range
Block Code Protection
Controlled By:
Program Memory
Block
000000h
001FFFh
002000h
Program Memory
Block
000000h
003FFFh
004000h
CP, EBTR
Unimplemented
Read ‘0’s
Unimplemented
Read ‘0’s
(Unimplemented Memory Space)
1FFFFFh
1FFFFFh
TABLE 23-3: SUMMARY OF CODE PROTECTION REGISTERS
File Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
300008h CONFIG5L —
—
—
—
—
Legend: Shaded cells are unimplemented.
Bit 2
—
Bit 1
—
Bit 0
CP
DS39629B-page 292
Preliminary
 2004 Microchip Technology Inc.