Home > other >  Application of Pwm wave frequency how to calculate
Application of Pwm wave frequency how to calculate

Time:09-27

This is with 51 single chip microcomputer control dc motor speed control system, don't know what program of PWM frequency, and 0 timer interrupt function inside PWM_temp used to do, how to generate PWM

CodePudding user response:

Frequency conversion as the time, has nothing to do with the duty ratio. Usually a timer interrupt time.

CodePudding user response:

reference 1/f, the wise know already should good karma response:
frequency conversion as the time, has nothing to do with the duty ratio. Usually a timer interrupt time.
I this program sampling period 100 ms, isn't it

CodePudding user response:

Look from the program,
1. The output of the PWM cycle is 100 ms
2. When the flag_100ms equals 1 and start equals 1, which can adjust the PID
3. The variable PWM and PWM_temp finish PWM output level transformation
  • Related