Menu

EEPROM help

Help
2008-04-15
2013-05-30
  • Weirdscience

    Weirdscience - 2008-04-15

    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

     
    • kent_twt4

      kent_twt4 - 2008-04-15

      I think you need to dimension Fdelay, and Cont as words for ReadAD10(A0) to work.

       
    • Weirdscience

      Weirdscience - 2008-04-15

      That has been done, the delays work as expected when just reading the A/D but not when reading from EEPROM
      Craig

       
    • Hugh Considine

      Hugh Considine - 2008-04-15

      Could you please post your entire program?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.