当前位置:网站首页>Blue Bridge Cup_ Single chip microcomputer_ PWM output

Blue Bridge Cup_ Single chip microcomputer_ PWM output

2022-07-06 09:12:00 Ajie sends code online

Continue to pay attention to Ajie's online update of nanny Blue Bridge Cup notes ~~ Stick to the Japanese watch

Catalog

PWM Output

Conclusion of the examination


PWM Output

Conclusion of the examination

  • PWM The pattern is Through ordinary pins and timers The cooperation between the two is realized
  • First Determine the timer according to the frequency The timing size that should be selected , For example 1khz, With the duty cycle ,1ms Your timer won't work . need 0.1ms( namely 100us) Can only be .
  • adopt A number , from 0-9 change , The comparison value of the duty cycle is smaller than this value ( Not less than or equal to ) Words , Output a high level , Bigger than it , Output a low level

 

 

 

 

原网站

版权声明
本文为[Ajie sends code online]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131801248128.html