ImageVerifierCode 换一换
格式:DOC , 页数:19 ,大小:339.50KB ,
资源ID:9623072      下载积分:8 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/9623072.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(串行通信设计外文翻译.doc)为本站上传会员【可****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

串行通信设计外文翻译.doc

1、 外文文献翻译: The Designing of Serial Communication Based on RS232 The Designing of Serial Communication Based 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

2、 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 i

3、nstructions 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 an

4、d transmitting data channel. The control of the 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 low

5、er computer. The communication between the upper computer and the lower computer has two methods, that is to say the parallel communication and serial communication. Parallel interface can transmit much data at the same time and has the fast speed, but when the transmission distance is far and the n

6、umber 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 a one way that the data is transmitted by a bit in order, in which two transition lines is ne

7、eded to realize bidirectional communication. It is taken into consideration that the data is much and the transmutation number is little, the serial communication is utilized in the control system so as to simplify the hardware and save the cost. Serial communication is one of the oldest mechanisms

8、 for devices to communicate with each other. Starting with the IBM PC and compatible computers, almost all computers are equipped with one or more serial ports and one parallel port. As the name implies, a serial port sends and receives data serially, one bit at a time. In contrast, a parallel port

9、sends and receives data eight bits at a time, using eight separate wires. For serial communication to work, you just need a minimum of three wires—one to send, one to receive, and one signal ground. For parallel communication, you need eight wires. Despite the comparatively slower transfer speed o

10、f serial ports over parallel ports, serial communication remains a popular connectivity option for devices because of its simplicity and cost-effectiveness. It shows some of the devices that use a serial port to connect to the computer. Using a serial port, you can connect to a modem, a mouse, or a

11、device such as a bridge/router for configuration purposes. II. THE BRIEF DESCRIPTION OF SERIAL PORT COMMUNITION Serial communication is the communication between sender and receiver data transfer is in the single data line, to move each time a bit. The advantage is that only a pair of transmission

12、 lines to send information, so its low cost, suitable for long-distance communications; its disadvantage is that transmission speed is low. As mentioned, a serial device sends and receives data one bit at a time. Some devices can send and receive data at the same time and are known as full-duplex d

13、evices. Others that can either send or receive at any one time are known as single-duplex. To initiate transmission, a device first transmits a start bit, followed by the data bits. The data bits can be five, six, seven, or eight bits, depending on what has been agreed upon. Both the sender and the

14、 receiver must be set to the same data bits for communication to take place correctly. Once the data bits are sent, a stop bit is sent. A stop bit can be one, one and a half, and two bits. The baud rate is the speed of transmission of data from one device to another. Baud rate is usually measured in

15、 bits per second (bps).Most serial devices transmit in seven or eight bits. To detect that the data has been sent correctly, an optional parity bit can be included together with the data bits. A parity bit can be one of the following: odd, even, mark, space, or none (mark and space parity are almos

16、t always used). Using a parity bit provides a basic mechanism to detect corruption of data that was sent and does not guarantee that the data received is free from error. Nevertheless, a parity bit is useful for improving the integrity of the data sent. Most serial ports adhere to the RS232C standa

17、rd, which specifies a connector either with 25 pins or with 9 pins. Most serial devices use the nine-pin connector. Serial communication with asynchronous communication and synchronous communication are two basic means of communication. Synchronous communication for the case of high transmission sp

18、eed, the hardware complexity. The asynchronous communication used in transmission speed between 50 and 19200 baud. Transmission is relatively common. In asynchronous communication, data is transmitted frame by frame, each frame of serial data format by a start bit, 5 to 8 data bits, a parity bit (op

19、tional) 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 8250 to implement asynchronous serial communication. By 8250 the initi

20、al programming, you can control serial data transmission format and speed. In the PC, in general there are two standard RS-232C serial interface COM1 and COM21MCS - 51 series microcontroller chip includes a full-duplex serial interface, can also be realized by programming the serial communications.

