Hello, i am using s32k142, and when i set the duty cycle for pwm to 100% using this register:
size_t value = (((size_t)duty * ctx->mod) >> 16);
ctx->base->CONTROLS[ctx->channel].CnV = (uint32_t)value;
i don't get the 100% which i was waiting for, for me it should be high all the time but instead it will have one small glitch, it's like it is giving 99% duty cycle.
the picture below shows the measurement for pwm 100% that i get
There are some situations where 100% PWM wave cannot be output.
So,could you please provided more details regarding your FTM PWM settings.
for example, your demo code and how you test it etc.