Other Parts Discussed in Thread: ADS131M08
Hello,
I am trying to read data from ads1218 ADC interfaced with Arduino Uno. When I have connected differential input (bridge: maximum 70 mV output )in AIN0 (+ve) and AIN1 (-ve), fosc=4Mhz,fmod=15.625kHz (fosc/256), PGA=1/2/128 etc ,decimation factor (default: 1920),sinc3 filter, unipolar format, I am able to read the data properly.
But when I am giving sine wave as an input in AIN0 (+ve) and AIN1 (-ve) with amplitude 1.25V and DC offset of +1.25V , frequency of 100Hz (fdata= 100Hz) so decimation factor= 15.625kHz/ 100Hz=156.25. Then value of MDEC0(LSB of decimation factor) is set to 0x38 (HEX) and MDEC1 is set to 0x71(HEX) with unipolar format, sinc 3 filter. Vref used is 2.5V. Output should come as sine wave with Vpp of 2.5 V but I am getting output always constant value of 2.5V. I have also checked the sine wave input in oscilloscope , input side it is fine. Please assist me in solving this issue.
Thank you
Regards
Sushmita Chaudhary