首页 | 官方网站   微博 | 高级检索  
     

AT89C51单片机与PC机的通信接口及编程
引用本文:夏莉英,陈雁.AT89C51单片机与PC机的通信接口及编程[J].电子工程师,2006,32(9):52-55.
作者姓名:夏莉英  陈雁
作者单位:苏州职业大学电子信息工程系,江苏省,苏州市,215104
摘    要:介绍了PC机与单片机采用RS-232C进行串行通信的接口方法。对于硬件接口电路中常用的一些方法进行了简要的比较,并介绍了电平转换芯片MAX232及其应用方法。在通信程序的设计中,数据传输的校验方法采用反馈-确认法,即每传送一个数据就反馈一次,由发送方确认,相当于每次都有握手信号,大大提高了数据传输的可靠性。给出了完整的PC机与单片机点对点双机通信程序。

关 键 词:串行通信  接口  RS-232C  编程
收稿时间:2005-11-07
修稿时间:2006-02-21

Interface and Programming of Single-chip Microcomputer AT89C51 Communicating with IBM-PC
XIA Liying,CHEN Yan.Interface and Programming of Single-chip Microcomputer AT89C51 Communicating with IBM-PC[J].Electronic Engineer,2006,32(9):52-55.
Authors:XIA Liying  CHEN Yan
Affiliation:Suzhou Vocational University, Suzhou 215104, China
Abstract: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.
Keywords:serial communication  interface  RS-232C  programming  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号