摘要
详细地介绍了以异步方式来实现PC机和MCS-51单片机之间通信的过程,给出了硬件设计电路原理和软件设计的选择方案,以及详细的通信协议流程说明.对异步串行通信的波特率选择和波特率误差问题做了深入探讨,分析了使波特率出现误差的几个方面的原因,并给出了相应的解决办法.通常情况下近程PC机对单片机的数据处理都可以应用本系统高效、可靠的实现.
How to communicate PC with MCS-51 over short distance is presented. As following, the hard ware circuit diagram which connects PC and MCS-51, the project of software which controls PC and MCS- 51 and the agreement of software are exhibited in ditail. How to select baud rate of asynchronously communication and the error analysis of it are discussed. Furthermore, some aspects of baud rate error and the solution of them can be found. Generally speaking, data processing between PC and MCS-51 can be realized by this technique efficiently and reliably.
出处
《兰州交通大学学报》
CAS
2006年第1期113-116,共4页
Journal of Lanzhou Jiaotong University
关键词
串行通信
通讯协议
波特率
数据处理
serial communication l agreement of communication
baud rate
data processing