Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 26th August 2008, 08:35 PM   #1
Default Fast Question (regarding code protection and pic16f628a)

The pic16f628 will be totally unusable if I activated the code protection bit?

I won't be able to program it anymore?
mabauti is offline  
Old 26th August 2008, 10:34 PM   #2
Default

No, you just erase it and use it again - however, there seems no reason to set the protection bits, so why bother?.

But what you must NEVER, EVER do is set code protection bits on expensive UV eraseable PIC's, it does render those unuseable.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 26th August 2008, 11:42 PM   #3
Default

Quote:
Originally Posted by mabauti View Post
The pic16f628 will be totally unusable if I activated the code protection bit?

I won't be able to program it anymore?
The pic16f628 is flash, so just reblow the fuses.
__________________
Regards,
William Mullaney

"HOPE for the best, EXPECT the worst, ACCEPT whatever comes."

http://wiliamsville.myminicity.com/
http://wiliamsville.myminicity.com/ind/
http://wiliamsville.myminicity.com/tra/
http://wiliamsville.myminicity.com/sec/
wmmullaney is offline  
Old 27th August 2008, 10:48 PM   #4
Default

Quote:
Originally Posted by Nigel Goodwin View Post
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.
Diver300 is offline  
Old 27th August 2008, 11:56 PM   #5
Default

Quote:
Originally Posted by Diver300 View Post
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.
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.
BeeBop is offline  
Old 28th August 2008, 04:42 AM   #6
Default

Quote:
Originally Posted by BeeBop View Post
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.
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.
__________________
Regards,
Sarma.
mvs sarma is online now  
Old 28th August 2008, 09:17 AM   #7
Default

Quote:
Originally Posted by Diver300 View Post
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
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 28th August 2008, 01:54 PM   #8
Default

Quote:
Originally Posted by Nigel Goodwin View Post
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
I'm selling devices that contain PICs. They are surface mounted. It is far easier to reprogram in situ than to change the chip. I can still sell my new program.

I never code protect stuff that isn't being sold.
Diver300 is offline  
Reply

Tags
code, fast, pica, protection, question

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
PIC code protection arhi Micro Controllers 2 29th April 2008 12:50 AM
Code Protection penoy_balut Micro Controllers 8 24th October 2006 08:41 AM
Bootloader + code protection Dan East Micro Controllers 1 20th January 2006 10:27 PM
Need help!!! Read 64 bit manchester code using PIC16F628A ct82 Micro Controllers 3 15th August 2005 01:47 AM
Code protection jmantilla Micro Controllers 3 2nd September 2004 09:33 AM



All times are GMT. The time now is 05:15 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker