cancel
Showing results for 
Search instead for 
Did you mean: 

Software trigged DMA!

mikael239955_stm1_st
Associate III
Posted on August 15, 2015 at 08:09

STM32F103C8

What is the proper setup of a software trigged DMA? Or how do one setup TIM4 so software trigger DMA works? I get a conflict between TIM4 CCR1 match triggered DMA (which works perfectly on it's own)

TIM4->DIER |= TIM_DIER_CC1DE; 

and this software generated DMA trigg

if (buff==1) TIM4->EGR |= TIM_EGR_CC1G;

All the software trigger does is gating the TIM4 CCR1 trigger on and off at the speed of one's and zero's recieved in buff. If i disable TIM4->DIER |= TIM_DIER_CC1DE and turn TIM4 completely off the software trigger also dies!
0 REPLIES 0