|
PIC16LF1508 Datasheet, PDF (46/384 Pages) Microchip Technology – 20-Pin Flash, 8-Bit Microcontrollers with nanoWatt XLP Technology | |||
|
◁ |
PIC16(L)F1508/9
4.2 Code Protection
Code protection allows the device to be protected from
unauthorized access. Internal access to the program
memory is unaffected by any code protection setting.
4.2.1 PROGRAM MEMORY PROTECTION
The entire program memory space is protected from
external reads and writes by the CP bit in Configuration
Words. When CP = 0, external reads and writes of
program memory are inhibited and a read will return all
â0âs. The CPU can continue to read program memory,
regardless of the protection bit settings. Writing the
program memory is dependent upon the write
protection setting. See Section 4.3 âWrite
Protectionâ for more information.
4.3 Write Protection
Write protection allows the device to be protected from
unintended self-writes. Applications, such as
bootloader software, can be protected while allowing
other regions of the program memory to be modified.
The WRT<1:0> bits in Configuration Words define the
size of the program memory block that is protected.
4.4 User ID
Four memory locations (8000h-8003h) are designated as
ID locations where the user can store checksum or other
code identification numbers. These locations are
readable and writable during normal execution. See
Section 10.4 âUser ID, Device ID and Configuration
Word Accessâ for more information on accessing these
memory locations. For more information on checksum
calculation, see the âPIC12(L)F1501/PIC16(L)F150X
Memory Programming Specificationâ (DS41573).
DS41609A-page 46
Preliminary
ï£ 2011 Microchip Technology Inc.
|
▷ |