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

Problem with WRTD Fuse

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



Joined: 08 Nov 2004
Posts: 2

View user's profile Send private message

Problem with WRTD Fuse
PostPosted: Mon Nov 08, 2004 12:52 pm     Reply with quote

Hi all,

I'm trying to protect the eeprom on my 18F2220 rev b2 from external writes. I enabled the WRTD fuse, but this prevents the PIC from writes to eeprom using write_eeprom(), i.e. no matter what I write to it I get back 0xFF. Everything works fine when NOWRTD is set. The datasheet states that internal writes are enabled regardless of protection bit settings. What is the expected behavior of WRTD?

Thanks,

Larry
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Mon Nov 08, 2004 1:16 pm     Reply with quote

What do you mean with external write? Removing the chip and programming externally?
kt1



Joined: 08 Nov 2004
Posts: 2

View user's profile Send private message

PostPosted: Mon Nov 08, 2004 2:57 pm     Reply with quote

mvaraujo, the microchip datasheet explicitly says external write, so I'm assuming that there is a way to write to the EEPROM other than through the PIC, but I'm not sure how. I guess I should ask how can one write to the PIC's EEPROM other than through the PIC's intructions, i.e. write_eeprom(), and how can I eliminate this from happening.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Mon Nov 08, 2004 3:01 pm     Reply with quote

Quote:
I guess I should ask how can one write to the PIC's EEPROM other than through the PIC's intructions, i.e. write_eeprom(),


External Programmer or ICD
Guest








PostPosted: Mon Nov 08, 2004 3:26 pm     Reply with quote

Answered!
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