首页 | 本学科首页   官方微博 | 高级检索  
     

用闪速单片机实现的多计算机通讯系统
引用本文:李大伟,董立岩,李大志.用闪速单片机实现的多计算机通讯系统[J].气象水文海洋仪器,2010,27(3):25-28,31.
作者姓名:李大伟  董立岩  李大志
作者单位:1. 吉林大学,长春,130012
2. 长春市恒盛建筑工程质量检测有限公司,长春,130102
摘    要:提出了用闪速单片机实现的多计算机通讯系统的实现方案。阐述了多计算机通讯原理及实现方法?硬件设计及软件设计。其中的硬件是针对应用广泛的AT89系列中的AT89C52Flash单片机而设计的。利用闪速单片机串行口的多机通讯模式,构成多机通讯系统。从单片机可以进行数据初级处理,而主单片机则汇总数据并完成综合处理,同时还能根据情况随时向各个从单片机发出操作命令。采用RS-422A标准串行接口代替了常用的RS-232C标准串行接口,它采用差动接收?差动发送的工作方式,提高了通讯可靠性。在软件上,把通讯数据分为数据帧和命令帧,而且按照主从机之间的通讯协议分别传送。这有利于程序的模块化设计。该方法可以推广应用于其他系统,对硬件电路设计及程序设计具有一定的参考价值。

关 键 词:闪速单片机  多机通讯  通讯协议  串行口  数据帧  命令帧

Realization of multicomputer communication system with flash microcontroller
Li Dawei,Dong Liyan,Li Dazhi.Realization of multicomputer communication system with flash microcontroller[J].Meteorological,Hydrological and Marine Instruments,2010,27(3):25-28,31.
Authors:Li Dawei  Dong Liyan  Li Dazhi
Affiliation:1.Jilin University,Changchun 130012;2.Changchun Hengsheng Limited Company of Architectural Engineering and Quality Testing,Changchun 130102)
Abstract:This paper proposes an implementation scheme of multicomputer communication system with flash microcontroller,and describes principles and implementation methods of multicomputer communication as well as design of hardware and software.The hardware is designed to directly facing AT89C52 flash microcontroller of AT89 series.Multicomputer communication system is constituted by multicomputer communication mode of flash microcontroller.Data are primary processed by microcontroller,and master microcontroller is used to sum data that can send out managerial command according to the condition of system at any moment.The usually standard of RS-232C serial interface is replaced by RS-422A,which uses difference receive and transmit to improve communication stability.At the software of this system,the communicate data are separated into data frames and command frames,which can be transmitted respectively by means of communication protocol between master computer and slave computer.It is in favor of modularization of programmer.The design methods can be generalized for other systems and is valuable for the design of both hardware and software.
Keywords:flash microcontroller  multicomputer communication  communication protocol  serial interface  data frames  command frames
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号