Menu

Software I2C Master

2007-03-21
2013-05-30
  • Nobody/Anonymous

    Just checking to see if anyone has implemented Steve Bell's software I2C master routine?  Have been able to write and read to a 24LC256 eeprom no problem.  But have encountered some hiccups/glitches when doing sequential writes, like, loading data with a loop.  For instance, when reading back values the data might look like:

    0 1 2 3...13 15 15 16...27 31 31 31 31 32...45 47 47 48...

    Have changed address locations thinking maybe there were some bad sectors, or something, and had similar but not quite predictable results.  Also changed up the waittime periods to longer and shorter periods to no avail.

    Anybody with these problems?, or maybe its just my code.

    Regards,
    Kent

     
    • Nobody/Anonymous

      O.K. went with the pullups on the SDA and SCL lines, and no more problems.  Steve Bell's code, modified for pullups, is in the contributor section.

      Kent

       

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.