stm32毕业论文 - 图文

2019-05-24 18:35

毕业论文

stm32毕业论文

基于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就是某个频率占空比的方波,其应用领域包括测量,通信,功率控制与变换,电动机控制、伺服控制、甚至某些音频放大器,因此研究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.

1

毕业论文

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

2

毕业论文

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

3

毕业论文

目录

第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 PWM 模式 ........................................................... 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

4

毕业论文

第1章 前言

1.1 ARM应用背景

如今,学习一种处理器的就有许多ARM内核的处理器可供使用,现在社会已步入嵌入式学习阶段。在嵌入式领域,8位处理器已经不再胜任一些复杂的应用,比如GUI,TCP/IP,FILESYSTEM等,而ARM芯片凭借强大的处理能力和极低的功耗,非常适合这些场合。现在越来越多的产品在选型的时候考虑到使用ARM处理器,ARM的应用是相当的广泛。

ARM的嵌入式控制应用如:汽车、电子设备、保安设备、大容量存储器、调

制解调器、打印机等。一个典型的ARM嵌入式工业控制系统的功能模块如图1-1所示。

图1-1 ARM嵌入式工业控制系统的功能模块

主机 EPROM RAM I/O接口 传感器 转换器 ADC ARM 处理器 LCD LED 键盘 输入 DAC 输出 目前已有超过85%的无线通信设备采用了ARM技术,ARM以其高性能和低成本,在该领域的地位日益巩固。ARM在此方面的应用如:手提式计算机、移动电话、PDA等。

随着宽带技术的推广,采用ARM技术的ADSL芯片正逐步获得竞争优势。此外,ARM在语音及视频处理上进行了优化,并获得广泛支持。

ARM技术在目前流行的数字音频播放器、数字机顶盒、游戏机、数码相机、数字式电视机、GPS、机顶盒中得到广泛采用。现在流行的数码相机和打印机中绝大部分采用ARM技术,手机中的32位SIM智能卡也采用了ARM技术。如图1-2

5


stm32毕业论文 - 图文.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:USB烟灰缸项目可行性研究报告(目录) - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: