RS–485
An application may implement a node as either the “host” node or as a “remote”
node in an RS–485 network. There can be as many as 32 nodes without any bus
repeaters in the network. A host is referred to as the node that initiates
communication; a remote is referred to as a node that is addressed by the host.
In any given communication sequence in an RS–485 network, there can only be one
host. The host is responsible for initiating communication, maintaining network
registration, and providing housekeeping tasks with other nodes. Remotes,
however, cannot initiate a communication. They can only respond to messages that
are addressed to them from the host.
The devices at each end of an RS–485 network must be terminated. Any node
located between the end points should not be terminated. The 5266 optionally
terminates with a 100 ohm resistor. Refer to table 4–2 on page 47.
Figure 4–4 shows a typical RS–485 network. Note that for 2-wire RS–485 networks
the transmit and receive pairs must be connected together external to the 5266
(TXD+ tied to RXD+, TXD– tied to RXD–).
The RTS* signal is used to control the transmitter and receiver in RS–485 mode.
The RTS* signal is controlled by the Modem Control Register bit 1 (MCR[1], which
is offset 0x04 from the UART base address). Writing MCR[1] to 0 (default state)
sets RTS* to an inactive state (RTS* = logic high) and DISABLES the RS–485
Transmitter and ENABLES the Receiver. Writing MCR[1] to 1 sets RTS* to an
active state (RTS* = logic low), and ENABLES the RS–485 Transmitter and
DISABLES the RS–485 Receiver.
Figure 4–4
Typical RS–485 two–wire half duplex interface circuit
RX –
RX –
DI
DE
RO
RE
DE
DE
Xmitter
TX +
TX –
Receiver RX +
DI
RO
RE
100
Ω
100
Ω
TX +
Xmitter
Receive
Receiver
Receiver
Xmitter
Xmitter
RX +
DI
120
RE
RO
DI
DE
RO
RE
50
Содержание 5266
Страница 18: ...Figure 2 1 5266 component diagram top 18 ...
Страница 19: ...Figure 2 2 5266 component diagram bottom 19 ...
Страница 20: ...Figure 2 3 5266 dimensions inches 20 ...
Страница 21: ...Figure 2 4 5266 dimensions mm 21 ...