资源描述:
《基于stm32定时器产生pwm的分析毕业论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于STM32定时器产生PWM的研究摘要随着科技水平的提高,ARM的应用越来越广泛。Withthedevelopoftechnology,ARMisusedinvarioussituations.旨在对ARM的深入学习,论文对 STM32定时器产生PWM(脉冲宽度调制)输出进行了研究。OntheintentionofstudyonARM,timerofSTM32producepulsesPWM(widthmodulation)isstudiedinthispaper.PWM就是某个频率占空比的方波,其应用领域包括测量
2、,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究PWM技术具有十分重要的现实意义。PWMisthesquarewavewhichhasasureduty-cycleandfrequency.Itsapplicationfieldsincludemeasurement,communication,powercontrolandtransform,motorcontrol,servocontrol,evensomeaudioamplifier.Thereforeitisimportanttore
3、searchPWMtechnology.本设计采用 STM32定时器产生PWM。ItiseasytousethetimerofSTM32toproducePWMoutput. STM32的PWM由定时器产生,PWM的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和IO口,最后用示波器显示相应通道占空比的方波即可。PWMisproducedbythetimerofSTM32.ThecycleofPWMisthetimer’sregulartime.Bycalculatingthefrequencyofs
4、quarewave,duty-cycle,configuringthetimerandIO,thenuseoscilloscopedisplayedthePWM.经对STM32开发板的研究学习,通过对STM32定时器等的配置,用示波器显示,完成了PWM输出。BasedontheSTM32,byconfiguringthetimerofSTM32,PWMisdisplayedbyoscilloscope.关键词STM32,定时器,PWMStudyfortheoutputofPWMproducebytimerofSTM3
5、2BasedonMDKAbstract:Withthedevelopmentoftechnology,ARMisusedinvarioussituations.OntheintentionofstudyonARM,timerofSTM32producepulsesPWM(widthmodulation)isstudiedinthispaper.PWMisthesquarewavewhichhasasureduty-cycleandfrequency.Itsapplicationfieldsincludemeasure
6、ment,communication,powercontrolandtransform,motorcontrol,servocontrol,evensomeaudioamplifier.ThereforeitisimportanttoresearchPWMtechnology.ItiseasytousethetimerofSTM32toproducePWMoutput. PWMisproducedbythetimerofSTM32.ThecycleofPWMisthetimer’sregulartime.Bycalc
7、ulatingthefrequencyofsquarewave,duty-cycle,configuringthetimerandIO,thenuseoscilloscopedisplayedthePWM.BasedontheSTM32,byconfiguringthetimerofSTM32,PWMisdisplayedbyoscilloscope.Keywords:STM32,timer,PWM目录第1章前言51.1ARM应用背景51.2研究内容61.3研究成果7第2章STM32处理器概述82.1STM32简介8
8、2.2内部资源102.3CORTEX-M3内核简介102.4STM32定时器简介122.4.1通用定时器122.4.2高级控制定时器122.4.3小结15第3章PWM概述163.1原理163.1.1PWM模式163.1.2互补输出与死区插入193.2PWM输出的实现21第4章软件设计224.1开发环境224.1.1STM32的开发软件224.1