登录
首页 » C/C++ » dengjiCH3

dengjiCH3

于 2018-12-24 发布 文件大小:211KB
0 84
下载积分: 1 下载次数: 2

代码说明:

  单片机MC9S08AW60脉宽调制 TPM1CH3 LS2亮度控制 KBI SEG控制亮度等级 。本工程为定时器输出PWM波测试工程实例通过对PWM占空比的调节,实现小灯的渐亮的功能,当占空比为100%时再从0%逐渐增加.PWM的周期一定要足够的快,否则其输出电压的波动范围很大,且测不出一个稳定的电压值,这样通过就观察不到小灯渐亮效果. 另外,在改变PWM的周期和占空比之前和之后要分别禁止和使用。(MC9S08AW60 pulse width modulation TPM1CH3 LS2 brightness control KBI SEG brightness level. This project is an example of testing the output PWM wave of the timer. By adjusting the duty ratio of the PWM, the function of the small lamp gradually brightening is realized. When the duty ratio is 100%, the period of the small lamp gradually increases from 0%. The period of the PWM must be fast enough. Otherwise, the fluctuation range of the output voltage is large and a stable voltage value can not be measured, so the effect of the gradual brightening of the small lamp can not be observed. In addition, the period of the PWM is changed. Before and after duty cycle should be prohibited and used separately.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104223会员总数
  • 35今日下载