摘要: 提出了一种计算机和多单片机系统传输速率高、可靠性强的串行通信的新方法。基于32位Windows环境,采用多线程技术实现串行通信的实时性,有效地解决了传统串行通信中的迟滞性和不可靠性,提出多线程技术下上位机和196系列多单片机系统通过RS-485总线实时远程通信的新手段,给出完整规范的通信协议及相应的软硬件实现。
关键词:
多线程,
同步事件,
多单片机通信,
RS-485
Abstract: The article puts forward a new way of high transmission velocity and better reliability of serial communication between computer and multi-singlechip system.Based on the 32 bit Windows environment,multithreading technology is adopted so as to realize serial communications real time character.Slow-moving character and uncertainty character in traditional serial communication are solved effectively.A new real-time and long-distance communication means between epigyny computer and 196-series multi-singlechip system is put forwarded.It is realized with RS-485 bus way.A full communication protocols and relevant software and hardware realization are presented.
中图分类号:
颜廷勇,林锦国,陶玲. 计算机与多单片机系统间串行通信的实现[J]. , 2003, 29(17): 176-178.
YAN Tingyong1, TAO Ling2, LIN Jinguo1. Implementation of Serial Communication Between Computer and Multi-singlechip System[J]. , 2003, 29(17): 176-178.