AnsweredAssumed Answered

Random PWM generation

Question asked by oakie_doke on Mar 31, 2015
Latest reply on Apr 10, 2015 by Marek Neuzil

Hi,

I use Code Warrior 10.6 with Processor Expert and MCF51MM256CLK mcu. I use TimerInt component to measure 10ms impulse on some pin and after this time in interrupt i want to generate one period of pwm on another pin. I use PWM component with setted 20ms period, 19ms starting pulse width and low initial polarity. Problem is on scope I see that time between impulses is random, not 19ms, almost always is shorter. I think here is problem with pwm. Could you propose some solution of this problem?

Outcomes