摘要:目前单片机在双向通信领域上应用很广,本文主要以AT89C51单片机为控制核心,利用串行通信技术实现两个单片机之间的数据传输。
随着全球信息化的发展,社会整个工业水平也不断提高,随之信息的交流也越来越重要,以至于不可能单独依靠人来控制,因此通信技术就成为了核心。同时伴随着科技的发展,单片机的应用正在不断的深入。在实时检测盒自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用。本文介绍了一种单片机之间串口通信的设计方法,通过安检输入数据,单片机通过串口讲数据发送给另一个单片机,甲机控制乙机的LED等闪烁,乙机通过串行口向甲机发送数字,甲机将接受到的数字显示在LED数码管显示器上。24105
毕业论文关键词:单片机,双向通信,串口。
Multi machine communication based on 80C51 MCU
Abstract: At present, the single chip multi-machine communication in a wide field of applications. This article mainly AT89C51 as the control core, using serial communication technology to realize the transfer of data between two single chip microcomputer.Along with the development of the global information society the industrial level is also higher, also more and more urgent, so in the information communication is also into heavy, so can't completely rely on people to control, so the communication as control core. At the same time, with the rapid development of science and technology, SCM applications are deepening, drive traditional control detection technologies are increasingly updated at the same time. In real-time detection and automatic control of microcomputer application system, the single chip microcomputer often as a core component to use, only single chip microcomputer aspects knowledge is not enough, should also be based on specific hardware structure, software and hardware.In this paper, a design method of serial communication between single-chip microcomputer, through the security check the input data, MCU through serial data sent to another microcontroller, LED flashing, such as a machine control b machine b machine through a serial port to send digital nail machine, a machine will accept to digital display in LED digital tube display.
Keywords: MCU; Multi machine communication; serial port.
1 绪论 4
1.1 单片机AT89C51 概述 4
1.2 LED显示屏控制技术现状 5
1.2.1 串行传输与并行传输技术 5
1.2.2 动态扫描与静态锁存技术 5
1.2.3 自动检测及远程控制技术 5
1.3 MAX232 概述 5
1.4 本设计的目的、意义和发展趋势 6
1.5 编程软件介绍 7
2 单片机双向通信的理论 8
2.1 单片机串口通信 8
2.1.1 单片机串口介绍 9
2.1.2 单片机串口控制寄存器 9
2.1.3 单片机串口的四种工作方式 10
2.2 单片机双机双向通信示意图 10
3 设计 11
3.1.1 双机双向通信硬件介绍 11
3.1.2 单片机双机双向通信系统硬件 16
3.2 软件部分设计 16
3.2.1 显示模块如下图: 17
3.2.2 K1和K2按键功能介绍 17
3.2.3 发光二极管的功能 18 基于80C51单片机双向通信系统开发+源程序+电路图:http://www.751com.cn/zidonghua/lunwen_17453.html