Hi Robin
Now it is possible to generate a PWM signal, but encountered it again.
Set to 50Hz PWM frequency, it is only 71Hz from the observation.


I don't know why the 50Hz PWM signal is not generated. I think this is caused by the delay. I go to DELAY place to modify it. From the original 80,000 to 115400, the KV11Z development board can be generated from the file is a 10M crystal oscillator, calculate i=1 =0.1us, the direction is estimated to be 115400 by trial and error, and set the fixed duty cycle to 50%.


Finally, the required Hertz PWM signal and duty cycle can be obtained. But I still don't know if this is the correct way. I think it should only be necessary to adjust FTM_SetupPwm (BOARD_FTM_BASEADDR, &ftmParam, 1U, kFTM_CenterAlignedPwm, 50U, FTM_SOURCE_CLOCK); the PWM frequency value in this row can be used to obtain the desired PWM frequency.
I need help in this regard, thank you.

