Hi,
After more testing I have found out that using the DATA and EEPROM command are not writing the value to the EEPROM. Below is test code to see if the value I want to place in EEPROM is written to it. Unfourtantly it doesnt work and doesnt work with any value. Looking at the manual it said that you need to do the READ and WRITE command in seperate bytes since I am using words to hold values larger than 255.
Here is the example code:
Delay var word
EEPROM 0, [1500]
read 0, Delay.BYTE0
Read 1, Delay.BYTE1
if Delay = 1500 then
goto loop
else
goto Flash
endif
Flash:
high PORTB.3
pause 500
low PORTB.3
pause 500
goto flash
''Start of program!
Loop:
'Run program
No matter what number I try to use for the EEPROM command the light will always go to the flash loop saying that it isnt reading the same value.
~Michael
Bookmarks