光电计数器的设计
![](/uploads/allimg/2406/2_240612155748_1-lp.jpg)
光电计数器的设计(任务书,开题报告,外文翻译,论文10000字)
摘要
根据设计的要求,对比了三种方案,最终选用了基于单片机的硬件设计。主要由光电传感器、数码管显示、AT89C51单片机系统、报警电路、按键等模块组成。此外具有声音报警等功能。
光电计数器的软件设计包括键盘程序设计、显示程序设计、计数序设计、报警程序设计以及设置程序设计。设置程序、按键程序和计数程序完成欲报警计数值的设置;显示程序实现实现人机交换界面,更直接的的显示光电计数器的计数数值,管理者可通过此查询光电计数器的工作的信息;报警程序实现了当计数值和欲报警值相同时报警的功能。
基于AT89C51单片机的光电计数器的软/硬件设计的特点在于:尽量满足系统性能的前提下最大限度的降低系统的设计成本;实现光电计数器的计数功能。由于各个模块相对独立,具有低成本,便于升级和维护等特点。
关键词:计数器 光电转换 AT89C51
The design of photoelectric counter
Abstract
This paper studied the control scheme which used the AT89C51 as the core. By using the flexible programming design and a wealth of input and output ports, and the accuracy of control, we can achieve the counter’s basic function. This paper mainly include :
According to the design requirements of the system, compared to the three kinds of methods, finally chooses the hardware design based on single chip AT89C51. It mainly consists of the photoelectric sensor, digital tube display, AT89C51 single chip microcomputer system, the alarm circuit, key modules, etc. It also requires adding a voice alarm and the other functions, and the design is relatively independent of other modules. What’s more, it still has a large space for expanding, and is easy to upgrade.
Photoelectric counter software design including keyboard program design, display design , alarm ,counting sequence design program design and set up. Set procedures, key procedures and count finished to set alarm count; Realize man-machine exchange interface display program implementation, a more direct display photoelectric counter count value, managers can work through this query photoelectric counter information; A alarm program implementation when the count value and to alarm value function at the same time. [版权所有:http://DOC163.com]
Achieving the photoelectric counter feature in high performance MCU; Because each module is relatively independent, it also has the character of low cost, easy to upgrade and maintain .
Keywords: counter; photoelectric conversion; AT89C51
[资料来源:http://Doc163.com]
![光电计数器的设计](/uploads/allimg/2406/2_240612155748_1.jpg)
![光电计数器的设计](/uploads/allimg/2406/2_240612155720_1.jpg)
目 录
摘要 I
Abstract II
第一章 引言 1
1.1光电计数器的概述 1
1.2本论文的设计任务 2
1.3全文的结构 2
第二章 光电计数器的硬件设计 3
2.1 系统硬件设计要求 3
2.2 系统硬件设计步骤及原则 3
2.3 系统电路设计 4
2.3.1 单片机芯片选择 4
2.3.2数码管的选择 5
2.3.3最小系统设计 5 [来源:http://www.doc163.com]
2.3.4按键设置电路 6
2.3.5光电转换电路 7
2.3.6计数与显示电路 8
2.3.7报警电路 10
2.3.8模块电路总图 11
2.4 本章小结 11
第三章 光电计数器的软件设计 12
3.1 程序设计的语言选择 12
3.2 程序设计遵循的原则 12
3.3 程序模块化设计 13
3.4系统软件设计流程图 13
3.5 程序 14
3.6本章总结 17
第四章 系统调试及结果 18
4.1程序调试与编译 18
4.2 软件仿真结果 18
4.3硬件调试和运行结果 19
4.4 本章小结 26
第五章心得体会 27
参 考 文 献 29
附录 30 [资料来源:http://doc163.com]