基于 MSComm 控件实现 STC89C52 单片机与 PC 的串口通信孙 宇(武汉理工大学汽车学院,汽车 1303 班,学号:1049721302179)摘要::串口是常用的计算机与外部串行设备之间的数据传输通道
串行通信使用方便,应用广泛
介绍STC89C52单片机以及与PC的接口,以MSComm控件为例,介绍PC端串中通信程序的开发
并给出了基于VS2025开发平台的串行通信的程序实例
关键词:串口通信;单片机;MSComm控件;C++Realization of serial communication based on MSCommSUN Yu(School of Automotive Engineering, Wuhan University of Technology ; Power Machinery and Engineering, Graduate 1303; 1049721202511)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 r