毕业论文:基于单片机数字式电子秒表电路设计_精品.doc
文本预览下载声明
基于单片机数字式电子秒表电路设计
作者姓名:石 洪
专业名称:核工程与核技术
指导教师:熊 铁 军 工程师
摘要
时间是工农业生产,国防,人民生活等领域不可缺少的。它涉及到我们工作,生活的各个方面。没有时间人们的一切行为都无法进行。本篇论文是利用单片机(Single chip Microcomputer)AT89C51和接口外围电路8279芯片等组成的时钟和秒表双重功能的电子秒表电路。
整个电路由硬件电路和软件程序两部分组成。硬件电路由单片机AT89C51、接口芯片8279等元件组成,它使用元件少,电路结构简单,功能强;软件程序采用汇编语言进行设计,它结构合理,思路清晰,利用中断服务程序对各种事件进行处理,提高微处理器的工作效率。
关键词:微处理器 中断 接口电路 数码显示 按键电路Abstract
Time is the industry and agriculture production, national defense, and peoples living areas such as indispensable. It involves our work, all aspects of life. Not all the time people are unable to act. This paper is using single-chip Microcomputer chip (your) AT89C51 and interface circuit 8279 peripheral components, such as chip clocks and stopwatch function of electronic stopwatch circuit.
The circuit hardware circuit and software program by two parts. The hardware circuit of microcomputer AT89C51, interface chip 8279 etc, it USES components components, such as simple structure, the function is strong, Software design using assembly language, its structure is reasonable, clarity, using an interrupt service routine treatment of various events, improve work efficiency of microprocessors.
Keywords: Microcomputer,interrupt,interface circuit,digital display,switch circuit
目录
摘要 Ⅰ
Abstract Ⅱ
目录 III
前言 1
1.设计功能与要求 2
1.1系统功能 2
1.2设计要求 2
2.设计构思 3
3.硬件电路原理框图 4
4.硬件电路的设计与实现 5
4.1 AT89C51微处理器介绍 5
4.1.1 AT89C51微处理器的背景 5
4.1.2 AT89C51单片机的功能结构 5
4.1.3 AT89C51单片机的应用 6
4.2 接口芯片的介绍 7
4.2.1 芯片8279的背景 7
4.2.2 芯片8279的功能结构 7
4.2.3 芯片8279的应用 8
4.3 译码器74LS138功能结构 9
4.4总线锁存器74LS373功能结构 11
4.5 按键电路的实现 12
4.6 LED数码显示电路的实现 12
4.7 硬件电路的实现 13
4.7.1 总电路图 13
4.7.2 硬件电路的工作过程 13
5.软件程序的设计与实现 15
5.1 电子秒表主程序设计 15
5.1.1 主程序的设计构思 15
5.1.2 主程序的流程框图 18
5.1.3 主程序的实现 19
5.1.4 键扫描子程序 22
5.1.5 8位LED数码管显示子程序 23
5.2 中断服务程序设计 24
5.2.1 中断的概念 24
5.2.2 中断服务程序的设计构思 25
5.2.3 中断服务程序流程框图 26
5.2.4 中断服务程序实现 26
5.3 软件程序的调试与运行 28
6.直流电源 29
7.总结 31
8.致谢 32
9.参考文献 33
附图 34
前言
时间是工农业生产,国防,人民生活等领域不可缺少的。它涉及到我们工作,生活的各个方面。没有时间人们的一切行为都无法进行。本电路是利用单片机和外围接口电
显示全部