摘要
串行通信是数据采集系统中最常用的通信手段之一。设计并研制了基于VB的LED大屏幕显示串行数据通信系统,具有编程灵活、控制通信对象容易的优点。通过8250的奇偶校验位与单片机的SM2位的配合,实现了PC机与多个单片机的串行数据通信。介绍了基于VB6.0进行串行通信的流程和编程,较好地解决了同时使用通信方式0与方式1时引起的RXD端口的冲突问题。实验证明,该设计简单、实用,提高了系统设计的效率。
Serial communication plays an essential role in data acquisition system. It is convenient and efficient to realize serial data communication by using communication control of VB\{6.0\}, comparing with other programming methods. Serial data communication system for LED displaying between PC and multi\|microcomputer is designed through the collaboration of parity\|bit of 8250 and SM\-2 of 8031. The flow chart and some programming skill based on VB6.0 are introduced in detail. The confliction between communication mode 0 and mode 1 is solved when they are used simultaneously. The experimental result shows that easy and practical design can increase the efficiency of system design. \;
出处
《红外与激光工程》
EI
CSCD
北大核心
2003年第2期207-210,共4页
Infrared and Laser Engineering
关键词
串行通信
主从机通信
VB6.0
Serial communication
Master\|slave communication
VB6.0