文件名称:10-PWM
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 149kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定时器输出PWM波测试工程实例
(1)通过对PWM占空比的调节,实现小灯的渐亮的功能,当占空比为100%时再从0%逐渐增加.PWM的周期一定要足够的快,否则其输出电压的波动范围很大,且测不出一个稳定的电压值,这样通过就观察不到小灯渐亮效果. 另外,在改变PWM的周期和占空比之前和之后要分别禁止和使用TPM1,否则改变不起作用.-The timer output PWM wave test works (1) small lights fade function, when the duty cycle of 100 and then gradually increased from 0 PWM duty cycle regulation PWM cycle must be sufficient fast, otherwise the fluctuation range of the output voltage is large, and a stable voltage value could not be determined, so by less than the small lights fade effect observed before changing the period and duty cycle of the PWM and after respectively prohibit use the TPM1, otherwise change does not work.
(1)通过对PWM占空比的调节,实现小灯的渐亮的功能,当占空比为100%时再从0%逐渐增加.PWM的周期一定要足够的快,否则其输出电压的波动范围很大,且测不出一个稳定的电压值,这样通过就观察不到小灯渐亮效果. 另外,在改变PWM的周期和占空比之前和之后要分别禁止和使用TPM1,否则改变不起作用.-The timer output PWM wave test works (1) small lights fade function, when the duty cycle of 100 and then gradually increased from 0 PWM duty cycle regulation PWM cycle must be sufficient fast, otherwise the fluctuation range of the output voltage is large, and a stable voltage value could not be determined, so by less than the small lights fade effect observed before changing the period and duty cycle of the PWM and after respectively prohibit use the TPM1, otherwise change does not work.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
10-PWM\bin\Project.abs
......\...\Project.abs.s19
......\...\Project.map
......\cmd\HCS08_OpenSourceBDM_Erase_Unsecure.cmd
......\...\HCS08_OpenSourceBDM_Postload.cmd
......\...\HCS08_OpenSourceBDM_Preload.cmd
......\...\HCS08_OpenSourceBDM_Reset.cmd
......\...\HCS08_OpenSourceBDM_Startup.cmd
......\C_Layout.hwl
......\Default.mem
......\HCS08_OpenSourceBDM.ini
......\prm\burner.bbl
......\...\Project.prm
......\PWM.mcp
......\..._Data\CWSettingsWindows.stg
......\........\PC-lint\TargetDataWindows.tdt
......\........\.WM\ObjectCode\GeneralFun.c.o
......\........\...\..........\isr.c.o
......\........\...\..........\main.c.o
......\........\...\..........\MC9S08DZ60.C.o
......\........\...\..........\MCUInit.c.o
......\........\...\..........\PWM.c.o
......\........\...\..........\SCI.c.o
......\........\...\..........\Start08.c.o
......\........\...\TargetDataWindows.tdt
......\Sources\GeneralFun.c
......\.......\GeneralFun.h
......\.......\Includes.h
......\.......\isr.c
......\.......\isr.h
......\.......\main.c
......\.......\MCUInit.c
......\.......\MCUInit.h
......\.......\PWM.c
......\.......\PWM.h
......\.......\SCI.c
......\.......\SCI.h
......\.......\Start08.c
......\.......\Type.h
......\.......\工程说明.txt
......\PWM_Data\PWM\ObjectCode
......\........\PC-lint
......\........\PWM
......\bin
......\cmd
......\prm
......\PWM_Data
......\Sources
10-PWM