基于 STM32 定时器产生 PWM 的讨论作者姓名:111 专业班级:222 指导老师:222摘要随着科技水平的提高,ARM 的应用越来越广泛
With the develop of technology, ARM is used in various situations
旨在对 ARM 的深化学习,论文对 STM32 定时器产生 PWM(脉冲宽度调制)输出进行了讨论
On the intention of studyon ARM,timer of STM32 produce pulses PWM (width modulation) is studied in this paper
PWM 就是某个频率占空比的方波,其应用领域包括测量,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此讨论 PWM 技术具有十分重要的现实意义
PWMis the square wave which has a sure duty-cycle and frequency
Its application fieldsincludemeasurement,communication,power control and transform,motor control,servocontrol, even someaudioamplifier
Therefore it is important to researchPWMtechnology
本设计采纳 STM32 定时器产生 PWM
It is easy to use the timer of STM32 to produce PWM output
STM32 的 PWM 由定时器产生,PWM 的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和 IO 口,最后用示波器显示相应通道占空比的方波即可