Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The pic16f628 will be totally unusable if I activated the code protection bit?
I won't be able to program it anymore?
No, you just erase it and use it again - however, there seems no reason to set the protection bits, so why bother?.
I'm probably being naive here, but I thought that the code protection bits stopped the code being read by a programmer? Doesn't that make it more difficult for someone to read and steal the code on the PIC?
Whenever I have set the protection bits, the programmer shows all the code as zeros, even when the code can still run.
There are agencies elsewhere, who are able to reverse engineer and retrieve the code, even if locked. Perhaps they charge for their service (may be more than the cost of new program). But in general, code protection is useful to some extent to hold piracy of the resident software.Yes, that is the whole idea behind code protection, so I don't think you are naive at all.
There have been people who claim to have foiled this, but I think it is very difficult to do, even when using destructive methods. I read, just yesterday, on a Microchip app note, their disclaimer concerning this. I wish I could find that app note, I'd take a quote from it.
I'm probably being naive here, but I thought that the code protection bits stopped the code being read by a programmer? Doesn't that make it more difficult for someone to read and steal the code on the PIC?
If you're sellling pre-programmed chips it obviously makes sense to code protect them, to help reduce piracy. However, if you're NOT selling them, then why code protect for no reason?.
In that case it's unlikely you would want to erase the chip and use it again anyway, you'd just sell the customer a new chip