外文翻译RS232串行通讯
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
外文翻译
系别信息工程系专业测控技术与仪器班级B141401
学号B14140124
姓名王文站
指导教师孙丽媛
负责教师刘剑
沈阳航空航天大学北方科技学院
2015年6月
The Designing of Serial CommunicationBase on RS232
Abstract-This Paper discussed the principle of serial communication
mainly,proposed the design method based on RS232,designed the hard circuit of serial communication,and realized the programming to PC Microcomputer and single chip microcomputer by using assembly language and C++Builder separately Keywords-serial communication;single chip microcomputer;program design I.INTRODUCTION During working in the control system,the PC microcomputer sends instructions for step-by-step motor to collect the image information.Therefore the communication between the PC microcomputer and the driving system is needed for the communication system.In general,a complete communication system consists of
transmitter,receiver,converting the data interface and transmitting data channel.The control of tne step-by step motor is realized through the pulse distribution by single chip microcomputer.On the motor control system,the PC microcomputer is called as upper computer,and the single chip microcomputer for driving step_by_step motor is called as lower computer.The communication between the upper computer and the lower computer has two methods,that si to say the parallel interface can transmit much data at the same time and
has the fast speed,but when the transmission distance is far and the number of data is much,it needs more the number of transmission lines.In addition,the voltage level may be
changed by the transmission line factor and electromagnetic interference.Serial communication is utilized in the control system so as to simplify the hardware and save the cost..
II.THE BRIEF DESCRIPTION OF SERIAL PORT COMMUNITION
Serial communication is the communication between sender and receiver data line,to move each time a bit.The advantage is that only a pair of transmission lines to send information,so its low cost,suitable for long-distance communication;its disadvantage is that transmission speed is low.
Serial communication with asynchronous communication and synchronous communication are two basic means of communication.Synchronous communication for the case of high transmission speed,the hardware complexity.The asynchronous communication used in transmission speed between50and19200baud.Transmission is relatively common.In asynchronous communication,data is transmitted frame by frame,each frame of serial data format by a start bit,5to8data bits,a parity bit(optional) and a Stop bit of four parts.Before the serial communication,the sender and receiver to agree the specific data format and baud rate(communication protocol).PC-programmable serial asynchronous communication controller
8250to implement asynchronous serial communication.By8250the initial programming,you can control serial data transmission format and speed.In the PC,in general there are two standard RS-232C serial interface COM1and COM21MCS-51 serial micro-controller chip includes a full-duple serial interface,can also be realized by