版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、畢業(yè)設(shè)計說明書外文文獻(xiàn)及中文翻譯學(xué)生姓名: 學(xué)號: 學(xué) 院: 系 名: 電子與計算機(jī)科學(xué)技術(shù)系 專 業(yè): 電子科學(xué)與技術(shù) 指導(dǎo)教師: 2011 年 6月rs-422 and rs-485 application notechapter 1: overviewintroduction the purpose of this application note is to describe the main elements of an rs-422 and rs-485 system. this application note attempts to cover enough technical
2、 details so that the system designer will have considered all the important aspects in his data system design. since both rs-422 and rs-485 are data transmission systems that use balanced differential signals, it is appropriate to discuss both systems in the same application note. throughout this ap
3、plication note the generic terms of rs-422 and rs-485 will be used to represent the eia/tia-422 and eia/tia-485 standards.data transmission signals unbalanced line drivers each signal that transmits in an rs-232 unbalanced data transmission system appears on the interface connector as a voltage with
4、 reference to a signal ground. for example, the transmitted data (td) from a dte device appears on pin 2 with respect to pin 7 (signal ground) on a db-25 connector. this voltage will be negative if the line is idle and alternate between that negative level and a positive level when data is sent with
5、 a magnitude of 5 to 15 volts. the rs-232 receiver typically operates within the voltage range of +3 to +12 and -3 to -12 volts as shown in figure 1.1. figure 1.1: rs-232 interface circuitbalanced line driversin a balanced differential system the voltage produced by the driver appears across a pair
6、of signal lines that transmit only one signal. figure 1.2 shows a schematic symbol for a balanced line driver and the voltages that exist. a balanced line driver will produce a voltage from 2 to 6 volts across its a and b output terminals and will have a signal ground (c) connection. although proper
7、 connection to the signal ground is important, it isnt used by a balanced line receiver in determining the logic state of the data line. a balanced line driver can also have an input signal called an “enable” signal. the purpose of this signal is to connect the driver to its output terminals, a and
8、b. if the “enable” signal is off, one can consider the driver as disconnected from the transmission line. an rs-485 driver must have the “enable” control signal. an rs-422 driver may have this signal, but it is not always required. the disconnected or disabled condition of the line driver usually is
9、 referred to as the “tristate1” condition of the driver.1the term “tristate” comes from the fact that there is a third output state of an rs-485 driver, in addition to the output states of “1” and “0.”figure 1.2: balanced differential output line driverbalanced line receiversa balanced differential
10、line receiver senses the voltage state of the transmission line across two signal input lines, a and b. it will also have a signal ground (c) that is necessary in making the proper interface connection. figure 1.3 is a schematic symbol for a balanced differential line receiver. figure 1.3 also shows
11、 the voltages that are important to the balanced line receiver. if the differential input voltage vab is greater than +200 mv the receiver will have a specific logic state on its output terminal. if the input voltage is reversed to less than -200 mv the receiver will create the opposite logic state
12、on its output terminal. the input voltages that a balanced line receiver must sense are shown in figure 1.3. the 200 mv to 6 v range is required to allow for attenuation on the transmission line.figure 1.3: balanced differential input line receivereia standard rs-422 data transmissionthe eia standar
13、d rs-422-a entitled “electrical characteristics of balanced voltage digital interface circuits” defines the characteristics of rs-422 interface circuits. figure 1.4 is a typical rs-422 four-wire interface. notice that five conductors are used. each generator or driver can drive up to ten (10) receiv
14、ers. the two signaling states of the line are defined as follows:a. when the “a” terminal of the driver is negative with respect to the “b” terminal, the line is in a binary 1 (mark or off) state.b. when the “a” terminal of the driver is positive with respect to the “b” terminal, the line is in a bi
15、nary 0 (space or on) state.figure 1.5 shows the condition of the voltage of the balanced line for an rs-232 to rs-422 converter when the line is in the “idle” condition or off state. it also shows the relationship of the “a” and “b” terminals of an rs-422 system and the “-“ and “+” terminal markings
16、 used on many types of equipment. the “a” terminal is equivalent to the “-“ designation, and the “b” terminal equivalent to the “+” designation. the same relationship shown in figure 1.5 also applies for rs-485 systems. rs-422 can withstand a common mode voltage (vcm) of 7 volts.common mode voltage
17、is defined as the mean voltage of the a and b terminals with respect to signal ground.figure 1.4: typical rs-422 four wire networkfigure 1.5: relationship between eia standard “a” and “b” terminals on an rs-422 or rs-485 deviceand “+”and “-” identification conventionnote: under “idle” conditions it
18、is possible to determine which terminal is “a” and which is “b”.eia standard rs-485 data transmissionthe rs-485 standard permits a balanced transmission line to be shared in a party line or multidrop mode.as many as 32 driver/receiver pairs can share a multidrop network. many characteristics of the
19、drivers and receivers are the same as rs-422. the range of the common mode voltage vcm that the driver and receiver can tolerate is expanded to +12 to -7 volts. since the driver can be disconnected or tristated from the line, it must withstand this common mode voltage range while in the tristate con
20、dition.some rs-422 drivers, even with tristate capability, will not withstand the full vcm voltage range of +12 to -7 volts.figure 1.6 shows a typical two-wire multidrop network.note that the transmission line is terminated on both ends of the line but not at drop points in the middle of the line. t
21、ermination should only be used with high data rates and long wiring runs. a detailed discussion of termination can be found in chapter 2 of this application note. the signal ground line is also recommended in an rs-485 system to keep the common mode voltage that the receiver must accept within the -
22、7 to +12 volt range. further discussion of grounding can be found in chapter 3 of this application note.figure 1.6: typical rs-485 two wire multidrop networkan rs-485 network can also be connected in a four-wire mode as shown in figure 1.7. note that four data wires and an additional signal ground w
23、ire are used in a “four-wire” connection. in a four-wire network it is necessary that one node be a master node and all others be slaves. the network is connected so that the master node communicates to all slave nodes. all slave nodes communicate only with the master node. this network has some adv
24、antages with equipment with mixed protocol communications. since the slave nodes never listen to another slave response to the master, a slave node cannot reply incorrectly to another slave node.figure 1.7: typical rs-485 four wire multidrop networktristate control of an rs-485 device using rtsas di
25、scussed previously, an rs-485 system must have a driver that can be disconnected from the transmission line when a particular node is not transmitting. in an rs-232 to rs-485 converter or an rs-485 serial card, this may be implemented using the rts control signal from an asynchronous serial port to
26、enable the rs-485 driver. the rts line is connected to the rs-485 driver enable such that setting the rts line to a high (logic 1) state enables the rs-485 driver. setting the rts line low (logic 0) puts the driver into the tristate condition.this in effect disconnects the driver from the bus, allow
27、ing other nodes to transmit over the same wire pair. figure 1.8 shows a timing diagram for a typical rs-232 to rs-485 converter. the waveforms show what happens if the vrts waveform is narrower than the data vsd. this is not the normal situation, but is shown here to illustrate the loss of a portion
28、 of the data waveform. when rts control is used, it is important to be certain that rts is set high before data is sent. also, the rts line must then be set low after the last data bit is sent. this timing is done by the software used to control the serial port and not by the converter.figure 1.8: t
29、iming diagram for rs-232 to rs-485 converter with rts control of rs-485 driver and receivernote: 1 .voltage here is determined by other devices on the line 2 .all peak values of voltages are approximatewhen an rs-485 network is connected in a two-wire multidrop party line mode, the receiver at each
30、node will be connected to the line (see figure 1.6). the receiver can often be configured to receive an echo of its own data transmission. this is desirable in some systems, and troublesome in others. be sure to check the data sheet for your converter to determine how the receiver “enable” function
31、is connected.figure 1.9 - timing diagram for rs-232 to rs-485 converter with send data (sd) control of rs-485 driver and receivernote: 1. voltage here is determined by other devices on the line .2. this timing interval determined by components in timing circuit. the start of this interval is determi
32、ned by the leading edge of each data bit .3 . all peak values of voltages are approximate.chapter 2: system configurationnetwork topologiesnetwork configuration isnt defined in the rs-422 or rs-485 specification. in most cases the designer can use a configuration that best fits the physical requirem
33、ents of the system.two wire or four wire systemsrs-422 systems require a dedicated pair of wires for each signal, a transmit pair, a receive pair and an additional pair for each handshake/control signal used (if required). the tristate capabilities of rs-485 allow a single pair of wires to share tra
34、nsmit and receive signals for half-duplex communications. this “two wire” configuration (note that an additional ground conductor should be used) reduces cabling cost. rs-485 devices may be internally or externally configured for two wire systems. internally configured rs-485 devices simply provide
35、a and b connections (sometimes labeled “-“ and “+”).figure 2.1: typical rs-485 four wire multidrop networkdevices configured for four wire communications bring out a and b connections for both the transmit and the receive pairs. the user can connect the transmit lines to the receive lines to create
36、a two wire configuration. the latter type device provides the system designer with the most configuration flexibility. note that the signal ground line should also be connected in the system. this connection is necessary to keep the vcm common mode voltage at the receiver within a safe range. the in
37、terface circuit may operate without the signal ground connection, but may sacrifice reliability and noise immunity. figures 2.1 and 2.2 illustrate connections of two and four wire systems.figure 2.2: type rs-485 two wire multdrop networkterminationtermination is used to match impedance of a node to
38、the impedance of the transmission line being used. when impedance are mismatched, the transmitted signal is not completely absorbed by the load and a portion is reflected back into the transmission line. if the source, transmission line and load impedance are equal these reflections are eliminated.
39、there are disadvantages of termination as well. termination increases load on the drivers, increases installation complexity, changes biasing requirements and makes system modification more difficult.the decision whether or not to use termination should be based on the cable length and data rate use
40、d by the system. a good rule of thumb is if the propagation delay of the data line is much less than one bit width, termination is not needed. this rule makes the assumption that reflections will damp out in several trips up and down the data line. since the receiving uart will sample the data in th
41、e middle of the bit, it is important that the signal level be solid at that point. for example, in a system with 2000 feet of data line the propagation delay can be calculated by multiplying the cable length by the propagation velocity of the cable. this value, typically 66 to 75% of the speed of li
42、ght (c), is specified by the cable manufacture.for our example, a round trip covers 4000 feet of cable. using a propagation velocity of 0.66c, one round trip is completed in approximately 6.2 s. if we assume the reflections will damp out in three “round trips” up and down the cable length, the signa
43、l will stabilize 18.6 s after the leading edge of a bit. at 9600 baud one bit is 104 s wide. since the reflections are damped out much before the center of the bit, termination is not required.there are several methods of terminating data lines. the method recommended by b&b is parallel termination.
44、 a resistor is added in parallel with the receivers “a” and “b” lines in order to match the data line characteristic impedance specified by the cable manufacture (120 is a common value). this value describes the intrinsic impedance of the transmission line and is not a function of the line length. a
45、 terminating resistor of less than 90 should not be used. termination resistors should be placed only at the extreme ends of the data line, and no more than two terminations should be placed in any system that does not use repeaters. this type of termination clearly adds heavy dc loading to a system
46、 and may overload port powered rs-232 to rs-485 converters. another type of termination, ac coupled termination, adds a small capacitor in series with the termination resistor to eliminate the dc loading effect. although this method eliminates dc loading, capacitor selection is highly dependent on t
47、he system properties. system designers interested in ac termination are encouraged to read national semiconductors application note 9032 for further information. figure 2.3 illustrates both parallel and ac termination on an rs-485 two-wire node. in four-wire systems, the termination is placed across
48、 the receiver of the node. figure 2.3: parallel and ac terminationbiasing an rs-485 network when an rs-485 network is in an idle state, all nodes are in listen (receive) mode. under this condition there are no active drivers on the network, all drivers are tristated. without anything driving the net
49、work, the state of the line is unknown. if the voltage level at the receivers a and b inputs is less than 200 mv the logic level at the output of the receivers will be the value of the last bit received. in order to maintain the proper idle voltage state, bias resistors must be applied to force the
50、data lines to the idle condition. bias resistors are nothing more than a pullup resistor on the data b line (typically to 5 volts) and a pulldown (to ground) on the data a line. figure 2.4 illustrates the placement of bias resistors on a transceiver in a two-wire configuration. note that in an rs-48
51、5 four-wire configuration, the bias resistors should be placed on the receiver lines. the value of the bias resistors is dependent on termination and number of nodes in the system. the goal is to generate enough dc bias current in the network to maintain a minimum of 200 mv between the b and a data
52、line. consider the following two examples of bias resistor calculation.figure 2.4 - transceiver with bias resistorsexample 1. 10 node, rs-485 network with two 120 termination resistors each rs-485 node has a load impedance of 12k. 10 nodes in parallel give a load of 1200 . additionally, the two 120
53、termination resistors result in another 60 w load, for a total load of 57 . clearly the termination resistors are responsible for a majority of the loading. in order to maintain at least 200mv between the b and a line, we need a bias current of 3.5 ma to flow through the load. to create this bias fr
54、om a 5v supply a total series resistance of 1428 or less is required. subtract the 57 that is already part of the load, and we are left with 1371 . placing half of this value as a pullup to 5v and half as a pulldown to ground gives a maximum bias resistor value of 685 for each of the two biasing res
55、istors.example 2. 32 node, rs-485 network without terminationeach rs-485 node has a load impedance of 12k. 32 nodes in parallel gives a total load of 375 . in order to maintain at least 200 mv across 375 we need a current of 0.53 ma.to generate this current from a 5v supply requires a total resistan
56、ce of 9375maximum. since 375 of this total is in the receiver load, our bias resistors must add to 9k or less. notice that very little bias current is required in systems without termination.bias resistors can be placed anywhere in the network or can be split among multiple nodes. the parallel combi
57、nation of all bias resistors in a system must be equal to or less than the calculated biasing requirements. b&b electronics uses 4.7k bias resistors in all rs-485 products. this value is adequate for most systems without termination. the system designer should always calculate the biasing requiremen
58、ts of the network. symptoms of under biasing range from decreased noise immunity to complete data failure. over biasing has less effect on a system, the primary result is increased load on the drivers. systems using port powered rs-232 to rs-485 converters can be sensitive to over biasing.extending the specificationsome systems require longer distances or higher numbers of nodes than supported by rs-422 or rs-485. repeaters are commonly used to overcome these barriers. an rs-485 repeater such as b&b electronics 485o
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 海上旅游船運(yùn)租賃合同
- 影視產(chǎn)業(yè)用房交易合同范本
- 城市地下商場箱涵施工協(xié)議
- 劇院節(jié)能保溫改造施工協(xié)議
- 地下空間開發(fā)建造師聘用
- 校園MV副導(dǎo)演招募協(xié)議
- 皮革代收款協(xié)議書
- 自貿(mào)區(qū)標(biāo)識標(biāo)牌招投標(biāo)函范本
- 礦山運(yùn)輸設(shè)備租賃協(xié)議
- 餐飲服務(wù)居間人管理規(guī)則
- 2024年教育培訓(xùn)機(jī)構(gòu)線上課程合作協(xié)議
- 環(huán)保設(shè)備售后服務(wù)體系建設(shè)方案
- 初二初二初二期中家長會課件-2篇 3初二
- 湖南財政經(jīng)濟(jì)學(xué)院《體育保健學(xué)(運(yùn)動傷害急救與防護(hù))》2022-2023學(xué)年第一學(xué)期期末試卷
- 項目實施管理方案
- 船舶委托設(shè)計合同模板
- 人教版八年級上冊生物全冊教案(完整版)教學(xué)設(shè)計含教學(xué)反思
- 成都師范學(xué)院《教師口語》2021-2022學(xué)年第一學(xué)期期末試卷
- 肺上葉惡性腫瘤護(hù)理查房
- 棋牌室消防應(yīng)急預(yù)案
- 蔣詩萌小品《誰殺死了周日》臺詞完整版
評論
0/150
提交評論