Skip to main content
Alexandre T
Associate III
October 23, 2017
Question

DMA clock frequency

  • October 23, 2017
  • 7 replies
  • 1871 views
Posted on October 23, 2017 at 11:54

Hello,

Is it possible to change the DMA clock frequency ? 

If so, how to do that ?

(STM32L071)

    This topic has been closed for replies.

    7 replies

    Alexandre T
    Associate III
    October 24, 2017
    Posted on October 24, 2017 at 17:02

    No idea ?

    Tesla DeLorean
    Guru
    October 24, 2017
    Posted on October 24, 2017 at 17:14

    To what, from what? The DMA clock comes from the AHB/APB.

    You can use a TIM to trigger DMA transfers, and set that to whatever rates the TIM affords.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Alexandre T
    Associate III
    October 24, 2017
    Posted on October 24, 2017 at 17:21

    Yep I know that it comes from the AHB/APB.

    I'm using the DMA to collect accelerometer datas.

    The problem is that the DMA speed is faster than my accelerometer refresh rate and I want to avoid memory waste.

    So, the goal is changing the DMA clock frequency is to adapt it to my accelerometer frequency.
    Tesla DeLorean
    Guru
    October 24, 2017
    Posted on October 24, 2017 at 17:29

    It is generally undesirable to throttle the bus clocks as this will slow the entire system down and increase bus contention and delays.

    Pace the acquisition of data from the accelerometer with a TIM

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..