Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Password protection for PIC microcontrollers

Status
Not open for further replies.

sana_akhtar

Member level 2
Joined
Apr 21, 2012
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,606
Hello,

How do we apply password to PIC so the no one else can cheat it? And in case someone else has done this, is there a way to break into the password?

Thanks
 

Cheat what?

If you mean a password to protect the program inside the PIC so it can't be read, No, the protection is done electrically when the program is 'burned' into it. There is no password, the only way to UNprotect it is to erase the protection bit and that erases the program at the same time.

Brian.
 

Cheat = copy the code.

no other way to retrieve the code without it being erased?
 

All PIC processors have copy protection bits which you can program to make the device unreadable. All you do is set the bit while programming and from then on the internal memory cannot be read from outside the PIC. The erase command is the only way to unset the copy protection bit and it also erases the code memory as well so it still isn't copyable.

Brian.
 

Whatever you do, still there is a chance that with slight extertise, someone might replicate the exact memory of ur pic to his hardware and thus there will be no need to get ur code as it is just like creating mirrors of ur device. However decompiling this memory or hex code is a challenge for most people..

- - - Updated - - -

However if you wish to protect ur system, you may apply for a patent so that even if anyone tries to use it, you can legally sue that person for using ur technology..
 

To protect your code in the pic,you just set the configuration fuses in the code
__config ...... &_CP_ON.the cp_on means code protect ON.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top