21、 CMOS smart sensor IC has received wide application for low cost, miniaturization, intelligence and standardization. In smart sensor IC designs, the communication interface circuits also play an important role other than sensors and signal processing circuits. There are more serial communication sta

22、ndard interfaces, such as RS-232, RS-485, USB Interface, IEEE-1394, which has itself good features and also has focused on areas of application. RS-485 has a anti-noise capacity transmitting data, so it is commonly used in industrial production. USB interface and IEEE-1394 have fast speed, but some

23、computers and operating systems do not support such interfaces. RS-232 is most widely used as a serial interface in a PC computer and communications industries. RS232C standard is a protocol of asynchronous serial communication and has been widely used in PC and communication industries. Many short

24、distance communicational peripherals of PC such as printers, disks and terminals all communicate with PC via RS232 serial interface. RS-232C standard RS-232C is the American Electronics Industry Association (EIA) formally announced, in the asynchronous serial communication, the most widely us

25、ed standard bus. The standard for DCE and DTE serial binary communication between the maximum data transfer rate of up to 19. 2kbps, the longest transmission cables up to 15 meters 1RS - 232C standard defines the 25-lead, two-way communication in general, just Serial input RXD, serial output TXD and

26、 ground GND1RS - 232C standard levels using negative logic, the provisions of + 3V ~ + 15V at any level between a logic "0"level, - 3V ~ - 15V of Any level between a logic "1" level, with TTL and CMOS levels are different. In the interface circuit and computer interface chip in the mostly level TTL

27、or CMOS, so the communication, the need for level conversion, so with the RS - 232C standard level matching 1MAX232 chip level conversion can be done in this work. RS-232 is defined as the single-ended standards, which has much characteristic, such as more communication distance in a low-speed seri

28、al communications, moderate price and good practicality of the system, so it is most appropriate to be a communication port. RS-232 is an essential modern computer interface, it includes ports COM1 and COM2, the port COM1 has 9-pin connector. The new generation computer has a 9-pin connector (DB9) s

29、o as to connect with the RS-232 communication port. In order to achieve reliable and real time transmission, the system adopt a three-wire connection method, that is to say that the GND pin, RXD pin and TXD pin of RS-232 port is connected with the external port, it is shown in Figure 1. Figure 1

30、 The RS-232 port III. THE HARDWARE DESIGN OF SERIAL PORT COMMUNICATION The in-out level of single chip computer is TTL level, while the RS-232 serial interface of a PC computer is standard serial interface, so both the electrical specifications are inconsistent. In order to communicate with the u

31、pper and lower computer, it is needed that the out level of single chip computer is changed to the TTL level. The common level converter chip between TTL and RS-232 level is MCI1488 and MCI1489. The MCI1488 converts TTL level to RS-232 level, it needs the supply voltage of ± 12V, and that the MCI148

32、9 converts the RS-232 standard level TTL level, it needs power supply voltage of +5V. Due to three power supply voltage, the circuit will be complicated, so this circuit adopts the standard RS-232 chip MAX232. MAX232 is the product of the MAXIM Company; it is the road receiver and driver IC chip.

33、 About MAX232 chip MAXIM MAX232 chip is produced by low-power, single-supply dual RS232 transmit / receiver 1 for all EIA-232E and V. 28 / V. 24 communication interfaces 1MAX232 a chip supply voltage converter, can+ 5V input power converted into RS - 232C ± 10V output voltage level required, so

34、 using this chip serial communications interface system as long as a single +5 V power supply can. MAX232 requires four external electrolytic capacitors C1, C2, C3, and C4, is the internal capacitance of a power conversion requirements are 1μF/25V1 should choose its value and should be as close

35、 as possible tantalum chip capacitor 1C5 is 0. 1μF decoupling capacitor. MAX232 pin T1IN, T2IN, R1OUT, R2OUT to pick TTL / CMOS level pin 1 pin T1OUT, T2OUT, R1IN, R2IN to access RS - 232C level 1 so the pin TTL / CMOS level T1IN, T2IN MCS-51 pin should be connected to the serial transmit pin T

