引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  下载PDF阅读器  关闭
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 1800次   下载 2784 本文二维码信息
码上扫一扫!
分享到: 微信 更多
基于VC++6.0的PC机与多台单片机的串行通信
宋向容1, 韩克敏1, 陈梦华1
西北农林科技大学 水利与建筑工程学院
摘要:
介绍了PC机与MCS-51系列中8051单片机多机通信原理及通信协议,设计了PC机与多台单片机的通信电路。在Windows98环境下利用VC++6.0的ActiveX控件中的MSComm通信控件,实现了PC机与多台单片机的串行通信。与以往利用WindowsAPI函数实现方法相比,具有编程设计简化及实用性大的优点。
关键词:  多机串行通信  通信协议  VC++6.0  MSComm控件
DOI:
分类号:F592.7
基金项目:
The serial communication of PC and multi-single chip based on VC++6.0
NIU Gang  ZHAO Kai
Abstract:
In the paper,the multi-computer communication principle and communication protocol of PC and single chip in the series of MCS-51 are introduced.The communication circuit of PC and multi-single chip micro-computer is designed.Serial communication between PC and multi-single chip is realized by using the MSComm communication software in ActiveX controls of VC++6.0 under windows 98 circumstance.Compared with the mean of using Windows API function,MSComm control programming has the advantage of simplifying program design and greater practicality.
Key words:  multi-computer serial communication  communication protocol  VC++6.0  MSComm control