文件名称:DC_Motor_PWM_Control
介绍说明--下载内容来自于网络,使用问题请自行百度
定时器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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.