AnsweredAssumed Answered

STM32F103 DMA Timer interrupt concept question

Question asked by minthemerciless on May 2, 2016
Latest reply on May 3, 2016 by minthemerciless
Hi,
I have a conceptual question about DMA data transfer and timers.  I'm using an STM32f103RBT6 and would like to output a square wave signal that is non repeating.  What I would like to do is to create a buffer of capture compare values, the first of which would placed into the relevant CCR and the timer enabled.  Once the CCR value is reached the timer would enable a digital output and place the next value into the CCR and the timer would be enabled again.  Once reached, the digital output would be disabled, a new CCR value placed into the register etc...
Is it worth using the DMA for this or just would it not be worth it?
Also is it possible to use the DMA in this way?
The timing in question would ideally be a minimum of ~0.2us, which I'm not sure would be possible.
Any info would be greatly appreciated,
Thanks

Outcomes