AT89C51单片机与PC机的通信接口及编程  被引量:15

Interface and Programming of Single-chip Microcomputer AT89C51 Communicating with IBM-PC

在线阅读下载全文

作  者:夏莉英[1] 陈雁[1] 

机构地区:[1]苏州职业大学电子信息工程系,江苏省苏州市215104

出  处:《电子工程师》2006年第9期52-55,共4页Electronic Engineer

摘  要:介绍了PC机与单片机采用RS-232C进行串行通信的接口方法。对于硬件接口电路中常用的一些方法进行了简要的比较,并介绍了电平转换芯片MAX232及其应用方法。在通信程序的设计中,数据传输的校验方法采用反馈-确认法,即每传送一个数据就反馈一次,由发送方确认,相当于每次都有握手信号,大大提高了数据传输的可靠性。给出了完整的PC机与单片机点对点双机通信程序。This paper introduces an interfacing method of IBM-PC serially communicating with single-chip microcomputer with RS-232C. It gives comparison among some methodes 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, "feedback-confirm" is used as a check method in data transmission, namely data are always fed back and confirmed by sending-side whenever it is transmitted, which is equivalent to signal shaking hand every time. Therefore, the reliability of data transmission is greatly improved. The paper presents the whole program of IBM-PC communicating with single-chip microcomputer from point to point.

关 键 词:串行通信 接口 RS-232C 编程 

分 类 号:TP334.7[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象