文件名称:DC_Motor_PWM_Control
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 骆*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定时器PWM控制直流电机
*关于频率和占空比的确定,对于12M晶振,假定PWM输出频率为1KHZ,这样定时中断次数 *
*设定为C=10,即0.01MS中断一次,则TH0=FF,TL0=F6 由于设定中断时间为0.01ms,这样*
*可以设定占空比可从1-100变化。即0.01ms*100=1ms-Timer DC motor* PWM control frequency and duty cycle on the determination of the 12M crystal, assumed that the PWM output frequency 1KHZ, so the number of timer interrupt** set C = 10, which 0.01MS interrupted once, then TH0 = FF, TL0 = F6 as set interrupt time 0.01ms, so* you can set the duty cycle changes from 1-100. That is 0.01ms* 100 = 1ms
*关于频率和占空比的确定,对于12M晶振,假定PWM输出频率为1KHZ,这样定时中断次数 *
*设定为C=10,即0.01MS中断一次,则TH0=FF,TL0=F6 由于设定中断时间为0.01ms,这样*
*可以设定占空比可从1-100变化。即0.01ms*100=1ms-Timer DC motor* PWM control frequency and duty cycle on the determination of the 12M crystal, assumed that the PWM output frequency 1KHZ, so the number of timer interrupt** set C = 10, which 0.01MS interrupted once, then TH0 = FF, TL0 = F6 as set interrupt time 0.01ms, so* you can set the duty cycle changes from 1-100. That is 0.01ms* 100 = 1ms
(系统自动生成,下载前可以参看下载内容)
下载文件列表
定时器PWM控制直流电机.txt