Hello everyone,
I have been focusing on a simple project that gets the values from the keypad and saves them to the eeprom. However, when the value reaches decimal 255, I can not save the value. Do you recommend any way?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed Jun 03, 2009 5:20 pm
A value of 255 shouldn't be a problem, see also the example program ex_intee.c
Values larger than 255 don't fit into a byte and here you have to cast the address pointer to an int8 pointer. See the chapter 'How do I write variables to EEPROM that are not a byte?' in the CCS manual, page 306.
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