I just finished assembling my ADS131M08 circuit and i would like to test if the circuit assembly is correct. This is also a first prototype so a lot could go wrong in the circuit design stage. I was hoping if i could ask some help for a bare minimum of spi transaction to get an expected response from the adc. When I skimmed the example codes i estimated it would take me 2-3 days to make a functional code. This also helps me eliminate the headache of debugging later on if its the code not working or the hardware.
import spidev spi = spidev.SpiDev() spi.open(0,0) spi.max_speed_hz = 10000000 spi.mode = 0b01 # [CPOL|CPHA] to_send = [0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA] # placeholder values expected_reply = [0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0] # placeholder values reply = spi.xfer2(to_send) print(expected_reply) print(reply)
The current setup uses and external 8.192Mhz Clock. I can confirm that i the circuit pulls the DRDY when the clock is applied, i just have to check if the SPI works.
I do apologize for the "spoon feeding" type of question, i just think this would help me move on with the hardware portion earlier.