AnsweredAssumed Answered

TIM 1 to generate a clock of a specific number of pulses.

Question asked by bompart.romy on Mar 5, 2014
Latest reply on Mar 5, 2014 by Clive One
Hi guys. 

I know some of you guys have done something like this. I would like to implement the TIM1 to generate a clock, using it as a PWM out-up mode, but I wish ( if it is possible) modify its functioning to generate a certain quantity of pulses depending of a trigger by software.

For example I would like to write in some register (I don't know which one yet) a number, to generate 10 OCx Pulses. At this moment I have to disable the PRELOAD REGISTER and COUNTER.

Has anyone done something like this?