PDA

View Full Version : WRITE isn't working anymore ... HELP !



BigWumpus
- 5th September 2005, 11:49
I'm working on a project with an 18F252.
Last week or so, the programm was able to write to the EEPROM.

f.e.:
PWM_LCD CON 10

GIE=0:WRITE PWM_LCD,1:GIE=1


But since a few days, it doens't work anymore.

Now I've checked all configuration-bits, but there is no problem, because writing to the eeprom couldn't be inhibited by configuration...

Is there any know (hardware or software) possibility to make this ?

I've used several PICs, and all have the same problem...

sougata
- 5th September 2005, 12:33
Hi there ,

Have you code protected the chip by witing $00 in the 5L config registor ? I don't know exactly why but a fully code protected chip fails to write into the EEPROMs. According to the manual there shouldn't be any problems protecting the data memory also. Might be its the table write or read issues of the Pbasic library loaded into the top of the program memory that causes this anomolly. Just leave the boot block (the first 512 bytes) unprotected (see the config bits register 5 in the PIC 18Fxx2 manual) and your problem should be solved.

Let us know if it worked.

Regards

Sougata

BigWumpus
- 5th September 2005, 13:12
Nearby...

I have to turn off the codeprotection for the bootblock...
unbeliveble !