作者姓名:222 专业班级:222 指导老师:222
摘要
随着科技水平的提高, 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就是某个频率占空比的方波,其应用领域包括测量,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究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 is important to research PWM technology. 本设计采用 STM32定时器产生PWM。It is easy to use the timer of STM32 to produce PWM output.
STM32的PWM由定时器产生,PWM的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和IO口,最后用示波器显示相应通道占空比的方波即可。PWM is produced by the timer of STM32. The cycle of PWM is the timer’s regular time. 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 output of PWM produce by timer of STM32 Based on MDK
Abstract:
With the development of technology, ARM is used in various situations. On the intention of study on ARM, timer of STM32 produce pulses PWM (width modulation) is studied in this paper. 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 is important to research PWM technology. It is easy to use the timer of STM32 to produce PWM output. PWM is produced by the timer of STM32. The cycle of PWM is the timer’s regular time. By calculating the frequency of square wave, duty-cycle, configuring the timer and IO, then use oscilloscope displayed the PWM. Based on the STM32, by configuring the timer of STM32, PWM is displayed by oscilloscope.
Key words:
STM32,timer,PWM