How do I specify the upper 8 bit of the 16 bit field
Posted: Fri Feb 06, 2009 12:03 pm
Hi all,
I am using PCWHD Version 4.073
I want to save a 16 bit address in the eeprom of a 18F2520. I understand write_eeprom(address, value) will write an 8 bit value at the address. How do I specify the upper 8 bit of the 16 bit field and then the lower 8 bits?
See my post in this thread. It has routines to save a word to eeprom.
This example is for external eeprom, but you can change it to use
internal eeprom by removing the word "ext_" from the function names.
http://www.ccsinfo.com/forum/viewtopic.php?t=27405
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