Hi, I am using Keil and STM32F769I-Eval board.
I try to readout a sensor with an external ADC (AD7980). The signal I try to convert runs with 200kHz.
I generate with a timer every 5us an interrupt. With the interrupt I start the ADC and want to read back the values.
But after the end of the SPI transmission, there is a gap of 3.3us. This gap is to long. So I only get every second value.
HAL_SPI_Receive(&hspi3, AD7980_RECEIVED ,2,1);
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_7, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_7, GPIO_PIN_RESET);
This is the code behind the scope above.
Is there a way to make this gap smaller?
I looked for a way to write my own routine to receive data. But I wasn't successful.