摘要
本文介绍了PC机与单片机采用RS-232C进行串行通信的接口方法。对于硬件接口电路中常用的一些方法进行了简要的比较,并介绍了电平转换芯片MAX232及其应用方法。在通信程序的设计中,PC机采用查询方式收发数据,单片机采用中断方式收发数据。本文给出了完整的PC机与单片机点对点双机通信程序。
This paper introduces an interfacing method of IBM-PC serially communicating with single -chip microcomputer with RS-232C. It gives comparison among some methods which are often adopted in the interfacing circuit, and introduces a chip MAX232 of level translation and its application method in detail. In the design of communication program, IBM-PC adopts inquiry way to receive and dispatch data, single-chip microcomputer adopts interruption way to receive and dispatch data. The paper presents the whole program of communicating with single-chip microcomputer from point to point.
作者
郭宏亮
GUO Hong-liang (College of Machinery and Electron, P ing yuan University, Xinxiang , Henan 450003, China)
出处
《平原大学学报》
2007年第3期117-119,共3页
Journal of Pingyuan University