Page 1 of 1

EEPROM (need help)

Posted: Fri Feb 24, 2012 6:15 pm
by electron67
Hi, yesterday write wrong the problem :
I want write 1 number of 2 digit in the EEPROM with KEYPAD, I use a KEYPAD 3x4 to write, for ejemple the number 23 and the diplay LCD show correct, but in the EEPROM write only one digit the number 3.

THANK YOU

Re: EEPROM (need help)

Posted: Fri Feb 24, 2012 7:17 pm
by medelec35
Hi electron67, Since I could not open your flowchart with FC4 then as you have FC5 have you looked here to register for V5 section:
http://www.matrixmultimedia.com/mmforum ... =46&t=9958

I have altered your Flowchart so if 23 is entered then 23 is wrote to EEPROM.

One thing to remember if number you are writing to or reading from EEPROM is 0 to 255 i.e. a byte, then you can directly read or write to EEPROM

You only need to split values into bytes which are not in the range of 0 to 255 e.g -23 +456 etc. when writing to EEPROM which will require two memory locations.

Or when reading a number from EEPROM which was created with a variable that is larger than a byte e.g integer, you need to retrieve from more than one memory location and combined back in to integer .

Hope I have been clear enough with my explanation. :)

Martin

Re: EEPROM (need help)

Posted: Fri Feb 24, 2012 10:32 pm
by electron67
Thank you ! :D