摘 要随着时代地进步,电子行业地发展,定时器地应用也越来越广泛
传统地机械式定时器,电动式定时器都是通过发条、交流同步步进电机或者石英步进电机进行驱动地
这种定时器精度不高,定时误差较大
相对于前两种定时器,电子式定时器体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用
本次设计地题目是基于DSP 微控制器定时器设计
本文设计了一种以TMS320F28335 DSP 微控制器为核心地定时器
利用内部定时器0 和 PIE 外设中断扩展模块产生定时中断,并进行逆行计数
通过 SPI 串行外设接口在DSP 和74HC164 之间进行通信,进而实现在数码管上通过动态扫描显示定时时间
本系统通过矩阵键盘控制定时器开启和暂停
在定时器暂停时,还可以通过键盘重新输入定时初值
当定时结束时,还会通过LED 灯闪烁报警,提示定时结束
关键词:定时器, DSP,TMS320F28335 ,串行外设接口,矩阵键盘AbstractWith 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,