微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > RS485总线的深层理解

RS485总线的深层理解

时间:12-14 来源:互联网 点击:
对于RS485以前没有深层次的理解,我们只用到了点-点通信,对于多节电通信关注的不多,现在主要分析下输入阻抗、上拉、下拉的分析;

输入阻抗是多节点的一个分析点

RS-485标准采有用平衡式发送,差分式接收的数据收发器来驱动总线,具体规格要求:
1. 接收器的输入电阻RIN≥12kΩ
2. 驱动器能输出±7V的共模电压
3. 输入端的电容≤50pF
4. 在节点数为32个,配置了120Ω的终端电阻的情况下,驱动器至少还能输出电压1.5V(驱动负载为54Ω,终端电阻的大小与所用双绞线的参数有关)
5. 接收器的输入灵敏度为200mV(即(V+)-(V-)≥0.2V,表示信号“1”;(V+)-(V-)≤-0.2V,表示信号“0”)注意!!V+ 我们一般说的A,V-我们一般说的是B;
 因为RS-485的远距离、多节点(32个)以及传输线成本低的特性,使得EIA RS-485成为工业应用中数据传输的首选标准。

1. 在RS485通信系统中,是否需要加终端匹配电阻分析:

引用MAXIM官网上的一篇应用笔记,原文如下

l No Termination(http://www.maxim-ic.com.cn/appnotes.cfm/an_pk/1090)

The first approach in minimizing power consumption is to eliminate termination resistors altogether. This option is available only for short cables and low data rates, which allow reflections to settle before data is sampled in the receiver. As a rule of thumb, no termination is needed when the rise time of a signal is at least four times longer than the one-way propagation delay through the cable. In the following steps, this rule is employed to calculate the maximum usable length for an unterminated cable:

Step 1. For the cable in question, find the one-way velocity of propagation, usually provided by cable manufacturers as a percentage of the speed of light in free space (c = 3x108 m/s). A typical value for standard insulated PVC cable (consisting of a #24 AWG twisted pair) is 8in/ns.

Step 2. For the RS-485 transceiver, find its minimum rise time (tr min) from the data-sheet specifications. A MAX3471, for example, specifies 750ns.

Step 3. Divide the minimum rise time by 4. For the MAX3471, tr min/4 = 750ns/4 = 187.5ns.

Step 4. Calculate the maximum cable distance for which no termination is required: 187.5ns(8in/ns)(1ft/12in) = 125ft.

原文大致描述了在什么情况下可以不添加终端匹配电阻,当信号的转换时间(上升沿时间)超过电信号沿总线单向传输所需时间的4倍以上时可以不加匹配电阻。例如,信号传输速率为0.2m/ns (24AWG PVC电缆),对于MAX3417下降时间为750ns,则只要线缆长度<37m就可以不加终端匹配。(注:有的RS485芯片具有限摆率功能(上升沿时间长),有的不具有此功能(上升沿时间短),具有此功能的芯片一般传输速率较低250kbps或500kbps,上升沿时间Tr>200ns,具体值请参考datasheet。)具有限摆率功能的器件有:MAX3082、MAX3085、MAX3060、MAX3061 、SP3072、SP3075、SP3082、SP3085等。

上拉、下拉问题:

1. 在RS485通信系统中,是否需要加上、下拉电阻分析:

引用MAXIM官网上的一篇应用笔记,原文如下:

Failsafe (http://www.maxim-ic.com.cn/appnotes.cfm/an_pk/1090)
For RS-485 receiver inputs between -200mV and +200mV, the output is undefined. That is, if the differential voltage on the RS-485 side of a half-duplex configuration is 0V, and no master transceiver is driving the line (or a connection has come loose), then a logic "high" output is as probable as a logic "low." To ensure a defined output under these conditions, most of todays RS-485 transceivers require failsafe bias resistors: a pullup resistor on one line (A) and a pulldown on the other line (B), as shown in Figure 1. Historically, the failsafe bias resistors on most schematics were labeled 560Ω, but to reduce power loss (when terminating one end only) this value can be increased to approximately 1.1kΩ. Some designers terminate both ends with resistor values between 1.1kΩ and 2.2kΩ. The trade-off is noise immunity versus current draw.

Maxims MAX3080 and MAX3471 family of transceivers solved both of these problems by specifying a precise receiver-threshold range of -50mV to -200mV, thereby eliminating the need for failsafe bias resistors while complying fully with the RS-485 standard. These parts ensure that 0V at the receiver input produces a logic "high" output. Further, this design guarantees a known receiver-output state for the open- and shorted-line conditions.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top