This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM dutyCycleSet set to 100% doesn't work


I tried to create a function that would set a duty cycle of the PWM pin at runtime. The problem is that if I set the duty cycle to 100% the dutyCycleSet function returns an error.

status = g_fan.p_api->dutyCycleSet(g_fan.p_ctrl, 100, TIMER_PWM_UNIT_PERCENT, PIN);

Why? I have not figured out how to solve it.

Best regards