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
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