摘要: |
介绍了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 |