cancel
Showing results for 
Search instead for 
Did you mean: 

Using DMA to load TIMx CCRy

pulaskite
Associate
Posted on August 16, 2014 at 22:34

I'm trying to find an example of loading the next timer delay via DMA.  I want to sweep a square wave over a range of frequencies and this looks as if it might be able to do it very neatly.

Assembly preferred as I'm using forth, but any discusion would help. 

I'm using an STM32F4Discovery board if that matters.

Thanks,

Reg
1 REPLY 1
Posted on August 17, 2014 at 01:43

It's important to review the reference manual to understand what timers and channels associate with which DMA units, channels and streams.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/STM32F4%20PWM%2BDMA%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=395]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FSTM32F4%20PWM%2BDMA%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=395

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