firmware

PWM Duty Cycle

Compare register value, on-time, and off-time from duty cycle and timer period.

Inputs
Results
CCR / Compare Reg—
On-time—
Off-time—
CCR = round(duty/100 × ARR)  ·  t_on = duty/100 × T