Skip to main content
pedro
Associate III
May 9, 2015
Question

DMA Memory-to-Peripheral Clock

  • May 9, 2015
  • 3 replies
  • 800 views
Posted on May 09, 2015 at 20:26

Hi, I'm trying to set DMA2 to do a Memory-to-Peripheral trasfer from memory to GPIOB.

 

But now, I'm stuck with a problem since I want to configure the DMA transfer speed to 1/8 of the Bus clock(168Mhz). Is there any way for me to achieve that?

I also need this transfer not to be delayed by some other processing, that's why i'm using DMA.

If it's not possible to configure the speed at which the transfers occurs, is there any other way to achieve this?

Thanks a lot.

Edit:

Edited to remove code and  change title
    This topic has been closed for replies.

    3 replies

    pedro
    pedroAuthor
    Associate III
    May 9, 2015
    Posted on May 09, 2015 at 20:52

    I'm I right assuming GPIO is a peripheral?

    It does not show on DMA request mapping but it has a clock for itself.
    Tesla DeLorean
    Guru
    May 10, 2015
    Posted on May 10, 2015 at 04:47

    You don't increment the Peripheral address. You removed the code, but I did see it earlier.

    If you want to pace the transfer use a TIM, and the channel/stream associated with it and the DMA unit. The associations for the DMA triggers are listed in a table in the reference manual.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Code Wrangler
    Associate II
    October 2, 2017