Hello Velmurugan V,
20Hz frequency is too low .
As to the PWM frequency = PWM clock source (or FTM clock source) / MOD,
PWM frequency * MOD = PWM clock source
the maximum of MOD is 0xFFFF, please check the FTM clock source in your code.
So even if MOD configure to 0xFFFF, if PWM frequency = 20hz, then PWM CLOCK source should almost
less than 2MHz.
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------