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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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