i am using write_eeprom function for the first time and am confused on how to use it.
In the program can i simply:
write_eeprom(10, 7); //to write 7 to location 10
or do i have to always use hex:
write_eeprom(0x0A, 0x07);
Also do to include anything else in order to write to the eeprom. by the way i am using a PIC16F873A.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Nov 15, 2005 12:30 am
You can use decimal if you want to, just be aware that on your PIC
the eeprom address (1st parameter) can go from 0 to 127, and
the data (2nd parameter) can go from 0 to 255.
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