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
Tell us what do you have done so far.
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.
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
this project with stm32f107vc
Ok, then you'll need to review the RM0008 manual, and adapt the code to suit. The concepts remain the same.
tnx my friend
i read rm0008 but im confused its my home work and very important to learn
can u write this project with stm32f107vc?
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.
ok my friend tnx
Retrieving data ...