Associate
November 3, 2017
Question
STM32F7 SPI HAL Driver very slow
- November 3, 2017
- 4 replies
- 1536 views
Posted on November 03, 2017 at 16:43
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.

yellow: SPI_CLOCK
green: GPIO_PIN_7
HAL_SPI_Receive(&hspi3, AD7980_RECEIVED ,2,1);
inter=0;
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.
Kind Regards
Alex
