CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

use of PROTECT in fuses

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bertronicom



Joined: 17 Nov 2004
Posts: 26
Location: University of Cantabria -SPAIN

View user's profile Send private message Send e-mail MSN Messenger

use of PROTECT in fuses
PostPosted: Thu Nov 18, 2004 10:25 am     Reply with quote

Can I program again my PIC once a time I've programmed with PROTECT?

After I've programmed with PROTECT ICDS verification isn't correct.
Ttelmah
Guest







Re: use of PROTECT in fuses
PostPosted: Thu Nov 18, 2004 10:52 am     Reply with quote

bertronicom wrote:
Can I program again my PIC once a time I've programmed with PROTECT?

After I've programmed with PROTECT ICDS verification isn't correct.

The 'full' answer, depends in part on the chip (most of the larger chips have multiple 'protection' fuses, affecting dfferent parts of the memory, and different operations).
However there are common features:
After read protection is enabled, the area of memory, returns a 'scrambled' version of the contained data, when read. Hence it will allways verify incorrectly. The recommended sequence is to program the chip, verify the code, then enable the protection sequence, and read the contents of the chip. In future, you can verify latter chips, by comparing them with this stored set of values.
Most of the reprogrammable chips, can be _erased_, using a high voltage erase only, once protection is enabled. The erase clears everything, including the protection fuse, allowing the chip to again be used. However a low voltage erase cycle, will not clear the protection fuse.
The whole 'point' of protection, is to prevent other people reading the code. If you could directly verify the code in a programmer, this would bypass what the fuse is trying to do.

Best Wishes
bertronicom



Joined: 17 Nov 2004
Posts: 26
Location: University of Cantabria -SPAIN

View user's profile Send private message Send e-mail MSN Messenger

PROTECT
PostPosted: Thu Nov 18, 2004 11:19 am     Reply with quote

I'm using PIC18lf252 running at 4Mhz at 3.3volts.

I'm trying to erase chip but verification and programming always fail.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Nov 18, 2004 12:41 pm     Reply with quote

Quote:
I'm using PIC18lf252 running at 4Mhz at 3.3volts.
I'm trying to erase chip but verification and programming always fail.

Read this thread.
http://www.ccsinfo.com/forum/viewtopic.php?t=20090
bertronicom



Joined: 17 Nov 2004
Posts: 26
Location: University of Cantabria -SPAIN

View user's profile Send private message Send e-mail MSN Messenger

erase PROTECT fuses
PostPosted: Fri Nov 19, 2004 5:48 am     Reply with quote

Thanks PCM programmer,

I'm looking myself removing PIC from the board.

I can't erase bulk PIC at 5volts because board is running at 3.3volts and the rest of devices (Bluetooth) will be died.

Big problem because all my boards are with smd PIC's.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group