AnsweredAssumed Answered

Single toggling pulse wave by loading the CCR register using DMA

Question asked by Available for a sales job on Jun 20, 2016
Latest reply on Jun 30, 2016 by waclawek.jan
I'm trying to generate a single pulse wave, having about 20 toggle transitions. I've created such a generator, and the thing that I haven't solved yet is how to stop it. The aim is to have the pulse wave start after programming the CCR register, and stop automatically once a value was loaded from the table that is greater than the timer period. That also works, but the problem is that the DMA sequence restarts on an update event (or reloads a zero into the CCR register) which it shouldn't. The program only enables one CCx event for DMA, and does not enable the update for either DMA or interrupt. The goal is to make the wave generation stop until a value lower than the timer period is programmed into the CCR. Any ideas ?


Another unexpected behaviour is that the IRQ routine is called for CCx or other events, although not enabled.

Outcomes