I am using a CCS compiler and trying to write to the internal eeprom of an 887. But every time i write to the eeprom I have to give a reset_cpu command. I am pretty sure the processor is still working as the wdt is not tripping. So i think its the rf. I have even tried to re initialize after the write eeprom and also tried keeping rf in reset then reinitializing. But nothing. i have been trying to work around this for a very long time. Any help would be greatly appreciated.. Thanx
If it doesn't work, then post your compiler version.
curt2go
Joined: 21 Nov 2003 Posts: 200
Posted: Wed Mar 23, 2011 1:01 pm
i have used this chip before on other projects and do not have trouble with the actual writing or reading.. But for the RF interface it uses SPI. So I am thinking it is screwing that up some how. I have tried reading from the MRF device and I still can.. I am at a loss..
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Mar 23, 2011 1:09 pm
Comment out the "guts" of each MRF driver routine, so that each driver
function is largely empty. If it is supposed to return a value, then put in
a line of code to return a nominal value. Then run your program and
see if it still fails.
curt2go
Joined: 21 Nov 2003 Posts: 200
Posted: Fri Mar 25, 2011 8:55 am
I changed to a 16F1937 chip. I planned on moving to this series anyways. Same code works fine. I can write_eeprom all I want and everything still works fine. Not sure what was going on but now it does not matter to me. Thanks for trying to help. TTY
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