PIC12F675/ICD Microchip Technology, PIC12F675/ICD Datasheet - Page 19

no-image

PIC12F675/ICD

Manufacturer Part Number
PIC12F675/ICD
Description
IC MCU 1K FLASH DEVLP TOOL 14DIP
Manufacturer
Microchip Technology

Specifications of PIC12F675/ICD

Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
4.0
For PIC12F629/675/PIC16F630/676 devices, once
code protection is enabled, all program memory loca-
tions, except 0X3FF, reads all ‘0’s. The ID locations and
the Configuration Word read out in an unprotected
fashion. Further programming is disabled for the entire
program memory. Data memory is protected with its
own Code Protection Data bit (CPD). It is possible to
program the ID locations and the Configuration Word.
4.1
It is recommended that the following procedure be
performed before any other programming is attempted.
It is also possible to turn code protection off (CPD = 1)
using this procedure. However, all data within the
program memory and the data memory will be erased
when this procedure is executed and thus, the security
of the data or code is not compromised.
4.2
© 2005 Microchip Technology Inc.
To allow portability of code, the programmer is required to read the Configuration Word and ID locations from the hex
file when loading the hex file. If Configuration Word information was not present in the hex file, then a simple warning
message may be issued. Similarly, while saving a hex file, Configuration Word and ID information must be included.
An option to not include this information may be provided.
Specifically for the PIC12F629/675/PIC16F630/676, the EEPROM data memory should also be embedded in the hex
file (see Section 4.3.2 “Embedding Data EEPROM Contents In Hex File”).
Microchip Technology Incorporated feels strongly that this feature is important for the benefit of the end customer.
CODE PROTECTION
Disabling Code Protection
Embedding Configuration Word and ID Information in the Hex File
PIC12F629/675/PIC16F630/676
To disable code-protect:
a)
b)
c)
d)
e)
f)
g)
h)
Note:
Read and store OSCCAL and BG bits.
Execute Load Configuration (000000).
Execute Bulk Erase Program Memory (001001).
Wait T
Execute Bulk Erase Data Memory (001011).
Wait T
Reset device to reset address counter before
reprogramming device.
Restore OSCCAL and BG bits.
ERA
ERA
To ensure system security, if CPD bit = 0,
step c) will also erase data memory.
.
.
DS41191D-page 19

Related parts for PIC12F675/ICD