基于DSP使用微控制器定时器设计初版.doc

  1. 1、本文档共40页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

taotao0b + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档