Thanks a lot for your answer! I am using continuous acquisition, so I am using RDATAC. I checked the SCLK with a oscilloscope and so I can know the current frequency. When the ADS gets stuck, I can send data (so CS is asserted and de-asserted) but the ADS does not respond through the MISO channel. The delay in detecting the DRDY can be variable (I am programming rpi in userspace and not in kernel space): I estimated it in around 10us with che SCLK @8MHz. The problem is that sometimes, when I set the channel acquisition @16kHz, the reading operation via SPI cannot be completed before the next DRDY assertion. This behavior produces wrong samples. Thanks again. Livio
↧