基于STM32定时器产生PWM的研究

上传人:飞****9 文档编号:143930065 上传时间:2020-09-03 格式:DOC 页数:34 大小:1.12MB
返回 下载 相关 举报
基于STM32定时器产生PWM的研究_第1页
第1页 / 共34页
基于STM32定时器产生PWM的研究_第2页
第2页 / 共34页
基于STM32定时器产生PWM的研究_第3页
第3页 / 共34页
基于STM32定时器产生PWM的研究_第4页
第4页 / 共34页
基于STM32定时器产生PWM的研究_第5页
第5页 / 共34页
点击查看更多>>
资源描述

《基于STM32定时器产生PWM的研究》由会员分享,可在线阅读,更多相关《基于STM32定时器产生PWM的研究(34页珍藏版)》请在金锄头文库上搜索。

1、 基于 STM32 定时器产生 PWM 的研究 作者姓名:111 专业班级: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

2、 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

3、. 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 timers regular

4、 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

5、StudyStudy forfor thethe outputoutput ofof PWMPWM produceproduce byby timertimer ofof STM32STM32 BasedBased onon MDKMDK 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 i

6、n 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

7、 timer of STM32 to produce PWM output. PWM is produced by the timer of STM32. The cycle of PWM is the timers 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 S

8、TM32, PWM is displayed by oscilloscope. KeyKey wordswords: STM32,timer,PWM 目录 第 1 章 前言.5 1.1 ARM 应用背景 .5 1.2 研究内容.6 1.3 研究成果.7 第 2 章 STM32 处理器概述 .8 2.1 STM32 简介 .8 2.2 内部资源.10 2.3 CORTEX-M3 内核简介 .10 2.4 STM32 定时器简介 .12 2.4.1 通用定时器 .12 2.4.2 高级控制定时器 .12 2.4.3 小结.15 第 3 章 PWM 概述 .16 3.1 原理.16 3.1.1 PW

9、M 模式 .16 3.1.2 互补输出与死区插入.19 3.2 PWM 输出的实现 .21 第 4 章 软件设计.22 4.1 开发环境.22 4.1.1 STM32 的开发软件.22 4.1.2 MDK370 .22 4.2 软件实现.23 4.2.1 设计标准 .23 4.2.2 程序流程图 .25 第五章 测试及结果.26 5.1 JTAG 仿真器介绍 .26 5.2 测试.27 5.3 现象及结果.28 结论.31 致谢.32 参考文献.33 ARM 处理器 ADC I/O 接口 键盘 RAM LED 传感器 转换器 LCD DAC EPROM主机 第第 1 章章 前言前言 1.1 A

10、RM 应用背景应用背景 如今,学习一种处理器的就有许多ARM内核的处理器可供使用,现在社会已 步入嵌入式学习阶段。在嵌入式领域,8位处理器已经不再胜任一些复杂的应用, 比如GUI,TCP/IP,FILESYSTEM等,而ARM芯片凭借强大的处理能力和极低的功 耗,非常适合这些场合。现在越来越多的产品在选型的时候考虑到使用ARM处理 器,ARM的应用是相当的广泛。 ARM 的嵌入式控制应用如:汽车、电子设备、保安设备、大容量存储器、调 制解调器、打印机等。一个典型的 ARM 嵌入式工业控制系统的功能模块如图 1- 1 所示。 输入输出 图 1-1 ARM 嵌入式工业控制系统的功能模块 目前已有超过 85的无线通信设备采用了 ARM 技术,ARM 以其高性能和低 成本,在该领域的地位日益巩固。ARM 在此方面的应用如:手提式计算机、移 动电话

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 管理论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号