Ronald123
- 8th January 2008, 18:15
I use the 18F2550
The configuration settings of my application are arranged in de Eeprom of the PIC. At the beginning of my application the complete Eeprom information is copied (read) to an Array (255).
Part of my application
DATAEEPROM VAR BYTE[255]
I var byte
I=0
FOR I=0 TO 255
READ I,DATAEEPROM[I]
NEXT I
I found out the the information in DATAEEPROM[0] is always 0. However the data at this position is 255 (FF). I found out the location 0 of the Array is causing the problem.
when I change
READ I,DATAEEPROM[I]
to
READ I,DATAEEPROM[I+1]
however then I'll get problems with the last position.
Does somebody knows what I'm doing wrong?
The configuration settings of my application are arranged in de Eeprom of the PIC. At the beginning of my application the complete Eeprom information is copied (read) to an Array (255).
Part of my application
DATAEEPROM VAR BYTE[255]
I var byte
I=0
FOR I=0 TO 255
READ I,DATAEEPROM[I]
NEXT I
I found out the the information in DATAEEPROM[0] is always 0. However the data at this position is 255 (FF). I found out the location 0 of the Array is causing the problem.
when I change
READ I,DATAEEPROM[I]
to
READ I,DATAEEPROM[I+1]
however then I'll get problems with the last position.
Does somebody knows what I'm doing wrong?