- 1、本文档共40页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要
随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。传统的机械式定时器,电动式定时器都是通过发条、交流同步步进电机或者石英步进电机进行驱动的。这种定时器精度不高,定时误差较大。相对于前两种定时器,电子式定时器体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用。
本次设计的题目是基于DSP微控制器定时器设计。本文设计了一种以TMS320F28335 DSP微控制器为核心的定时器。利用内部定时器0和PIE外设中断扩展模块产生定时中断,并进行逆行计数。通过SPI串行外设接口在DSP和74HC164之间进行通信,进而实现在数码管上通过动态扫描显示定时时间。本系统通过矩阵键盘控制定时器开启和暂停。在定时器暂停时,还可以通过键盘重新输入定时初值。当定时结束时,还会通过LED灯闪烁报警,提示定时结束。
关键词:定时器,DSP,TMS320F28335 ,串行外设接口,矩阵键盘
Abstract
With the progress of the times and the development of electronic industry, the timer is used more and more widely. The traditional mechanical timer, electric timer is drived through the spring, AC synchronous motor or quartz stepper motor .The accuracy of this timer is not high and the error is large. Compared with the former two timer, electronic timer has small volume, light weight, low cost, high precision, long service life, and electronic timer is safety and reliability, convenient adjustment, suitable for frequent use.
The topic of this design is timer design based on the DSP microcontroller.This paper designs a timer with the core of TMS320F28335 DSP microcontroller. Generating a timer interrupt and counting retrogradely by using the internal timer 0 and PIE peripheral interrupt expansion module. Communicate between DSP and 74HC164 through the SPI serial peripheral interface, so as to achieve displaying time on the digital tube by dynamic scanning. The system is turned on and paused through the matrix keyboard. In the timer pause,initial value can be inputed through the keyboard . When the timing is over, system will alarm through LED lights flashing, prompting the end of timing.
Key Words: timer ,DSP ,TMS320F28335 ,SPI, matrix keyboard
目 录
1 绪论 1
1.1系统背景 1
1.1.1 定时器的分类 1
1.1.2 定时器的应用 2
1.2 定时器系统概述 2
1.3 定时器设计及实现的功能 2
1.3.1 设计过程 2
1.3.2 定时器方案的确定 3
1.3.3 定时器的功能 3
2 定时器系统的硬件设计 4
2.1 总体硬件设计 4
2.2 DSP微控制器 5
2.3定时器中断的实现 6
2.3.1 DSP内部定时器 6
2.3.2 PIE外设中断扩展模块 7
2.4 数码管显示电路 8
2.4.1 SPI串行外设接口 9
2.4.2 74HC164 12
2.4.3 数码管 13
2.5按键控制电路 16
2.5.1 矩阵键盘的概述 1
您可能关注的文档
- 2013全国中考数学试题分类汇编----解直角三角形全套.doc
- 桶装矿泉水使用码垛机械手初版.doc
- 本科毕业论使用文___基于Nios_II的PWM直流电机控制系统设计初版.doc
- RH06_左车门总成补焊夹具(毕业设计)全套.doc
- 2014高考物理复习_2013届模拟题汇编2专题十二_力学实验全套.doc
- 武广客运专线指导性施工组织设计全套.doc
- 90W开关电源的设计全套.doc
- 攀钢梅塞尔气体产品公司新建6号4万N立方米空分工程土建工程施工组织设计指南.doc
- 大连城市生活垃圾焚烧发电厂焊接专业施工组织设计全套.doc
- 现代程控交换实验箱实验指导书指南.doc
- 2024年江西省寻乌县九上数学开学复习检测模拟试题【含答案】.doc
- 2024年江西省省宜春市袁州区数学九上开学学业水平测试模拟试题【含答案】.doc
- 《GB/T 44275.2-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第2部分:术语》.pdf
- 中国国家标准 GB/T 44275.2-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第2部分:术语.pdf
- GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构.pdf
- 《GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构》.pdf
- 中国国家标准 GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构.pdf
- GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南.pdf
- 中国国家标准 GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南.pdf
- 《GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南》.pdf
文档评论(0)