36、XD; R1OUT, R2OUT should take MCS - 51 in the serial receive pins RXD1 corresponding RS-232C level T1OUT, T2OUT should be connected to PC-receiver RD; R1IN, R2IN should be connected PC-sender TD. MAX232 chip has a voltage converter which can transform the voltage of +5 V to the required voltage. The

37、refore, it adapts to the serial communication interface, moreover it has much characteristic, such as moderate price, the hardware simple, so it is used to be a voltage converter. The hardware circuit of serial communication module is shown in Figure 2. Figure 2. The hardware circuit of serial c

38、ommunication module IV. THE SOFTWARE DESIGN OF SERIAL PORT COMMUNICATION The communication program of the single chip microcomputer communicates with PC computer by interrupt and PC computer is called as main controller. When the single chip computer receives the data signals sent by PC computer,

39、then it calls interrupt service program. The flowchart of the interrupt service main subprogram is shown in Figure 3. In order to fully exploit the efficiency of single chip computer to minimize CPU ‘time occupied by communication, the control program will be we will promptly respond to and control

40、objects. The communication program will be optimized. The subprogram of serial port interrupt for receiving data, the subprogram for sending step-by-step impulse, the subprogram for judging instruction and the subprogram foe sending data. A. The subprogram of serial port interrupts for receiving da

41、ta The subprogram of serial port interrupts for receiving data is mainly responsible for receiving data sent by PC microcomputer and storing the data into allocated memory (it does not deal with data so as to reduce the time taken up by interruptions). The data received by the single chip microcomp

42、uter includes little information, such as speed, steps and on/off instructions, and the buffer is large enough to send the computer, so the software shake hands protocol is omit so as to raises the CPU utilization. When the program of serial port interrupt receives the specified data, it exits the s

43、erial port interrupt. B. The subprogram of sending the step-by-step impulse Using counter-timer of the single chip microcontroller timer 0, as the fixed times complete, the p1.5 port is negated so as to periodically generate the driving pulses. The timer 0 begins to count from initial value to 65

44、535, then the interrupt sub-program of timer 0 is called, in which the p1.5 port is negated to generate a driving pulse. Meanwhile, the single chip microcomputer loads again the initial value which is sent by the PC microcomputer by serial communication. Figure 3. The flowchart of the interrupt

45、service main subprogram C. The subprograms of judging instruction The program of judging instruction is set on the serial port interrupt program to be called. The PC microcomputer sends data to the single chip microcomputer. After the single chip microcomputer receives data, it sets the RI higher

46、and called the serial port interrupt sub-program, in which the first data is processed. If the first data is a digital symble”48”, the serial port interrupt sub-program sets P1.4 higher, then the next five bytes data is used to ensure the step-by-step motor’ speed and steps. If the first data is a d

47、igital symble”49”, it means that the step-by-step motor reverses, then the single chip microcomputer receives the speed and steps information. Otherwise the single chip microcomputer judges that the received data is not "STOP" instruction, if so, it sends “stop” instruction to the drive system; if n

48、ot, it quits the interrupt. D. The processing subprogram of send interrupts The processing subprogram of send interrupts is responsible to send data to the computer, sending interrupt state is off in the general. When the communication program completely deals with data sent by PC microcomputer, t

49、he symbol “1” can be written to send buffer. As the computer receives the symbol “1”, it is said that single chip computer executes completely the introduction sent by PC microcomputer. Therefore the serial port interrupt is set as “off” state by the single chip microcontroller and it is set “on” st

50、ate again after the data are sent. So the single chip microcomputer returns to main program and waits for receiving instructions. V. THE DESIGN OF COMMUNICATION PROGRAM OF PC MICROCOMPUTER AND SINGLE CHIP MICROCOMPUTER In order to realize the system software easily grafted and uniformity, the prog

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服