• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F84A Code Protect

Status
Not open for further replies.

gatas

New Member
Hi there...
I ve recenlty built a ludipipo-kind of programmer named jdm...After burning the chip 4 or 5 times using the icprog software i decided to use the code protect feature...After burning the chip with code protect enabled and i read it i get all the memory filled with zeros, as expected...
But when i try to erase it, change its configuration, or even re-burn it with another piece of code, things dont work....

So is the Code Protect permanent? Or there is a programmer malfunction?Shouldnt the pic be erased altough it is code protected?....

Thanx in Advance....
 

TheAnimus

New Member
EPROM, EEPROM
big differnce
Electrically Programable Read Only Memory.
rom that can be programed, big thing is, it can only be cleared, not set.

Electrically Erasable/Programable Read Only Memory.
rom that can be programmed, but it can also be cleared. A specail type of this memory is flash EEPROM these PICs have the F in their name
ie. 16F84A

those with a C are OTP or One Time Programable.

Hope that clears some things up
 

gatas

New Member
Yeah i get it...
So in PIC16F84A i can clear the Code Protect bits/reprogram it without protection, since it has a flash memory, right?
So the programmer/software is faulty, right?

Very close to understand it.....
Thanx....
 

TheAnimus

New Member
In a word probably :p
The code protection can normally be taken off by blowing the fuses again with the corespondant code protection bits off. Its also of metrit to mention that code protection only stops reads, not writes neciscerraly, so if you are storing passwords or there stuff that a cracker might want, make sure they can't add a NOP in a certain place and find the information!
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top