RS485 Bus接口

2012-04-25 10:51:54来源: 互联网

RS485 Bus is a serial communication bus with differential signal travel along the bus and sends the information from one point to another point. The maximum length of the bus is around 1000 m. The bus is allowing multi-master or single master, as long as only one point is sending data at a time on half duplex network. 

Since RS485 is a multi-drop point bus, a communication protocol is needed between the units. The bus protocol normally starts with the address byte of the receiver, then follow by the data bytes. The address byte will trigger the receiver with the right address to receive the data bytes.  

Referencing to our MMS Kit, the onboard NXP SC16IS752 Bridge IC has dual UART engine. One of the UART port is connected to the ADI ADM2486 RS485 iCoupler transceiver IC. This component is configured with RS485 multi-drop topology and it can support up to 50 other ports in the bus system. 

The WPG MMS Kit’s RS485 transceivers have to be connected in daisy chain topology. The master will initialize or start the communication by sending a request to the particular client unit. The client unit has to response to the master requests packet. The Receive Address byte has parity bit or the bit-9 is 1, while the consequently data bytes have the parity bit or the bit-9 is 0. This is the byte format for multi-drop UART. There are 11bits in the multi-drop UART format. Below is the message or packet format travel along the bus.

Rcv Address - Receiver address.
nByte - number of byte in the packet.
Sender Address - Sender address
Command - refer to certain action to the receiver, such as, request for data.
Data bytes - contain the data bytes that request by the requester.
CheckSum - Checksum for the packet.


The master also can send a broadcast message to all clients, normally the clients will not respond to the broadcast message. All the clients will instead receive and decode the address byte of which the bit-9 being a 1. If the Receive Address byte is the address assigned for the particular client, the RS485 engine of that client will be activated to continue to receive the data bytes (bit-9 is 0). 

The master starts the communication by sending out the “request” to the client. If the client has no data to send, it replies with “no data to send”. The master will then send “request” to another client. If there is data available, it feedback with “has data to send” signal to master. Subsequently the master informs the client with the “ready to receive” message when it is ready to receive data from the client. After the client received the “ready to receive” message from master, it replies with the data payload packet to the host. The master acknowledge with “ACK” for the data payload packet. 

Although RS485 communication has been around for a while, it is still seen as an effective way of interconnecting different digital application for network communication. While the higher end of wired communication is replaced by Ethernet, RS485 is still useful as simple solution to industrial applications. We will continue to see extension of life for this technology. 

关键字:RS485  Bus  接口

编辑:神话 引用地址:http://www.eeworld.com.cn/mndz/2012/0425/article_15832.html
本网站转载的所有的文章、图片、音频视频文件等资料的版权归版权所有人所有,本站采用的非本站原创文章及图片等内容无法一一联系确认版权者。如果本网所选内容的文章作者及编辑认为其作品不宜公开自由传播,或不应无偿使用,请及时通过电子邮件或电话通知我们,以迅速采取适当措施,避免给双方造成不必要的经济损失。
论坛活动 E手掌握
微信扫一扫加关注
论坛活动 E手掌握
芯片资讯 锐利解读
微信扫一扫加关注
芯片资讯 锐利解读
推荐阅读
全部
RS485
Bus
接口

小广播

独家专题更多

富士通铁电随机存储器FRAM主题展馆
富士通铁电随机存储器FRAM主题展馆
馆内包含了 纵览FRAM、独立FRAM存储器专区、FRAM内置LSI专区三大部分内容。 
走,跟Molex一起去看《中国电子消费品趋势》!
走,跟Molex一起去看《中国电子消费品趋势》!
 
带你走进LED王国——Microchip LED应用专题
带你走进LED王国——Microchip LED应用专题
 
电子工程世界版权所有 京ICP证060456号 京ICP备10001474号 电信业务审批[2006]字第258号函 京公海网安备110108001534 Copyright © 2005-2016 EEWORLD.com.cn, Inc. All rights reserved