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
EEPROM (need help)
Moderator: Benj
-
electron67
- Posts: 323
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 106 times
- Been thanked: 48 times
-
medelec35
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: EEPROM (need help)
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
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
- Attachments
-
- EEPROM 1.fcf
- (14.5 KiB) Downloaded 286 times
Martin
-
electron67
- Posts: 323
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 106 times
- Been thanked: 48 times