View previous topic :: View next topic |
Author |
Message |
kt1
Joined: 08 Nov 2004 Posts: 2
|
Problem with WRTD Fuse |
Posted: Mon Nov 08, 2004 12:52 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
mvaraujo
Joined: 20 Feb 2004 Posts: 59 Location: Brazil
|
|
Posted: Mon Nov 08, 2004 1:16 pm |
|
|
What do you mean with external write? Removing the chip and programming externally? |
|
![](templates/subSilver/images/spacer.gif) |
kt1
Joined: 08 Nov 2004 Posts: 2
|
|
Posted: Mon Nov 08, 2004 2:57 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Nov 08, 2004 3:01 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Mon Nov 08, 2004 3:26 pm |
|
|
Answered! |
|
![](templates/subSilver/images/spacer.gif) |
|