Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to calculate the period of PWM wave in PWM module of single chip microcomputer
How to calculate the period of PWM wave in PWM module of single chip microcomputer
Calculation method during programming:

The carrier period multiplied by the number of carrier pulses is the period of PWM wave.

Measurement method:

The carrier wave is filtered by a low-pass filter, leaving a modulated wave. The modulated wave is shaped into a square wave, and the frequency of the modulated wave (PWM fundamental wave) can be obtained by measuring the frequency of the square wave.