- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
STM32的PWM控制(国外英语资料)
STM32的PWM控制
After learning, STM32 timer function is really very powerful, small sum up, convenient for future use when making reference. Stm32 timer is divided into three kinds: TIM1 and tim8 are advanced timers, 6 and 7 are basic timers, and 2 - 5 are general timers. The main functional differences can be seen from the name. Today, I mainly use timers to do PWM output, so the summary is mainly for pwm.
Lets talk about the difference between general and advanced timers. General purpose can output four PWM signals, without affecting each other. Advanced timers can output three complementary PWM signals plus an CH4 channel, that is, a total of seven channels.
So, in this way, STM32 can generate 4*5+7*2=30, PWM signals altogether. Then there is a function of the difference: PWM signal general timer is relatively simple, ordinary adjusting duty cycle adjustment frequency (not used to not go to the bottom); advanced timer with complementary output function, while complementary signals can be inserted into the dead zone, but also to enable the brake function, from the view of advanced timer the PWM are used to control the motor.
The basic regulation of the Pwm output is frequency and duty cycle. The frequency, of course, has something to do with the clock signal. The advanced timer is attached to the APB2, and the universal timer is hooked up to the APB1. The difference between APB1 and APB2 is that the clock frequency is different. APB2 maximum frequency allows 72MH, while APB1 maximum frequency is 36MHZ. Is this a universal timer with only the highest 36MHZ frequency? No, the full timer clock signal should be in the following line:
AHB (72mhz) - APB1 divider (default 2) APB1 clock signal (36MHz) - octave doubler (*2 times) - Universal timer clock signal (72mhz).
The huge function in the intermediate frequency multiplier APB1 and timer, if the red font APB1 divider if not 1 (default is 2), frequency multiplier will expand 2 times after the APB1 clock frequency as a timer
您可能关注的文档
- Acer宏基手提FN快捷键大全(国外英语资料).doc
- ACPI电源管理(国外英语资料).doc
- AC冷却器清洗除垢意义(国外英语资料).doc
- across与cross的辨析(国外英语资料).doc
- AD7705应用总结(国外英语资料).doc
- A0502、消失模涂料配制(国外英语资料).doc
- ad7705源程序(国外英语资料).doc
- administrator被隐藏如何恢复(国外英语资料).doc
- ADSL+路由器上网故障(国外英语资料).doc
- adsl掉线(国外英语资料).doc
- 2024年头灯资金筹措计划书代可行性研究报告.docx
- 2024年澳代巴豆酸乙酯资金需求报告代可行性研究报告.docx
- 2024年水污染防治设备资金筹措计划书代可行性研究报告.docx
- 2024年纸卷包装输送系统资金申请报告代可行性研究报告.docx
- 2024年湿疹药物资金申请报告代可行性研究报告.docx
- 2024年家用通风电器具资金筹措计划书代可行性研究报告.docx
- 2024年数字模拟混合输出仪表通讯模板资金申请报告代可行性研究报告.docx
- 2024年计算器及货币专用设备资金需求报告代可行性研究报告.docx
- 2024年手工制纸及纸板项目投资申请报告代可行性研究报告.docx
- 2024年抗生素类药物资金筹措计划书代可行性研究报告.docx
文档评论(0)