Hello everyone!
I'm using the EVAL-AD7124-8-PMDZ with an STM32L552ZET Nucleo Board. I've used the code from https://github.com/analogdevicesinc/no-OS/tree/main/projects/ad7124-8pmdz and adapted the code to work with the boards SPI connection. Basically the SPI connection is working, I can alter channel setup, power mode, etc. I'm using the standard settings of the device, with channel 0 enabled and continuous conversion.
With a timer I'm trying to obtain the values from the ADC with 100 Hz. However, the sampling only works for the first time. When trying to obtain a sample for the second time, nothing happens. While debugging I found that that during the function call of "ad7124_wait_for_conv_ready" the RDY bit in the register is not reset. I have tried different conversion and power modes which also didn't help.
Could provide help regarding issues which can cause this behaviour?
I have connected P1 according to https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-ad7124-8-pmdz and the voltage is 3.3V from the Nucleo board.
Thanks,
Jakob