Hello everyone,
I use an FTM function to generate PWM output. I based my code on the SDK example "driver_examples => simple_PWM".
Actually to change PWM frequency I use "FTM_Deinit", then "FTM_CalculateCounterClkDiv" to modify frequency and "FTM_Init". But it's a really slow solution and it's not working properly if I modify my frequency many time too fast.
Is there a way to change dynamically the frequency (like duty cycle on the example) ? Have you got any example ?
Thanks in advance for your help.
---------------------------
MCUXpresso 11.5.0
K22FN256M1
SDK_2_11_0_MK22FN256xxx12
---------------------------