Dear forum.
I am trying to use the ADS1015 and am reading data - however every so often (1 in 10) I receive data that is all 0xFF 0xFF instead of the expected (steady) voltage and a NAK is issued on the I2C.
I understand I need to wait the sampling time (1/3300 seconds ) for the fasted rate - I am using Bus Pirate and their I2C library to prototype this.
I am in continous convert mode - also I would expect the lower 4 bits to always be '0' but that is not always the case - I am concerned that I am reading the A/D when it is still converting.
Mm code is something like
write config word (0x42E0) to register 0x01
loop:
read CONVERT register (0x00)
wait (1/3300)
My question is - should I wait longer or is there a signal I could read (Bit 15 from CONFIG perhaps ) to see when to read - but that would increase my
i2c read times - the i2c bus speed of bus pirate is not overly fast so I am trying to avoid accesses if I can.
All the best.
Boris.