cancel
Showing results for 
Search instead for 
Did you mean: 

DMA Memory-to-Peripheral Clock

pedro
Associate II
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
3 REPLIES 3
pedro
Associate II
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.
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 Venmo Up vote any posts that you find helpful, it shows what's working..
Code Wrangler
Associate III