How to change PWM frequency without Duty changed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change PWM frequency without Duty changed

895 Views
alex_li
Contributor II

We use PTB8/FTM3_CH0(pin 77) of FS32K142HRT0VLL as a PWM control signal.

Now we need adjust PWM frequency without duty changed when PWM running, how can we  do?

Thanks!

li min 

0 Kudos
1 Reply

864 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi alex_li,

It was answered here:

Square wave output with variable frequency, FTM 

You need to update the duty cycle as well when the frequency is changed.

Regards,

Daniel

0 Kudos