Why is HAL_ADC_Start Taking Longer Than Expected on STM32F446RE and How Can I Reduce Its Duration?

hello everyone , When I used the ADC in the STM32F446RE and configured it using STM32CubeMX with the settings shown in the image, and with a clock frequency of 180MHz and APB2 frequency of 90MHz, I tried to measure the duration of the ADC conversion. I set the pin high before the ADC conversion and then reset it low afterward to calculate the duration of time it was high using an oscilloscope. I found that the duration was approximately 50μs, which is higher than expected. I tried to find the reason for this prolonged conversion time, but I couldn't identify the cause. However, I noticed that the function HAL_ADC_Start is the one taking a long time. Can anyone help me understand the reason for this and how to reduce its duration?
attachment 0
Solution:
The prolonged conversion time may be due to a combination of factors such as ADC clock speed, resolution, sampling rate, and number of channels. Try increasing the ADC clock speed, reducing resolution, decreasing sampling rate, or using fewer channels to reduce the conversion time.
Jump to solution
1 Reply
Solution
Joseph Ogbonna
Joseph Ogbonna2mo ago
The prolonged conversion time may be due to a combination of factors such as ADC clock speed, resolution, sampling rate, and number of channels. Try increasing the ADC clock speed, reducing resolution, decreasing sampling rate, or using fewer channels to reduce the conversion time.