2 Replies Latest reply on Feb 1, 2011 5:34 AM by gautam.das.g

    PERIOD PWM UM GENERATOR OFFSET FOUND

    manuel.julian.moron

      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:

      Tout= nºPERIOD*Tclk+1cycle_clk;

      (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.