摘要
随着科技水平的提高,ARM的应用越来越广泛。本文针对ARM的进一步学习,探讨STM32定时器产生PWM(脉冲宽度调制)输出能影响LED亮度进行了实验。PWM的应用十分广泛,在测量,通信,功率控制,电动机控制等许多领域。因此研究PWM技术具有十分重要的现实意义。本设计采用STM32定时器产生的PWM,PWM的周期即定时器定时的时间,通过计算方波的频率,占空比,配置定时器和IO口,之后用示波器显示相应通道占空比的方波即可。
With the develop of technology,ARM is used in various situations.On the intention of study on ARM, time of STM32 pro-duce pulses PWM(width modulation) is studied in this paper PWM is the square wave which has a sure duty-cycle and frequency.application fields include measurement, communication, power control and transform, motor control, Its servo control, even someaudio amplifier. Therefore it is important to research PWM technology. It is easy to use the timer of STM32 to produce PWM out-put. PWM is produced by the timer of STM32. The cycle of PWM is the timer is regular time. By calculating the frequency ofsquare wave, duty-cycle, configuring the timer and IO, then use oscilloscope displayed the PWM.
作者
程文龙
徐瑾
孙智勇
CHENG WEN-long, XU Jin, SUN Zhi-yong (WUXI Vocational and Technical College,Wuxi 214121, China)
出处
《电脑知识与技术》
2018年第3期198-199,213,共3页
Computer Knowledge and Technology
基金
江苏高校品牌专业建设工程项目“物联网应用技术”(编号:PPZY2015C240)