PIC code protection

Thread Starter

R!f@@

Joined Apr 2, 2009
9,918
I was told that I cannot copy a code protected PIC.
Question:
1. If I program a PIC with code protection enabled, the code is protected from copying by a second party ? right ?
2. If I program a PIC with code protection enabled, will I be able to erase it and program it again after modifying the code ?
 

joeyd999

Joined Jun 6, 2011
5,283
I was told that I cannot copy a code protected PIC.
You can.

1. If I program a PIC with code protection enabled, the code is protected from copying by a second party ? right ?
Yes.

2. If I program a PIC with code protection enabled, will I be able to erase it and program it again after modifying the code ?
Yes.

One thing you cannot do is in-circuit debug with the code protect bits set. I usually add a directive to automatically un-set the protection bits if I am building in debug mode. This way, I don't have to remember to set them when I build for release.
 
Top