1
基于MSComm控件实现STC89C52单片机与PC的串口通信
孙 宇
(武汉理工大学汽车学院,汽车1303班,学号:1049721302179)
摘要::串口是常用的计算机与外部串行设备之间的数据传输通道。串行通信使用方便,应用广泛。介绍STC89C52单片机以及与PC的接口,以MSComm控件为例,介绍PC端串中通信程序的开发。并给出了基于VS2005开发平台的串行通信的程序实例。
关键词:串口通信;单片机;MSComm控件;C++
Realization of serial communication based on MSComm
SUN Yu
(School of Automotive Engineering, Wuhan University of Technology ; Power Machinery and Engineering,
Graduate 1303; 1049721202211)
Abstract:Serial port is the data transmission passway between commonly used computer and serial
equipment of outside.Because serial communication is convenient to be easily used,it is used
extensively.This paper introduce the structure of the serial port and the method of realizing the serial
communication programming.It presents how to make use of com controlling part MSCoom to realize
serial com programming between the PC and serial equipment.