cancel
Showing results for 
Search instead for 
Did you mean: 

led blink with dma with out cpu

HAMID SHEYBANI
Associate II
Posted on February 26, 2017 at 13:06

hi everybody I want to do the project on and off for LEDs with dma and timer Without engaging the CPU's but i cant some body help meor give me sample from this

10 REPLIES 10
Posted on February 26, 2017 at 13:47

Homework?

Tell us what do you have done so far.

JW

Posted on February 26, 2017 at 16:58

Determine which part you are using, review the Reference Manual, this will provide the associations between TIM and DMA channels/streams. Set the TIM to the update periodicity. Set the DMA for MEM-to-MEM from a pattern buffer to GPIOx->BSRR. Fill the pattern buffer, with the bits you want turning on and off at the time interval.

It's not really your project if I have to write it. Examples of TIM+DMA+GPIO have been posted to the forum, search historical posts.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 26, 2017 at 18:45

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 26, 2017 at 18:27

hi my friend

its my home work

your explain its true and a wana dothis project but i cant

i cant find this project in historical post

would u do me a favor and send me this project

tim+dma+gpio

Posted on February 26, 2017 at 18:46

this project with stm32f107vc

Posted on February 26, 2017 at 18:49

Ok, then you'll need to review the RM0008 manual, and adapt the code to suit. The concepts remain the same.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 26, 2017 at 19:34

tnx my friend

Posted on February 27, 2017 at 09:16

hi my friend

i read rm0008 but im confused its my home work and very important to learn

can u write this project with stm32f107vc?

Posted on February 27, 2017 at 17:08

I could, but it's not my job. I learn nothing from doing this.

Your professor presumably thinks he's taught the subject sufficiently for you to do this yourself, if he has not you should discuss this with him.

Break the problem into smaller pieces. Get a timer working, use the interrupt to toggle a pin at a desired frequency. Use the timer toggle mode to toggle a pin itself. Then use the TIM to trigger a DMA action.

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