Hii,
I’m using ADS131A02 in my design, it’s hooked up to a Raspberry pi 0 and i’m having some troubles while getting the data.
Some details about my implementation,
-
M0-High, M1 and M2 are Low. Hence configured to 24bit word, Asynchronous interrupt mode.
-
AIN1N and AIN2N are connected to AGND
-
Avdd is connected 3.3 V from Rpi.
-
VNCP is tied to AGND.
-
XTAL2 is tied to 16.384 Mhz crystal oscillator
-
Fixed word size disabled, no CRC(checked in 0x0c register).
-
Internal reference of 2.44 is enabled.
I am able to get correct response for all the commands, However, the RREG(STAT_1) keeps giving me two errors for every sample: F_ADC and F_SPI bits are set. Following the datasheet, I read the STAT_P and STAT_N registers to see which channels are exceeding the threshold and I get a 0x03 in return for both of them, meaning that all channels are exceeding the positive and negative inputs.
Regarding the SPI, when I read the STAT_S register, it is telling me that I have an error with F_FRAME ie., Not enough SCLKs are sent per frame.
Can you help me to get rid of these errors??