Transcript
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Short Description Full- and half-duplex is supported for RS-485,
The SU4-SOPRANO is a peripheral slot card for ®
CompactPCI Serial systems, equipped with a
with up to 256 nodes on a bus. The line
PCI Express® eight channel UART (Universal
termination can be switched on/off individually.
Asynchronous Receiver Transmitter). All ports are available through Micro-D front panel
As an alternate, any particular port (TTL level)
connectors, and can be user configured
can be redirected to the optional backplane
individually for either RS-232 or RS-485 by
connectors P3 and P4, for rear I/O usage
means
together with a suitable rear I/O module.
of
DIP-switches.
The
on-board
transceivers allow for maximum bit rates up to 15Mbps when operated in RS-485 mode and
The SU4-SOPRANO fits into any CompactPCI®
up to 1Mbps in RS-232 mode.
Serial peripheral slot that is PCIe enabled.
SU4-SOPRANO
© EKF
-8-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Block Diagram
1
3
2
4
6
8
8 RS-232/ RS-485
8x SP337
RS-485
RS232/ 485 RS-232
SU4-SOPRANO
Simplified Block Diagram CompactPCI® Serial
© EKF • ekf.com
8 TTL
F/P I/O
8x
Rear I/O
TTL
MUX 1:2
8
Octal UART PI7C9X7958
PCI Express®
4
TTL
4
TTL
P6
Backplane CompactPCI Serial
P4
P3
Peripheral Slot
P1
ekf.com
-9-
© EKF
5
7
Front Panel I/O
www.ekf.com/s/su4/img/su4_blk.pdf
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Component Orientation
DSW1
DSW2
DSW3
DSW4
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
DSW5
DSW6
DSW7
DSW8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
P6
SU4-SOPRANO CompactPCI® Serial
© EKF • ekf.com
P4
P3
P1
SU4-SOPRANO • CompactPCI® Serial • © EKF • ekf.com
www.ekf.com/s/su4/img/su4_draft.pdf P3 and P4 are available as an ordering option, for alternative rear I/O. P6 is not populated by default. This connector can be provided on request for even more mechanical stability, e.g. railway applications.
© EKF
-10-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Front Panel
1
2
1
4
3
4
5
6
5
8
8
7
SU4-SOPRANO
www.ekf.com/s/su4/img/su4_fpl.pdf
© EKF
-11-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Technical Reference Port Configuration DIP Switches All eight serial I/O ports of the SU4-SOPRANO are built-up identical. The board is equipped with eight serial line transceivers, each configurable for either RS-232 or RS-485 operation. A particular DIPswitch array is assigned to any UART port, which allows to select between different operation modes, and also front or rear I/O. For front panel I/O, the switch #8 must be set to off. The illustration below shows the meaning for any switch #1 to #8.
RCV controlled by RTS DRV termination on
DRV controlled by RTS
RCV termination on
RS-485 mode
half duplex
rear I/O
ON
SU4-SOPRANO
© EKF
Dip-Switch Setup (One of 8 Ports)
ekf.com 1
2
3
4
5
6
7
8
full duplex
front I/O
RCV termination off
RS-232 mode *
DRV termination off
DRV enabled RCV enabled
* for RS-232 mode switches 1-8 must be set to off
Individual Port Configuration
www.ekf.com/s/su4/img/su4_dsw.pdf
© EKF
-12-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 RS-232 / RS-485 Setup Table Switch #7 allows to differentiate between RS-232 (off) and RS-485 (on). The switches #1 to #6 are in use for RS-485 mode only and should be set all to off for RS-232. The illustration below shows typical port setup configurations for RS-232 and RS-485. For front panel I/O set the associated switch #8 to off; for rear I/O set switch #8 to on.
SU4-SOPRANO Typical Dip-Switch Settings
front panel I/O
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
1
2
3
4
5
6
7
8
ON
front panel I/O
ON OFF
1
2
ON
ON OFF
OFF
OFF
1
2
3
4
5
ON
ON
ON
1
2
3
3
RS-485
ON
OFF
OFF
OFF
OFF
OFF
4
5
6
7
ON
ON
6
7
ON
ON
6
7
8
ON
front panel I/O
OFF
OFF
4
5
OFF
8
OFF
8
ON OFF
OFF
OFF
OFF
OFF
OFF
OFF
1
2
3
4
5
6
7
half duplex mode no line termination driver enabled with RTS
RS-485
ON
rear I/O
full duplex mode Rx line terminated driver permanently enabled
RS-485
ON
front panel I/O
RS-232
8
half duplex mode Rx line termination driver enabled with RTS
UART
TTL level signals directed to backplane connector
© EKF
ekf.com
Typical Setup for RS-232 and RS-485 Front I/O
www.ekf.com/s/su4/img/su4_dsw-settings.pdf
© EKF
-13-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Front Panel Connectors Due to space restrictions, the SU4-SOPRANO is provided with four stacked (dual) Micro-D male connectors, which are considerably smaller than standard D-Sub connectors and therefore allow a 4HP front panel for the board. The Micro-D pin assignment replicates the classic COM port 9-position D-SUB with respect to RS-232. For RS-485, the pinning is compelled by the internal SP337 transceiver circuitry.
SU4-SOPRANO Micro-D Front Panel Connectors Pin Assignment
RS-485 Full-Duplex
RS-485 Half-Duplex
B (RX-) Y (TX+)
Z (TX-) A (RX+)
B (Data-)
A (Data+)
GND
GND
© EKF ekf.com
Micro-D Connector
RS-232 DSR RTS CTS RI
Pin Assignment (Front View)
DCD RxD TxD DTR GND
6
9
1
5
Front Panel Connectors Pin Assignment
www.ekf.com/s/su4/img/su4_micro-d.pdf
© EKF
-14-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 RS-232 Transceiver Schematics If a port has been setup for RS-232 mode (DIP switch #1-8 off), the associated Micro-D front panel connector emulates the legacy COM port pin assignment, with 5 receivers, and three drivers. Pins not in use can be simply left unconnected.
RxD
UART TTL
CTS
UART TTL
DSR
UART TTL
RI
DCD
UART TTL
UART TTL
19
20
21
RS-232
SP337
22
23
26
26
26
26
26
15
16
17
18
24
RxD
CTS
DSR
DCD
RI
2
8
6
1
9
SU4-SOPRANO
Simplified RS-232 Transceiver Schematics (One of 8 Ports)
© EKF
ekf.com
5
GND
for RS-232 mode switches 1-8 must be set to off
ANSI/TIA EIA-232
3
7
4
TxD
RTS
DTR
1-9: RS-232
SP337
6
7
4
Micro-D
27
28
1
TxD
UART TTL
RTS
UART TTL
DTR
UART TTL
www.ekf.com/s/su4/img/su4_rs-232.pdf
© EKF
-15-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 RS-485 Transceiver Schematics
There are several configurations for the RS-485 mode, which are discussed in detail later on. The pin
assignment of the associated Micro-D front panel connector is enforced by the SP337 transceiver internal circuitry, which shares or multiplexes its RS-485 I/O leads with RS-232.
19
off: enabled on: RTS
26
RS-485
SP337
for RS-485 mode set switch 7 to on set switch 8 to off
RxD
UART TTL
RTS UART
5
© EKF
8
B
RS-485
A
ekf.com
16
15
2
fail safe bias R
1 - 2 off: full duplex 1 - 2 on: half duplex
1
GND
driver termination
120R
+3.3V
fail safe bias R
220nF or 0R
turn all switches off in case of RS-232
2 1 - 2 off: full duplex 1 - 2 on: half duplex
5 C (GND)
fail safe bias R
3 1-6: DIP Switch 4
220nF or 0R
fail safe bias R
+3.3V
120R
receiver termination
ANSI/TIA EIA-485-A GND
Y
2
27
SU4-SOPRANO
SP337
RS-485
6
7
6
TxD
UART TTL
UART
RTS
off: enabled on: RTS
Simplified RS-485 Transceiver Schematics (One of 8 Ports)
3
RS-485
Z
7
1-9:
Micro-D
ekf.com
-16-
© EKF
10k
GND
www.ekf.com/s/su4/img/su4_rs-485.pdf
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 RS-485 Line Termination
For signal integrity, both extreme ends of a RS-
By default, the internal termination is achieved
485 bus must be terminated, typically 120 Ohm
by 120 Ohm & 220nF placed in series (AC
between A/B and also Y/Z (full-duplex only),
termination). AC termination is used here to
ideally matching the
twisted pair cable
reduce the power consumption of idle links as
impedance. A popular approach is to use
well as to reduce ringing voltages. The negative
external termination, having the resistors
effect though is a reduction in cable length and
located within the shell of the Micro-D cable
bit rate. On request, the SU4-SOPRANO can be
connectors. As an alternate, the SU4-SOPRANO
manufactured with DC termination (0-Ohm as a
provides on-board DIP-switches (#3, #4),
replacement for 220nF), for maximum signal
which
integrity with long cables, at higher power
can
individually
activate
internal
consumption.
termination resistors on A/B and Y/Z.
RS-485 Half- and Full-Duplex
The RS-485 full-duplex mode is typically used
The RS-485 half-duplex mode (AKA multi-point
for point to point communication. The switches
or party line) allows for up to 256 nodes
#1 and #2 must be set to off. A four-plus- one
connected to a shared bus, via a two-plus-one
wire cable is used, to connect the inputs A, B of
wire cable. For half-duplex mode the switches
either node to the outputs Y, Z of the other
#1 and #2 must be set to on (send lines and
node. Since drivers and receivers are typically
receive lines tied together, signal naming
always enabled in full-duplex mode, switches
convention A, B). In addition, a master/slave
#5 and #6 should be set to off. Internal line
software protocol must be established which
termination would require to set the switches
compels that only one node is sending data at
#3 and #4 both to on.
the same time. Set switch #6 to on, for driver enable control via the RTS signal. If required, set
The maximum data transmission speed which
switch #5 to on for echo cancellation (receiver
can be achieved depends on the total cable
disable). For internal line termination, set either
length. A suitable twisted pair wire will allow
switch #3 or switch #4 to on, but not both.
15Mbps full throughput up to 10m distance,
Please bear in mind that only the two extreme
and up to 100kbps at 1200m. A linear bus
end nodes should be terminated.
topology is mandatory (not star).
© EKF
-17-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Is RS-485 a Two-Wire Connection?
Is RS-485 a two-wire ore a three-wire system? It
Where do we get the third wire? Many times
is most definitely a three wire system (four plus
the outer cable shield is used as the third (fifth)
one wire with respect to full-duplex operation).
wire. However, EKF recommends to use a two
The TIA standard (ANSI/TIA/EIA-485-A, page 15,
pair cable (three pairs for full-duplex operation),
A.4.1) requires the presence of a common
with one or both wires of the additional pair as
return path between all circuit grounds along
the dedicated common ground. Connect these
the balanced line for proper operation.
additional wires directly to the pin 5 of the Micro-D connector for proper grounding.
The TIA standard defines a maximum common mode voltage range from -7V to +12V on the
The optimum cable solution would comprise an
signal lines A and B, measured against C
inner shield for each signal twisted pair. The
(common ground). A TIA/EIA-485 system
inner shield can then be used for establishing
however with only two wires A and B (C
the common ground between TIA/EIA-485
generator and C receiver commons not
nodes (connect to pin 5 of the SU4-SOPRANO
connected) can result in an unpredictable
Micro-D connector).
common mode voltage superimposed on the interface lines A and B, caused either by
An additional outer cable shield, that may cover
electrostatic
the inner signal and ground cable pairs, should
charging
or
electromagnetic
interference.
be connected to the metallic shell of the Micro-D connector. This shield should be
A 2-wire system often may work though due to
grounded at one point only (isolate the shield at
idle-line fail-safe resistors at the receiver inputs,
the opposite cable end in order to avoid any
which can be considered as a loosely coupled
contact with the connector hood).
common ground. Nevertheless this operation mode cannot be recommended - what is working flawless in the laboratory may not work reliable under real conditions in an industrial environment.
© EKF
-18-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232
ANSI/TIA/EIA-485-A Interconnect Application
G
A
A' RT
© EKF • ekf.com
R
RT
B
B'
C
C' G = Generator • R = Receiver • RT = Termination Resistor A/A' = Generator/Receiver Interface Point B/B' = Generator/Receiver Interface Point C/C' = Generator/Receiver Common
www.ekf.com/s/su4/img/rs485_common_ground.pdf
Useful External Documents Wikipedia
RS-485 Three-wire connection https://en.wikipedia.org/wiki/RS-485#Three-wire_connection
Article/
RS485 Cables – Why you need 3 wires for 2 (two) wire RS485 •
Blog
www.chipkin.com/articles/rs485-cables-why-you-need-3-wires-for-2-two-wire-rs485
Application
AN960 • RS-485/RS-422 Circuit Implementation Guide •
Note
www.analog.com/static/imported-files/application_notes/AN-960.pdf
© EKF
-19-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 Micro-D Cables Some ready to use adapter cable assemblies are available from stock, Micro-D to D-Sub (female or male), designed for RS-232 operation, wired straight pin to pin. No TXD/RXD cross-over is included, as would be required for DCE to DCE communication (e.g. two SU4-SOPRANO ports connected). These cables may not be suitable for RS-485. Neither full-duplex operation cross-over wiring of signals Y, Z to A, B (driver output to receiver input) is supported, nor twisted pair differential signal wiring. If used as a patch cable to the RS-485 bus, the maximum data transmission rate may be reduced.
EKF Part Numbers Micro-D Cable Assemblies RS-232 259.901.0009.18
Micro-D to Micro-D cable assembly, 9 circuits, 1.8m, female to female connectors
259.921.0009.18
Micro-D to D-SUB cable assembly, 9 circuits, 1.8m, Micro-D female connector to male D-SUB
259.931.0009.18
Micro-D to D-SUB cable assembly, 9 circuits, 1.8m, Micro-D female connector to female D-SUB
259.951.0009.18
Micro-D single ended cable assembly, 9 circuits, 1.8m, Micro-D female connector to pigtail
© EKF
-20-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232
Custom Specific Cable Assembly
Micro-D to Micro-D Cable Assembly
© EKF
-21-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232
Micro-D to D-SUB Cable Assembly
Micro-D to Hirose Circular Connector Cable Assembly
© EKF
-22-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 CompactPCI® Serial Backplane Connectors Rear I/O Connectors P3, P4 Any of the eight SU4-SOPRANO UART ports can be configured for rear I/O usage. TTL level signal switches are used to branch all eight signals of a particular UART port either to the physical transceivers for front panel I/O, or to one of the rear I/O connectors P3, P4. A suitable rear I/O module would be required for rear I/O operation, which provides the physical transceivers and rear panel I/O connectors. Population of P3, P4 may be optional - please consider your requirements before ordering. P4 CompactPCI® Serial Peripheral Slot Backplane Connector Type B EKF Part #250.3.1208.20.00 • 96 pos. 12x8, 16mm Width
P4 8
A GND
UART
7
B
C
UART
UART
SER8
SER8
RXD
DSR#
UART
SER7
SER7
RXD
DSR# UART
6
GND
UART
5 4
GND
SER6 DSR#
UART SER5 DSR#
GND
F
UART
UART
SER8
SER8
CTS#
DCD#
UART
SER7
SER7 DCD# UART
GND
UART GND
E
CTS# UART
RXD
RXD
GND
UART
SER6
SER5
D
SER6
SER6
CTS#
DCD#
UART
SER5
SER5
CTS#
DCD#
1
+12V
GND
GND
I
UART
UART
SER8
SER8
RI#
TXD
UART
UART
SER7
SER7
RI#
TXD
GND
+12V
GND
UART
SER6
SER6
RI#
TXD
UART
UART
SER5
SER5
RI#
TXD
GND
GND
GND
K
L
UART
UART
SER8
SER8
RTS#
DTR#
UART
SER7
SER7
RTS#
DTR# UART
GND
UART
UART
SER6
SER6
RTS#
DTR#
UART
SER5
SER5
RTS#
DTR#
GND
+3.3V
GND
GND
GND
GND
+12V
J
UART
UART
GND
GND
+12V
H
GND
GND
GND
GND
UART
GND
3 2
GND
G
GND
GND
+3.3V
GND
+3.3V
+3.3V
GND
all signals TTL level compliant, +3.45V maximum input voltage
© EKF
-23-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232
P3 CompactPCI® Serial Peripheral Slot Backplane Connector Type B EKF Part #250.3.1208.20.00 • 96 pos. 12x8, 16mm Width
P3
A
8
GND
7 6 5 4
B
C
UART
UART
SER4
SER4
RXD
DSR#
UART
UART
SER3
SER3
RXD
DSR#
GND
GND
UART
UART
SER2
SER2
RXD
DSR#
UART
UART
SER1
SER1
RXD
DSR#
GND
GND
D GND
E
F
UART
UART
SER4
SER4
CTS#
DCD#
UART
UART
SER3
SER3
CTS#
DCD#
GND
UART
UART
SER2
SER2
CTS#
DCD#
UART
UART
SER1
SER1
CTS#
DCD#
1
+12V
GND
I
UART
UART
SER4
SER4
RI#
TXD
UART
UART
SER3
SER3
RI#
TXD
GND
+12V
GND
UART
UART
SER2
SER2
RI#
TXD
UART
UART
SER1
SER1
RI#
TXD
GND
GND
GND
K
L
UART
UART
SER4
SER4
RTS#
DTR#
UART
UART
SER3
SER3
RTS#
DTR#
GND
+3.3V
GND
UART
UART
SER2
SER2
RTS#
DTR#
UART
UART
SER1
SER1
RTS#
DTR#
GND
GND
+12V
J
GND
GND
GND
GND
+12V
GND
H
GND
GND
GND
GND
GND
3 2
GND
G
GND
GND
+3.3V
GND
+3.3V
+3.3V
GND
all signals TTL level compliant, +3.45V maximum input voltage
© EKF
-24-
ekf.com
SU4-SOPRANO • CompactPCI® Serial • RS-485/RS-232 CompactPCI® Serial Peripheral Slot Connector P1 The SU4-SOPRANO is equipped with a PCI Express® based UART (Gen1 single lane). The card can be inserted in any PCIe enabled peripheral slot of the CompactPCI® Serial backplane for proper operation. P1 CompactPCI® Serial Peripheral Slot Backplane Connector EKF Part #250.3.1206.20.02 • 72 pos. 12x6, 14mm Width
P1
A
6
GND
5 4 3
B PE
PE
TX02+
TX02-
PE
PE
TX00+
TX00-
GND
USB2+
USB3
USB3
TX+
TX-
2
GND
1
+12V
C
GND
USB2-
GA0
I2C
I2C
SCL
SDA
STBY
GND
D GND
E PE
PE
RX02+
RX02-
PE
PE
RX00+
RX00-
GND
F
GND
PE
PE
CLK+
CLK-
USB3
USB3
RX+
RX-
GND
RSV
+12V
+12V
G GND
H PE
PE
TX03+
TX03-
PE
PE
TX01+
TX01-
GND
I
GND
SATA
SATA
TX+
TX-
J GND
PE RX03-
PE RX01-
SATA
SDI
SDO
RSV
GND
RST#
WAKE#
GND
GND
+12V
+12V
GND
+12V
GA2
PE
PE
GND
L
RX03+
RX01+
SATA
GA1
K
GND
SATA
SATA
RX+
RX-
SATA
SATA
SCL
SL
GA3
PE
SYS
EN#
EN#
+12V
GND
pin positions printed white/grey: not connected
© EKF
-25-
ekf.com