PWM frequency caculate?

how can i caculate actual PWM frequency ??? I use TPU to creat PWM  but can't caculate actual frequency of it.

Parents
  • Hi,

    The frequency is based on the Pclk (peripheral bus clock) divided by the counter trigger value (less 1, as the count starts at 0). The counter is incremented each* Pclk cycle and ramps up until the trigger is reached when the output is toggled and the counter rest to zero.

    There are optional Pclk division flags, e.g. div 4 will mean the counter increments at a quarter the Pclk frequency, so the final frequency will by Pclk/(4*(trigger-1)).

    AndyS

  • Hi Andrew ,

     what did you mean here "trigger" 

Reply Children
No Data