Skip to main content
Graduate
April 12, 2024
Question

NUCLEO-G474RE ADC Clock

  • April 12, 2024
  • 1 reply
  • 2172 views

I have a couple of questions regarding the ADC clock on the board in the subject.

What is the default clock speed and where is the clock configured?

All I see in the documentation is that the clock is independent from the AHB clock, but I don't see where it is actually configured.

Also, the ClockPrescaler lets me choose between Synchronous and Asynchronous. What is the difference in this context. Is synchronous referring to the main system clock?

    This topic has been closed for replies.

    1 reply

    Super User
    April 12, 2024

    see rm:

    AScha3_0-1712936184304.png

    > choose between Synchronous and Asynchronous

    Sync = to the AHB bus , its connected to; Async = the ADC clk in clock tree , you can set.

    >I don't see where it is actually configured.

    You should see in CubeMX, what you choose. :)

    AScha3_1-1712936520330.png

     

    >What is the default clock speed

    ---> read ds, max. clk is there; what you set it then, is up to you - or what you need.

     

    tomm5771Author
    Graduate
    April 17, 2024

    Is the ADC clock the same thing as the sampling rate?

    Super User
    April 17, 2024

    No no .

    Read in rm ...

    ADC clk is needed to run the ADC at all, up to the maximum clk, see ds for this and your cpu.

    Sampling rate then is to adjust the sampling time (for every input possible) and if /how often you call it to convert,

    -> giving the effective saple rate..

    Or use a timer -> to get a certain fixed sample rate (and store data by DMA).