PERIOD PWM UM GENERATOR OFFSET FOUND | Cypress Semiconductor
PERIOD PWM UM GENERATOR OFFSET FOUND
I have found the PWM user modules estimate the output period adding an Offset equal
to 1 clk cycle of your external clock.
Therefore the formula remains finally:
(Where nºPERIOD is the counter PERIOD, the number of clk input risng edges to calculate
the PWM output square wave period).
I have supposed it's due to a kind of precharge or setup time te PWM UM needs to charge again the values
in the counter or make the interrupts once the countdown is over.
I haven't find any statement about this in the PWM datasheet.
Anyone could confirm that theory or I'm wrong?
Thanks for all.