This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS131M04EVM: Unable to read and write the registers.

Part Number: ADS131M04EVM
Other Parts Discussed in Thread: ADS131M04

Hi,
I have connected the ADS131M04 ADC to a Raspberry Pi, with the ADC powered from the RPi supply. I am trying to read and write registers over SPI, but I am consistently receiving 0x050F or 0x0500 as the response word, which appears to be the STATUS register instead of the expected response.


SPI config:
1. Using "pigpio" to interact with gpios
2. SPI_bus:  0,
3. SPI_dev: 0
4. Baud rate: 8 Mhz


read_register:
1. Build RREG command
2. FRAME 1 → send RREG command
3. FRAME 2 -> Read response
4. Parse response

write_register:
1. Build RREG command
2. Add register data words
3. Pad remaining words to complete frame
4. FRAME 1 → send WREG command + data (5 word frame)
5. FRAME 2 → Read WREG response

Observed issue:
Instead of valid responses, I consistently receive: 0x050F or 0x0500 
This appears to be the STATUS word 
Suggests the ADC is continuing to output conversion data or the command is not being recognized.
Kindly help me with the right init sequence for this.

Attaching the file used:
adc.txt 


  • Hi Shreya,

    Welcome to TI E2E forum. 

    Your command was not recognized by ADS131M04 ADC, something in your timing is incorrect. Is it possible for you to capture and show a scope shot of CS, SCLK, DIN and DOUT all at the same time? below is a correct timing to read CFG register which was already written with 0x0700 data to ADS131M04 in the previous frame. Please note that ADS131M04 shifts out the register data in the next frame.

    BR,

    Dale