I am trying to save the result of a 10bit A/D in EEPROM then read it back and it does not work.
This is what I have
Fdelay = ReadAD10(AN1) Cont = ReadAD10(AN0) EPWrite (0,Fdelay) EPWrite (1,Fdelay_H) EPWrite (2,Cont) EPWrite (3,Cont_H)
EPRead (0,Fdelay) EPRead (1,Fdelay_H) EPRead (2,Cont) EPRead (3,Cont_H)
These are both delay variables. Any help would be greatly appreciated.
BTW GCBasic is the BEST!
Craig
I think you need to dimension Fdelay, and Cont as words for ReadAD10(A0) to work.
That has been done, the delays work as expected when just reading the A/D but not when reading from EEPROM Craig
Could you please post your entire program?
Log in to post a comment.
I am trying to save the result of a 10bit A/D in EEPROM then read it back and it does not work.
This is what I have
Fdelay = ReadAD10(AN1)
Cont = ReadAD10(AN0)
EPWrite (0,Fdelay)
EPWrite (1,Fdelay_H)
EPWrite (2,Cont)
EPWrite (3,Cont_H)
EPRead (0,Fdelay)
EPRead (1,Fdelay_H)
EPRead (2,Cont)
EPRead (3,Cont_H)
These are both delay variables. Any help would be greatly appreciated.
BTW GCBasic is the BEST!
Craig
I think you need to dimension Fdelay, and Cont as words for ReadAD10(A0) to work.
That has been done, the delays work as expected when just reading the A/D but not when reading from EEPROM
Craig
Could you please post your entire program?