您好,欢迎来到佳博论文网!

生产线成品计数器

论文编号:JD1048论文字数:14472,页数:30 有任务书,

摘要:这项设计的名称是流水线计数器,这个系统以单片机和光电式传感器为基础。当流水线上有产品传送时,这个系统能够自动记录当前产品的总数,并通过LED显示器显示数据,同时把这个数据存储在计算机的硬盘里。除此之外,流水线的管理人员还能够通过键盘控制系统,这样管理人员能够方便地进行管理。

在生产线的传送带上不断地有产品被单向传送,产品之间有较大的间隔。计数器系统利用光电式传感器把传送带上经过的产品的数量转换成相同数量的脉冲信号,然后传输给单片机。当单片机接收到一个脉冲信号后,计数器加1。同时通过设计软件和硬件,系统就能够显示数据和存储数据,或者完成其他的功能。

关键字:生产线、单片机、光电传感器、LED显示器、键盘

The production line counter

Abstracts: This design is product line counter, this system with the single chip computer and photoconductive transducer for core. When the product line have product delivering, this system can record the total amount of the current product automatically, and display manifestation data with LED, and saving this data at the same time in the hard dish of computer. In addition, product line manager can press the keyboard to control the system, so manager can manage expediently.

There are products are transmitted constantly in product line, in the middle of two products have big distance. Counter system makes use of photoconductive transducer transform products that had passed product line to the same quantity of the pulse signals, and deliver these signals to single chip computer. When the single chip computer receives a pulse signal, the counter the add 1. At the same time with the hardware and the software, system can manifestation data with save the data, or complete the other function.

Keywords: Production line, Single chip computer, Photoconductive transducer, LED display, keyboard

目录

前言………………………………………………………………………………………I

目录……………………………………………………………………………………III

摘要………………………………………………………………………………………1

第1章 硬件系统设计…………………………………………………………………2

1.1 系统基本原理……………………………………………………………………2

1.2 单元电路设计……………………………………………………………………2

1.2.1 光电转换单元…………………………………………………………2

1.2.1.1 光敏三极管原理……………………………………………3

1.2.1.2 光电耦合器件………………………………………………3

1.2.2 计数器单元……………………………………………………………4

1.2.2.1 计数器工作原理……………………………………………4

1.2.2.2 定时/计数器的控制…………………………………………4

1.2.2.3 定时/计数器的初始化………………………………………6

1.2.2.4 定时/计数器的中断系统……………………………………7

1.2.3 显示单元………………………………………………………………8

1.2.3.1 LED显示器工作原理………………………………………8

1.2.3.2 动态显示原理………………………………………………10

1.2.4 键盘单元………………………………………………………………13

1.2.4.1 键盘接口……………………………………………………13

1.2.4.2 独立式非编码键盘接口原理………………………………14

第2章 PC机与单片机之间的串行通信设计………………………………………16

第3章 单片机抗干扰技术……………………………………………………………18

3.1 干扰的含义及分类……………………………………………………………18

3.2 干扰源分类……………………………………………………………………18

3.3 单片机应用系统中的主要环境干扰源………………………………………18

3.3.1 硬件抗干扰措施………………………………………………………19

3.3.2 软件抗干扰措施………………………………………………………19

参考文献 ………………………………………………………………………………21

小结与致谢……………………………………………………………………………22

附录A 程序流程图……………………………………………………………………23

图1 主程序流程图…………………………………………………………………23

图2 显示子程序流程图……………………………………………………………24

图3 键盘子程序流程图……………………………………………………………25

附录B 程序……………………………………………………………………………26

附录C 硬件电路图……………………………………………………………………30

生产线成品计数器......