Skip to main content
Graduate II
December 13, 2023
Solved

Configure ADC sampling frequency STM32H723ZG

  • December 13, 2023
  • 1 reply
  • 1182 views

Hi All,

I am using a STM32H723ZG Nucleo board. I am using the ADC in 8-bit mode. The clock is set to 96 MHz, and according to the application note it should use 6 cycles to sample and convert which would result in 16 Msps, but it seems to be between 8 and 9 Msps when measure with oscilloscope. (8.33 Msps) Application note. However I want the frequency to be at 8-bits set to exactly 5 Msps. 

If I would follow the application note:

- frequency set to 30 MHz --> 30/6 = 5 

However I see there are settings as following:

elso_0-1702459071410.png

So now I am confused on what settings to configure to get 5 Msps sampling frequency while keeping the CPU clock at 550 MHz. 

Someone knows the best way to make sure the ADC sampling speed can be precisely configured?

Best regards!

    This topic has been closed for replies.
    Best answer by Tinnagit

    you can use timer to trigger ADC sampling to set to 5Msps.

    And you should set ADC sampling time + ADC conversion time less than half of period time of each trigger by timer. 

    1 reply

    TinnagitAnswer
    Graduate II
    December 13, 2023

    you can use timer to trigger ADC sampling to set to 5Msps.

    And you should set ADC sampling time + ADC conversion time less than half of period time of each trigger by timer.