AnsweredAssumed Answered

PWM sync disrupting PWM cycle

Question asked by Stefan Goeckeirtz on Feb 10, 2016
Latest reply on May 2, 2016 by Stefan Goeckeirtz

Hey there,


I have a TWRK21 board and PWM output enabled using FTM3 on Pin E6.

I am using KSDK v1.3 with HAL and DRIVERS of FTM.

Basically everything works just fine, I am able to start and stop PWM, set a new duty cycle and alter the switching frequency.

My observation though is, that everytime I change the duty cycle and sync per software trigger the PWM output has some kind of hicup or glitch.

The instantanious activation of the new setting seems to break the cycle run of the actual counting.

Is it therefore easily possible to not use software triggered register sync but to automatically sync the FTM config register after the actual running PWM cycle has completed, say i.e. on overflow interrupt?


Thanks for the help, I really appreciate it.