Other Parts Discussed in Thread: ADS1118
I had ADS1119 in one of my project. I noticed that I can read the AIN0 data when I used AIN3 address, and AIN0 address gives AIN3's data. I have tried to troubleshoot by myself, I couldn't find any issues. Any advise will be helpful.
Here is my schematic, only AIN0 and AIN3 are being used currently. AIN0 is supposed to give back the reading from J10.
Here is the address for each channel in the datasheet
Here is the address definition, and the function in my code
However, I found that if I put the get_AIN0, I will get AIN3 channel's ADC data. Any ideas what is wrong here?
Thanks,
Charles