Hello, I cannot figure out why my digital output is always 0.
I am using an Arduino to read, but have verified readings/writings with a serial analyzer. Each output has a pull up resistor of 4.7k, A0 and A1 have pull down resistors only. My inputs are differential, where v in is between 0.5 and 1v, and come from the output and reference of an instrumentation amplifier (INA2331). First tried using In0-In1 and In3-In2, then tried switching them to IN4-In5 and In7-In6. My code can read the registers, and all values written are read back correctly. This is what my code does:
SETUP:
1. wait until Busy status (adr xC) reads 00
2. To Advanced Config Reg (adr xB) write 0x4, to set mode 2 and use internal Vref
3. To Conversion Reg (adr x7) write 0x1, for continuous conversion
4. to Channel Disable Reg (adr 0x8) write 0, to enable all channels
5. to Limits Reg (adr. 0x2E and 0x30) write 0x5, to set the limit of each my diff inputs to 5V
6. to Config Reg (adr0x0) write 0x0B, to clear interrupt, enable interrupts, Start conversion
At this point I read all the regs and confirm they were written properly.
Loop:
1. read diff ch 3 (adr 0x22), read 2 bytes
2. read diff ch 4 (adr 0x23), read 2 bytes
3. read interrupt status reg (adr. 0x1) read 1 byte
4. delay 500ms and repeat
All readings are 0.
Can anyone see a problem in my setup? I tried changing the input channels, I even tried using a second chip, but I always get 0, not even the interrupts are helping. Any help is appreciated!