AnsweredAssumed Answered

Software trigged DMA!

Question asked by tjerneld.mikael on Aug 15, 2015
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!

Outcomes