如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
基于STM定时器产生PWM的研究(完整资料)(可以直接使用,可编辑优秀版资料,欢迎下载)基于STM32定时器产生PWM的研究作者姓名:111专业班级:222指导老师:222摘要随着科技水平的提高,ARM的应用越来越广泛。Withthedevelopoftechnology,ARMisusedinvarioussituations.旨在对ARM的深入学习,论文对STM32定时器产生PWM(脉冲宽度调制)输出进行了研究。OntheintentionofstudyonARM,timerofSTM32producepulsesPWM(widthmodulation)isstudiedinthispaper.PWM就是某个频率占空比的方波,其应用领域包括测量,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究PWM技术具有十分重要的现实意义。PWMisthesquarewavewhichhasasureduty-cycleandfrequency.Itsapplicationfieldsincludemeasurement,communication,powercontrolandtransform,motorcontrol,servocontrol,evensomeaudioamplifier。ThereforeitisimportanttoresearchPWMtechnology.本设计采用STM32定时器产生PWM。ItiseasytousethetimerofSTM32toproducePWMoutput.STM32的PWM由定时器产生,PWM的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和IO口,最后用示波器显示相应通道占空比的方波即可。PWMisproducedbythetimerofSTM32.ThecycleofPWMisthetimer’sregulartime.Bycalculatingthefrequencyofsquarewave,duty—cycle,configuringthetimerandIO,thenuseoscilloscopedisplayedthePWM.经对STM32开发板的研究学习,通过对STM32定时器等的配置,用示波器显示,完成了PWM输出。BasedontheSTM32,byconfiguringthetimerofSTM32,PWMisdisplayedbyoscilloscope。关键词STM32,定时器,PWMStudyfortheoutputofPWMproducebytimerofSTM32BasedonMDKAbstract:Withthedevelopmentoftechnology,ARMisusedinvarioussituations。OntheintentionofstudyonARM,timerofSTM32producepulsesPWM(widthmodulation)isstudiedinthispaper.PWMisthesquarewavewhichhasasureduty-cycleandfrequency.Itsapplicationfieldsincludemeasurement,communication,powercontrolandtransform,motorcontrol,servocontrol,evensomeaudioamplifier.ThereforeitisimportanttoresearchPWMtechnology。ItiseasytousethetimerofSTM32toproducePWMoutput.PWMisproducedbythetimerofSTM32。ThecycleofPWMisthetimer’sregulartime。Bycalculatingthefrequencyofsquarewave,duty-cycle,configuringthetimerandIO,thenuseoscilloscopedisplayedthePWM。BasedontheSTM32,byconfiguringthetimerofSTM32,PWMisdisplayedbyoscilloscope.Keywords:STM32,timer,PWM目录TOC\o"1—3”\h\z\u第1章前言PAGEREF_Toc263429807\h5HYPERLINK\l"_Toc263429808”1.1ARM应用背景PAGEREF_Toc263429808\h5HYPERLINK\l"_Toc263429809"