成都理工大学毕业设计(论文)
基于STM32定时器产生PWM的研究
作者姓名222专业班级222指导老师222
摘要
随着科技水平的提高,ARM的应用越来越广泛。Withthedevelopoftech
ologyARMisusedi
varioussituatio
s
旨在对ARM的深入学习,论文对STM32定时器产生PWM脉冲宽度调制输
出进行了研究。O
thei
te
tio
ofstudyo
ARMtimerofSTM32producepulsesPWMwidthmodulatio
isstudiedi
thispaper
PWM就是某个频率占空比的方波,其应用领域包括测量,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究PWM技
术具有十分重要的现实意义。PWMisthesquarewavewhichhasasuredutycyclea
dfreque
cyItsapplicatio
fieldsi
cludemeasureme
tcommu
icatio
powerco
trola
dtra
sformmotorco
trolservoco
troleve
someaudioamplifierThereforeitisimporta
ttoresearchPWMtech
ology
本设计采用STM32定时器产生PWM。ItiseasytousethetimerofSTM32toproducePWMoutput
STM32的PWM由定时器产生,PWM的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和IO口,最后用示波器显示相应通道占空比的
1
f成都理工大学毕业设计(论文)
方波即可。PWMisproducedbythetimerofSTM32ThecycleofPWMisthetimer’sregulartimeBycalculati
gthefreque
cyofsquarewavedutycycleco
figuri
gthetimera
dIOthe
useoscilloscopedisplayedthePWM
经对STM32开发板的研究学习,通过对STM32定时器等的配置,用示波器显示,完成了PWM输出。Basedo
theSTM32byco
figuri
gthetimerofSTM32PWMisdisplayedbyoscilloscope
关键词
STM32,定时器,PWM
StudyfortheoutputofPWMproducebytimerof
Abstract:
STM32Basedo
MDK
Withthedevelopme
toftech
ologyARMisusedi
varioussituatio
sO
thei
te
tio
ofstudyo
ARMtimerofSTM32producepulsesPWMwidthmodulatio
isstudiedi
thispaperPWMisthesquarewavewhichhasasuredutycyclea
dfreque
cyItsapplicatio
fieldsi
cludemeasureme
tcommu
icatio
powerco
trola
dtra
sformmotorco
trolservoco
troleve
someaudioamplifierThereforeitisimporta
ttoresearchPWMtech
ologyItiseasytousethetimerofSTM32toproducePWMoutputPWMisproducedbythetimerofSTM32ThecycleofPWMisthe
timer’sregulartimeBycalculati
gthefreque
cyofsquarewave
2
f成都理工大学毕业设计(论文)
dutycycleco
figuri
gthetimera
dIOthe
useoscilloscopedisplayedthePWMBasedo
theSTM32byco
figuri
gthetimerofSTM32PWMisdisplayedbyoscilloscope
Keywords:
STM32,timer,PWM
3
f成都理工大学毕业设计(论文)
目录
第1章前言511ARM应用背景r