0
\$\begingroup\$

I'm trying to interface an ADS1115 to a MAX10 FPGA.

I've managed to start reading from the ADS1115, but I'm facing another problem as of now. Even when I connect A0 to 3.3 V I'm reading junk i.e. constantly fluctuating values from as low as 500 to 63000 from the conversion register.

Any help would be much appreciated.

\$\endgroup\$
1
  • 3
    \$\begingroup\$ Use a logic analyzer to verify the timing of your HDL with that of the datasheet, always do this even if you think you have it working \$\endgroup\$
    – Voltage Spike
    Commented Oct 27, 2017 at 15:14

1 Answer 1

1
\$\begingroup\$

Yes, it is possible. See p22 of the datasheet, and Figure 37. Be aware though that if you are not writing to the register in the first place, it is probable that you have an error in your I2C interface and so also won't be able to read back either.

Table 8 shows all registers are fully read/write.

\$\endgroup\$
8
  • \$\begingroup\$ I need to read 16 bits of config register not hi, lo thresh Register. \$\endgroup\$
    – Zuzu
    Commented Oct 27, 2017 at 14:35
  • 1
    \$\begingroup\$ See Table 8 of the datasheet - all registers are read/write. \$\endgroup\$
    – awjlogan
    Commented Oct 27, 2017 at 14:50
  • \$\begingroup\$ Due to some reason, I am not able to read continuous conversion from it.I am getting a constant value of 255 from the I2C read. Is there any particular way I need to configure this board in my program? It would be very appreciable if you could also suggest a probable alternative to this ADC-I2C board which is pre-configured or at the very least isn't as complex as this. \$\endgroup\$
    – Zuzu
    Commented Oct 27, 2017 at 15:16
  • \$\begingroup\$ P.S I have already configured the config register to my needs. Any help on what order of passage i need to pass the bytes will be very helpful. \$\endgroup\$
    – Zuzu
    Commented Oct 27, 2017 at 15:18
  • 1
    \$\begingroup\$ You'll need to be more specific in terms of what you are asking, as there are many things that can cause issues when using these interfaces. For example, are you using an I2C IP block, or did you make your own? This is about as simple as it gets for I2C, and I don't know your application so can't recommend any other ADCs. \$\endgroup\$
    – awjlogan
    Commented Oct 27, 2017 at 15:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.