1、毕业设计(论文) 1 基于 STM32 定时器产生 PWM 的研究 摘要 随着科技水平的提高, ARM 的应用越来越广泛。With the develop of technology, ARM is used in various situations. 旨在对 ARM 的深入学习,论文对 STM32 定时器产生 PWM(脉冲宽度调制)输 出进行了研究。On the intention of study on ARM, timer of STM32 produce pulses PWM (width modulation) is studied in this paper. PWM 就是某个频
2、率占空比的方波,其应用领域包括测量,通信,功率控制 与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究 PWM 技 术具有十分重要的现实意义。PWM is the square wave which has a sure duty-cycle and frequency. Its application fields include measurement, communication, power control and transform, motor control, servo control, even some audio amplifier. Therefore it i
3、s important to research PWM technology. 本设计采用 STM32 定时器产生 PWM。It is easy to use the timer of STM32 to produce PWM output. STM32 的 PWM 由定时器产生,PWM 的周期即定时器定时的时间,通过计算方 波的频率,占空比,配置定时器和 IO 口,最后用示波器显示相应通道占空比的 毕业设计(论文) 2 方波即可。PWM is produced by the timer of STM32. The cycle of PWM is the timers regular time
4、. By calculating the frequency of square wave, duty-cycle, configuring the timer and IO, then use oscilloscope displayed the PWM. 经对 STM32 开发板的研究学习,通过对 STM32 定时器等的配置, 用示 波器显示,完成了 PWM 输出。Based on the STM32, by configuring the timer of STM32, PWM is displayed by oscilloscope. 关键词关键词 STM32,定时器,PWM Study for the Study for the outputoutput of PWM produce by timer of of PWM produce by timer of STM32STM32 Based onBased on MDKMDK Abstract: With the development of technology, ARM is used in various si