菜单
  
    摘要:    目前,单片机在多机通信领域应用很广。本文重点研究了多单片机构成的主从式多机通信系统,其中从机具有相同权限。
    本文从主从式多机通信协议入手,首先设计了主从式多机通信协议;主机通信用固定比特率控制,模拟实际应用中的连续信号输入。对于1号单片机,可通过虚拟终端和数码管显示器实时显示工作状态,设置为主机。从机通信模式通过串口中断触发启动,通信结束即恢复之前的从机状态。通信过程中,主机先发送寻址的从机号,待从机响应后开始通信。通信结束后,从机发给主机校验字节数据,主机检验错误,检验无误后,作出响应,1号单片机数码管显示器会显示,2号、3号单片机和4号单片机收发数据无误后会使各自的数码管显示器指显示。19963
    本研究已经仿真通过,真实可行。具有一定的检错能力,串行通信的比特率是9600bit/s,通信速度较快,且可靠性高。本研究通过硬件电路解决了通信过程中多单片机争用主机权的问题。
    关键词:    单片机;多机通信;主从式;
    Multi machine communication based on 80C51 MCU
    Abstract:     At present, the single chip multi-machine communication in a wide field of applications. This paper focuses on the research of communication system of master-slave multi machine multi chip microprocessor, which has the same permissions from the machine.
    This article from the master-slave multi machine communication protocol to start with, the first design of master-slave multi machine is the communication protocol; the communication of host machine control with fixed bit rate, the practical application of simulation in the continuous signal input. The 1 single chip computer, it can display real-time working state through the virtual terminal and digital tube, is set to the host. Communication mode from the machine through the serial port interrupts triggering, communication before the end of the recovery from the machine state. For the process of communication, the host sends the number from the machine, the response from the plane after communication. After the communication, distributed to the host from the machine check bytes of data, the host test error, check and correct, if there is no error,  it will response.1 single chip digital tube  will show. If No. 2, No. 3 and No. 4 single chip computer send and receive data correctly, they will make their digital tube to display.
    This study has been simulated by the real feasible. Have some error detection capability, the bit rate of serial communication 9600bit / s, communication speed, and reliability. In this study, the hardware circuit through the communication process to resolve the contention over the host microcontroller over the issue.
    Keywords:    MCU; Multi machine communication; master-slave mode
    目录
    摘要    i
    Abstract    ii
    目录    iii
    1    绪论    1
    1.1    本课题的目的意义、发展趋势    1
    1.2    编程软件说明    2
    2    分析    4
    2.1    主从式多机通信原理    4
    2.2    主从式多机通信示意图    4
    2.3    单片机多机通信系统流程图    5
    2.3.1    系统流程图    5
    2.3.2    主机流程图    5
    2.3.3    从机流程图    7
    3    设计    8
    3.1    硬件设计部分    8
    3.1.1    主从式通信系统硬件介绍    8
  1. 上一篇:恒压供水系统PLC程序设计+梯形图
  2. 下一篇:SVPWM矿山牵引电机车控制系统的研究与仿真
  1. stc15单片机水温水压无线监...

  2. PIC16F73单片机逆变电源硬件电路设计+电路图

  3. 51单片机永磁直流无刷电动机驱动控制器设计

  4. Arduino单片机车载太阳能空气净化器设计

  5. AT89C51单片机的无线环境监测装置设计+程序

  6. STC15W404AS单片机太阳能自动浇花器的设计

  7. PIC18F4520单片机水下机器人...

  8. 现代简约美式风格在室内家装中的运用

  9. 浅析中国古代宗法制度

  10. 上市公司股权结构对经营绩效的影响研究

  11. NFC协议物理层的软件实现+文献综述

  12. 高警觉工作人群的元情绪...

  13. C++最短路径算法研究和程序设计

  14. 江苏省某高中学生体质现状的调查研究

  15. 中国传统元素在游戏角色...

  16. 巴金《激流三部曲》高觉新的悲剧命运

  17. g-C3N4光催化剂的制备和光催化性能研究

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回