EXAR SP336ECT-L

SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
MARCH 2010
GENERAL DESCRIPTION
The SP336E is a monolithic serial multi-transceiver
device that contains both RS-232 and RS-485/RS422 line drivers and receivers. The configuration of
the SP336E can be reconfigured into eight operating
modes including RS-232 only (4TX/4RX), RS-485/
RS-422 only (2TX/2RX) full or half duplex, two RS232/RS-485 mixed modes. two shutdown modes and
a diagnostic loop-back mode. Modes may be
selected at any time by changing the logic state of the
three MODE pins. The device can implement a dualmode serial port, mixed mode ports or as an interface
signal translator. The Exar charge pumps deliver true
RS-232 driver output voltages from a single power
supply at either 3.3V or 5V. The SP336E requires
only four 0.1μF capacitors for charge pump. A slew
rate control pin configures driver outputs for either
high data rate or slew-controlled data rates. Slewcontrolled outputs minimize problems with reflections
and ringing on long or un-terminated cables. All RS485 receivers or transceivers feature high impedance
which allow up to 256 transceivers on a shared bus.
When configured in RS-485/RS-422 mode, each
driver may be individually enabled or put into tri-state,
simplifying use on shared buses or bidirectional
communication. All receivers have advanced failsafe
protection to prevent oscillation when inputs are unconnected. In RS-232 mode each receiver input has
a 5k ohm pull-down to ground. Differential Receivers
will default to output logic 1 if inputs are floating,
shorted or open but terminated. All driver outputs and
receiver inputs are protected against ESD strikes up
to +/-15,000 volts.
REV. 1.0.0
FEATURES
• 3.3V or 5V Single Supply Operation
• Robust +/-15kV ESD Protection (IEC 61000-4-2 Air
Gap)
• Software Selectable Mode Selection
• Up to 4 Drivers, 4 Receivers RS-232/V.28
• Up to 2 Drivers, 2 Receivers RS-485/RS-422
■
Full or Half Duplex Configurations
■
1/8th Unit Load, up to 256 receivers on bus
• Mixed RS-232/RS-485 modes
• Pin Programmable Slew Rate for Reduced EMI
• RS-485 Advanced Failsafe on Open, Short or
Terminated Lines
• Diagnostic Loop-Back Function
• 28 Pin SOIC or TSSOP Packaging
TYPICAL APPLICATIONS
• Factory Automation Equipment
• Security Networks
• Industrial/Process Control Networks
• Point-Of-Sales Equipment
• Gaming Machines
• Serial Protocol Translators (ex. RS-232 to RS-485/
RS-422)
• Embedded Industrial PC’s
• Building Environmental Control Systems (ex.
HVAC)
• Cable Repeaters / Port Extenders / Hubs
Exar Corporation 48720 Kato Road, Fremont CA, 94538 • (510) 668-7000 • FAX (510) 668-7017 • www.exar.com
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 1. TYPICAL RS-232 APPLICATION CIRCUIT
2
REV. 1.0.0
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 2. PIN OUT ASSIGNMENT
T4_In
1
28
T3_In
MODE_1
2
27
T2_In
T4_Out
3
26
T1_In
4
25
SLEW
Vcc
5
24
MODE_0
T1_Out
6
23
MODE_2
T2_Out
7
22
R4_Out
GND
8
21
R3_Out
C1+
9
20
R2_Out
V+
10
19
R1_Out
C2+
11
18
R4_In
C1-
12
17
R3_In
C2-
13
16
R2_In
V-
14
15
R1_In
T3_Out
SP336E
SOIC/
TSSOP
ORDERING INFORMATION
PART NUMBER
PACKAGE
OPERATING TEMPERATURE
RANGE
DEVICE STATUS
SP336ECT-L
28-pin SOIC-W
0°C to +70°C
Active
SP336ECY-L
28-pin TSSOP
0°C to +70°C
Active
SP336EET-L
28-pin SOIC-W
-40°C to +85°C
Active
SP336EEY-L
28-pin TSSOP
-40°C to +85°C
Active
3
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 3. TYPICAL RS-485 APPLICATION CIRCUIT
4
REV. 1.0.0
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
PIN DESCRIPTIONS
Pin Assignments
DESCRIPTION
PIN NUMBER
PIN NAME
TYPE
1
T4_In
I
2
Mode_1
I
3
T4_Out
O
T4 Driver Output.
T3(A) Output.
T3(A) Output,
R3(A) Input.
4
T3_Out
O
T3 Driver Output.
T3(B) Output.
T3(B) Output,
R3(B) Input.
5
Vcc
Pwr
6
T1_Out
O
T1 Driver Output.
T1(A) Output.
T1(A) Output,
R1(A) Input.
7
T2_Out
O
T2 Driver Output.
T1(B) Output.
T1(B) Output,
R1(B) Input.
8
GND
Pwr
Ground.
9
C1+
Pmp
Positive terminal of positive flying capacitor.
10
V+
Pmp
Vdd storage capacitor.
11
C2+
Pmp
Positive terminal of negative flying capacitor.
12
C1-
Pmp
Negative terminal of positive flying capacitor.
13
C2-
Pmp
Negative terminal of negative flying capacitor.
14
V-
Pmp
Vss storage capacitor.
15
R1_In
I
R1 Receiver Input.
R1(A) Receiver Input.
High Impedance.
16
R2_In
I
R2 Receiver Input.
R1(B) Receiver Input.
R2 Receiver Input.
17
R3_In
I
R3 Receiver Input.
R3(A) Receiver Input.
High Impedance.
18
R4_In
I
R4 Receiver Input.
R3(B) Receiver Input.
R4 Receiver Input.
19
R1_Out
I
20
R2_Out
I
21
R3_Out
I
22
R4_Out
I
23
Mode_2
I
Mode Configuration pin 2.
24
Mode_0
I
Mode Configuration pin 0.
25
SLEW
I
Slew Rate Control. Logic Low input will limit driver slew from either RS-232
or RS-485 to 250kbps.
26
T1_In
I
T1 Driver Input.
SINGLE ENDED
FULL-DUPLEX
HALF-DUPLEX
T4 Driver TTL input.
T3 Driver Enable
Active High.
T3 Driver Enable
Active High, R3 Enable
Active Low.
Mode Configuration pin 1.
Power Supply Voltage.
R1 Receiver Output.
R2 Receiver Output.
High Impedance.
R2 Receiver Output.
R3 Receiver Output.
R4 Receiver Output.
5
High Impedance.
R4 Receiver Output.
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
Pin Assignments
PIN NUMBER
PIN NAME
TYPE
27
T2_In
I
28
T3_In
I
DESCRIPTION
SINGLE ENDED
T2 Driver Input.
FULL-DUPLEX
T1 Driver Enable Active T1 Driver Enable Active
High.
High and R1 Receiver
Enable Active Low.
T3 Driver Input.
Pin type: I=Input, O=Output, Pwr=Power supply, Pmp = Charge pump.
6
HALF-DUPLEX
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
MODE CONFIGURATION
OPERATION:
MODE (M0, M1, M2)
RS-232 MODE
MIXED-PROTOCOL FULL DUPLEX
4T/4R RS-232
2T/2R RS-232 & 1T/1R RS-485
001
011
7
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
MODE CONFIGURATION (CONTINUED)
OPERATION:
MODE (M0, M1, M2)
LOW POWER SHUTDOWN
RS-485/RS-422 FULL DUPLEX
ALL I/O AT HIGH IMPEDANCE
2T/2R RS-485
111
101
8
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
MODE CONFIGURATION (CONTINUED)
OPERATION:
MODE (M0, M1, M2)
LOOP-BACK TXIN TO RXOUT
MIXED-PROTOCOL HALF DUPLEX
TXOUT AND RXIN HIGH IMPEDANCE
2T/3R RS-232 & 1T/1R RS-485
000
010
9
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
MODE CONFIGURATION (CONTINUED)
OPERATION:
MODE (M0, M1, M2)
LOW POWER, 4 RX ACTIVE
RS-485/RS-422 HALF DUPLEX
DRIVERS AT HIGH IMPEDANCE
4T/2R RS-485 & 2R RS-232
110
100
10
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
ABSOLUTE MAXIMUM RATINGS
These are stress ratings only and functional operation of the device at these ratings or any other above those indicated in the operation sections to the
specifications below is not implied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability and cause permanent
damage to the device.
Supply Voltage VCC
+6.0V
Receiver Input VIN (DC Input Voltage)
-15V to +15V
Input Voltage at TTL input Pins
-0.3V to Vcc + 0.5V
Driver Output Voltage (from Ground)
-7.5V to +12.5V
Short Circuit Duration, TXout to GND
Continuous
Storage Temperature Range
-65°C to + 150°C
Lead Temperature (soldering, 10s)
+300°C
Power Dissipation 28-pin SOIC-W
(derate 17mW/°C above +70°C)
938mW
Power Dissipation 28-pin TSSOP
(derate 12mW/°C above +70°C)
657mW
CAUTION:
ESD (Electrostatic Discharge) sensitive device. Permanent damage may occur on unconnected devices subject to high energy electrostatic fields. Unused
devices must be stored in conductive foam or shunts. Personnel should be properly grounded prior to handling this device. The protective foam should be
discharged to the destination socket before devices are removed.
ELECTRICAL CHARACTERISTICS
UNLESS OTHERWISE NOTED: VCC = +3.3V +/-5% OR +5.0V +/-5%; TA = TMIN TO TMAX. TYPICAL VALUES ARE AT
VCC = 3.3V, TA = +25OC.
SYMBOL
PARAMETERS
MIN.
TYP.
MAX.
UNITS
CONDITIONS
DC CHARACTERISTICS
ICC
Supply Current (RS-232)
2
30
mA
No Load, MODE = 001.
ICC
Supply Current (RS-485)
6.5
20
mA
No Load, MODE = 101.
ICC
Vcc Shutdown Current
1
20
μA
MODE = 111.
TRANSMITTER and LOGIC INPUT PINS: Pins 1, 2, 23, 24, 25, 26, 27, 28
VIH
Logic Input Voltage HIGH
2.0
V
Vcc = 3.3V.
VIH
Logic Input Voltage HIGH
2.4
V
Vcc = 5.0V.
VIL
Logic Input Voltage LOW
IIL
Logic Input Pull-up Current
VHYS
Logic Input Hysteresis
0.8
V
+/-15
μA
0.5
V
RS-232 and RS-485/422 RECEIVER OUTPUTS: Pins 19, 20, 21, 22
VOH
Receiver Output Voltage HIGH
VOL
Receiver Output Voltage LOW
IOSS
Receiver Output Short-Circuit
Current
Vcc0.6
+/-20
11
V
IOUT = -1.5mA.
0.4
V
IOUT = 2.5mA.
+/-60
mA
0 < Vo < Vcc.
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
UNLESS OTHERWISE NOTED: VCC = +3.3V +/-5% OR +5.0V +/-5%; TA = TMIN TO TMAX. TYPICAL VALUES ARE AT
VCC = 3.3V, TA = +25OC.
SYMBOL
IOZ
PARAMETERS
MIN.
Receiver Output Leakage Current
TYP.
MAX.
UNITS
+/0.05
+/-1
μA
+15
V
CONDITIONS
Receivers Disabled.
SINGLE-ENDED RECEIVER INPUTS (RS-232)
Input Voltage Range
-15
Input Threshold Low
0.6
1.2
V
VCC = 3.3V.
0.8
1.5
V
VCC = 5.0V.
Input Threshold HIGH
Input Hysteresis
1.5
2.0
V
VCC = 3.3V.
1.8
2.4
V
VCC = 5.0V.
0.5
Input Resistance
3
5
V
7
kΩ
DIFFERENTIAL RECEIVER INPUTS (RS-485 / RS-422)
RIN
Receiver Input Resistance
VTH
Receiver Differential Threshold Voltage
ΔVTH
IIN
kΩ
96
-200
Receiver Input Hysteresis
-125
-50
30
Input Current
-7V ≤ VCM ≤ +12V.
mV
mV
VCM = 0V.
125
μA
DE = 0V, VIN = 12V, Full-Duplex.
-100
μA
DE = 0V, VIN = -7V, Full-Duplex.
SINGLE-ENDED DRIVER OUTPUTS (RS-232)
VO
Output Voltage Swing
+/-5.0
Short Circuit Current
Power Off Impedance
300
V
Output Loaded with 3kΩ to
GND.
+/-6.0
V
No Load Output.
+/-60
mA
+/-5.4
10M
VO = 0V.
Ω
Vcc = 0V; VO = +/-2V.
DIFFERENTIAL DRIVER OUTPUTS (RS-485 / RS-422)
VOD
Differential Driver Output (Tx_Out)
2
Vcc
V
RL = 100Ω (RS-422), Figure 4.
1.5
Vcc
V
RL = 54Ω (RS-485), Figure 4.
1.5
Vcc
V
VCM = -7V, Figure 5.
1.5
Vcc
V
VCM = +12V, Figure 5.
-0.2
+0.2
V
RL = 54Ω or 100Ω, Figure 4.
ΔVOD
Change In Magnitude of Differential
Output Voltage
VOC
Driver Common Mode Output Voltage
3
V
RL = 54Ω or 100Ω, Figure 4.
ΔVOC
Change In Magnitude of Common
Mode Output Voltage
0.2
V
RL = 54Ω or 100Ω, Figure 4.
Driver Output Short Circuit Current
+/-250
mA
V = +12V to -7V, Figure 6.
Output Leakage Current
+/-100
μA
DE = 0V or Shutdown, VO =
+12V to -7V.
IO
12
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
UNLESS OTHERWISE NOTED: VCC = +3.3V +/-5% OR +5.0V +/-5%; TA = TMIN TO TMAX. TYPICAL VALUES ARE AT
VCC = 3.3V, TA = +25OC.
SYMBOL
PARAMETERS
MIN.
TYP.
MAX.
UNITS
CONDITIONS
ESD PROTECTION
ESD Protection for Rx_In and
Tx_Out pins
All Other Pins
+/-15
kV
IEC 61000-4-2 Air Discharge.
+/-8
kV
IEC 61000-4-2 Contact
Discharge.
+/-15
kV
Human Body Model.
+/-2
kV
Human Body model.
TIMING CHARACTERISTICS
RS-232 (SLEW = GND, 250kbps, ONE TRANSMITTER SWITCHING)
Maximum Data Rate
tPHL, tPLH
250
kbps
RL = 3kΩ, CL = 1000pF.
Receiver Propagation Delay
100
ns
CL = 150pF.
⏐tPHL-tPLH⏐
Receiver Skew
50
ns
CL = 150pF.
⏐tPHL-tPLH⏐
Driver Skew
100
ns
tTHL, tTLH
Transition-Region Slew Rate from
+3.0V to -3.0V or -3.0V to +3.0V
6
30
V/μs
Vcc = 3.3V, TA =25°C, RL = 3kΩ
to 7kΩ, CL = 150pF to 1000pF,
Figures 20 and 21.
RS-232 (SLEW = Vcc, 1Mbps, ONE TRANSMITTER SWITCHING)
Maximum Data Rate
tPHL, tPLH
1
Mbps RL = 3kΩ, CL = 250pF.
Receiver Propagation Delay
100
ns
CL = 150pF,
Figures 22 and 23.
⏐tPHL-tPLH⏐
Receiver Skew
50
ns
⏐tPHL-tPLH⏐
Driver Skew
25
ns
Transition-Region Slew Rate from
+3.0V to -3.0V or -3.0V to +3.0V
90
V/μs
Vcc = 3.3V, RL = 3kΩ to 7kΩ,
CL = 150pF to 1000pF.
250
kbps
RDIFF = 54Ω, CL = 50pF.
tTHL, tTLH
CL = 150pF.
RS-485/RS-422 (SLEW = GND, 250kbps, ONE TRANSMITTER SWITCHING)
Maximum Data Rate
tDPHL, tDPLH
Differential Output Propagation
Delay Time
250
1500
ns
Figures 7 and 8.
Driver Rise and Fall Time
200
1500
ns
Figures 7 and 8.
Driver Propagation Delay Skew
200
ns
Figures 7 and 8.
tDZH, tDZL
Driver Output Enable Time
900
ns
Figures 9, 10, 11 and 12.
tDHZ, tDLZ
Driver Output Disable Time
900
ns
Figures 9, 10, 11 and 12.
tPHL, tPLH
Receiver Propagation Delay
150
ns
Figures 13 and 14.
tR, tF
⏐tDPHLtDPLH⏐
tZH
Receiver Enable to Output High
50
ns
Figures 15 and 16.
tZL
Receiver Enable to Output Low
50
ns
Figures 15 and 17.
tHZ
Receiver Output High to Disable
50
ns
Figures 15 and 18.
13
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
UNLESS OTHERWISE NOTED: VCC = +3.3V +/-5% OR +5.0V +/-5%; TA = TMIN TO TMAX. TYPICAL VALUES ARE AT
VCC = 3.3V, TA = +25OC.
SYMBOL
tLZ
PARAMETERS
MIN.
Receiver Output Low to Disable
TYP.
MAX.
50
UNITS
ns
CONDITIONS
Figures 15 and 19.
RS-485/RS-422 (SLEW = Vcc, 10Mbps, ONE TRANSMITTER SWITCHING)
Maximum Data Rate
tDPHL, tDPLH
10
Mbps RDIFF = 54Ω, CL = 50pF.
Differential Output Propagation
Delay Time
60
120
ns
Figures 7 and 8.
Driver Rise and Fall Time
10
25
ns
Figures 7 and 8.
Driver Propagation Delay Skew
10
ns
Figures 7 and 8.
tDZH, tDZL
Driver Output Enable Time
900
ns
Figures 9, 10, 11 and 12.
tDHZ, tDLZ
Driver Output Disable Time
900
ns
Figures 9, 10, 11 and 12.
tPHL, tPLH
Receiver Propagation Delay
150
ns
Figures 13 and 14.
tR, tF
⏐tDPHLtDPLH⏐
tZH
Receiver Enable to Output High
32
ns
Figures 15 and 16.
tZL
Receiver Enable to Output Low
32
ns
Figures 15 and 17.
tHZ
Receiver Output High to Disable
40
ns
Figures 15 and 18.
tLZ
Receiver Output Low to Disable
40
ns
Figures 15 and 19.
14
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
1.0 FUNCTION TABLES
The SP336E drivers and receivers may be configured to operate as either standard RS-485/RS-422 or RS-232
devices. RS-485/RS422 drivers have differential outputs and receivers have differential inputs. RS-232 drivers
and receivers are single-ended with inverting outputs.
TABLE 1: R-485/RS-422 FULL DUPLEX: MODE 011 (T3, R3), MODE 101 (T1, T3, R1, R3)
DRIVERS
RECEIVERS
Inputs
Outputs
Inputs
Output
Tx_EN
Tx_In
Tx(A)
Tx(B)
Rx(A) - Rx(B)
RxOut
1
1
0
1
> -50mV
1
1
0
1
0
≤ -200mV
0
0
x
Open / Shorted
1
High-Z
TABLE 2: R-485/RS-422 HALF DUPLEX: MODE 010 (T3, R3), MODE 100 (T1, T3, R1, R3)
TRANSMITTING
RECEIVING
Inputs
Outputs
Inputs
Outputs
DE/RE
TxIn
Tx(A)
Tx(B)
DE/RE
Rx(A) - Rx(B)
RxOut
1
1
0
1
1
x
High-Z
1
0
1
0
1
x
High-Z
0
> -50mV
1
0
x
High-Z
High-Z
0
≤ -200mV
0
0
Open / Shorted
1
TABLE 3: RS-232 MODE 001 (ALL TX AND RX), MODES 011, 010 (T1, T2, R1, R2), MODE 110 (R1- R4)
DRIVERS
RECEIVERS
Input
Output
Input
Output
0
≥ 5V
≥ 3V
0
1
≤ -5V
≤ -3V
1
Open
≤ -5V
Open
1
15
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 4. RS-485 DRIVER DC TEST CIRCUIT
RL/2
DI
VOD
T
RL/2 VOC
VCC
FIGURE 5. RS-485 DRIVER COMMON MODE LOAD TEST
DE = 3.3V
375Ω
A
DI = 0 or Vcc
Tx
60Ω
VOD
B
375Ω
FIGURE 6. RS-485 DRIVER OUTPUT SHORT CIRCUIT TEST
EN = 0 or Vcc
DI = 0 or Vcc
A
IOSD
D
B
100Ω
-7V to +12V V
16
VCM
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 7. RS-485 DRIVER PROPAGATION DELAY TEST CIRCUIT
RL
54Ω
A
DI
Tx
CL
50pF
VOD
B
3.3V
FIGURE 8. RS-485 DRIVER TIMING DIAGRAM
Vcc
Vcc/2
DI
Vcc/2
0V
B
t PLH
t PHL
VO 1/2VO
1/2VO
A
VDIFF
VA – VB
t DPLH
VO+
0V
VO–
t DPHL
90%
10%
tF
90%
10%
tR
t SKEW = |t DPLH - t DPHL|
FIGURE 9. RS-485 DRIVER ENABLE AND DISABLE TEST CIRCUIT
A
Vcc
DI
S1
Tx
OUT
B
CL = 50pF
GENERATOR
50Ω
17
RL = 500Ω
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 10. RS-485 DRIVER ENABLE AND DISABLE TIMING DIAGRAM
Vcc
DE
Vcc/2
0
tDZH
0.25V
OUT
VOM = (VOL + Vcc)/2
0
tDHZ
FIGURE 11. RS-485 DRIVER ENABLE AND DISABLE TEST CIRCUIT 2
Vcc
RL = 500Ω
A
0
DI
S1
Tx
OUT
B
CL = 50pF
GENERATOR
50Ω
FIGURE 12. RS-485 DRIVER ENABLE AND DISABLE TIMING DIAGRAM 2
Vcc
Vcc/2
DE
0
tDZL
tDLZ
OUT
VOL
VOM = (VOL + Vcc)/2
18
0.25V
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 13. RS-485 RECEIVER PROPAGATION DELAY TEST CIRCUIT
A
VID
B
R
OUT
CL
15pF
RE
FIGURE 14. RS-485 RECEIVER PROPAGATION DELAY TIMING DIAGRAM
+1V
A
B
-1V
t PHL
t PLH
VOH
1.5V
VOL
OUT
FIGURE 15. RS-485 RECEIVER ENABLE AND DISABLE TIMES TEST CIRCUIT
OUT
1.5V
S1
S3
A
-1.5V
B
Vcc
1kΩ
R
S2
RE
CL= 15pF
GENERATOR
50Ω
19
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 16. RS-485 RECEIVER ENABLE AND DISABLE TIMES TIMING DIAGRAM 1
S1 is open, S2 is closed, S3 = 1.5V
3V
1.5V
RE
t ZH
VOH
OUT
VOH /2
0V
FIGURE 17. RS-485 RECEIVER ENABLE AND DISABLE TIMES TIMING DIAGRAM 2
S1 is closed, S2 is open, S3 = -1.5V
3V
1.5V
RE
t ZL
0V
VCC
OUT
VOL= VCC /2
VOL
20
REV. 1.0.0
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 18. RS-485 RECEIVER ENABLE AND DISABLE TIMES TIMING DIAGRAM 3
S1 is open, S2 is closed, S3 = 1.5V
3V
RE
1.5V
tHZ
0.25V
VOH
0V
OUT
FIGURE 19. RS-485 RECEIVER ENABLE AND DISABLE TIMES TIMING DIAGRAM 4
S1 is closed, S2 is open, S3 = -1.5V
3V
RE
1.5V
0V
t LZ
VCC
OUT
0.25V
VOL
FIGURE 20. RS-232 DRIVER OUTPUT SLEW RATE TEST CIRCUIT
Tx
GENERATOR
OUT
CL
50Ω
21
RL
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
FIGURE 21. RS-232 DRIVER OUTPUT SLEW RATE TIMING DIAGRAM
3V
Input
1.5V
0
+3V
OUT
-3V
VOL
tTHL
tTLH
FIGURE 22. RS-232 RECEIVER PROPAGATION DELAY TEST CIRCUIT
Rx
GENERATOR
OUT
CL
50Ω
FIGURE 23. RS-232 RECEIVER PROPAGATION DELAY TIMING DIAGRAM
Input
+3V
1.5V
1.5V
-3V
tPLH
tPHL
VOH
OUT
50%
50%
VOL
22
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
2.0 SUGGESTED APPLICATION DIAGRAMS
The SP336E supports all signals used in RS-232 over an 8 pin modular jack (RJ-45) as defined in TIA/EIA561. For DTE serial port only three drivers are required. Driver_1 is not used in this configuration and its driver
input should be tied to high or low.
SP336E may also be used to implement a standard serial port over a DB-9 connector (TIA/EIA-574 or the
standard IBM serial port). In that case either DSR or RI signal can be supported. Both DSR and RI are used
mainly for dial-up connections and are typically not needed on dedicated lines. If both signals are required, add
a discrete transceiver such as SP3220E.
An alternative implementation would be to use the SP336E to emulate the functionality of two dual-channel
RS-232 transceivers (2 x SP232’s or equivalent).
Loop-Back
Changing from RS-232 mode (MODE 001) to loop-back mode (MODE 000) duplicates the function of an
external loop-back plug. Loop-back can be used to test serial port functionality or to diagnose faults.
FIGURE 24. RS-232E SERIAL PORT (EIA-561 / EIA-574)
23
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
RS-232 to RS-485 Translator
SP336E can be used to implement a single-chip RS-232 to RS-485 translator function. Both full-duplex (4-wire
RS-485) and half-duplex (2-wire RS-485) configurations are shown. RS-485 is capable of communicating on
data cables up to 4000 feet (1200 meter) which makes it an ideal interface for extending the reach of shortrange serial ports like RS-232. The configurations shown can be used to connect directly to existing PC type
RS-232 serial ports to enable extended-reach communication.
The RTS signal (circuit CA or 105) is used as a transmit direction control signal for half-duplex. The ON
condition puts the repeater into transmit mode and inhibits receive. On a half-duplex channel RxD should be
held in MARK state (binary 1) when receiver 3 is inactive. Driver 1 on the SP336E can be used to generate
DSR or CTS signal to indicate to the host terminal that the translator is powered-on and ready.
Shutdown Modes
SP336E features two shutdown modes. In mode 111 (full shutdown) all drivers and receivers are at high
impedance. In mode 110, all drivers are tri-state but all four receivers remain active. In modes 101 and 100 two
differential receivers can be kept active while the differential drivers are tri-stated using the Tx_EN inputs.
FIGURE 25. RS-232 / RS-485 TRANSLATOR FULL-DUPLEX CABLE-EXTENDER (MODE 011)
24
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 26. RS-232 / RS-485 TRANSLATOR HALF-DUPLEX CABLE-EXTENDER (MODE 010)
25
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
Bus Repeater
Mode 101 can be used as a bus-repeater to extend the reach of an RS-422 bus. This configuration is best
suited for point-to-point or multi-drop communications because the drivers are always active and echoing data
from their corresponding receiver.
For applications where multiple nodes are allowed to transmit, some type of bus arbitration should be used.
One technique would be to use SP336E in conjunction with external decoder logic, packet buffers and node
address fields embedded in the data stream. Receiving the correct node address triggers Tx_EN to pass data
onward.
Mode 100 could implement a repeater / gateway to partition or extend RS-485 networks. Direction Control
determines when data is forwarded to or from segments A and B.
FIGURE 27. RS-422 BUS-REPEATER (MODE 101)
26
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 28. RS-485 BUS-REPEATER (MODE 100)
27
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 29. 28 PIN SOICW PACKAGE OUTLINE DRAWING
28
REV. 1.0.0
SP336E
REV. 1.0.0
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
FIGURE 30. 28 PIN TSSOP PACKAGE OUTLINE DRAWING
29
SP336E
3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER
REV. 1.0.0
REVISION HISTORY
DATE
REVISION
March 2010
1.0.0
DESCRIPTION
Production Release.
NOTICE
EXAR Corporation reserves the right to make changes to the products contained in this publication in order to
improve design, performance or reliability. EXAR Corporation assumes no responsibility for the use of any
circuits described herein, conveys no license under any patent or other right, and makes no representation that
the circuits are free of patent infringement. Charts and schedules contained here in are only for illustration
purposes and may vary depending upon a user’s specific application. While the information in this publication
has been carefully checked; no responsibility, however, is assumed for inaccuracies.
EXAR Corporation does not recommend the use of any of its products in life support applications where the
failure or malfunction of the product can reasonably be expected to cause failure of the life support system or
to significantly affect its safety or effectiveness. Products are not authorized for use in such applications unless
EXAR Corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has
been minimized; (b) the user assumes all such risks; (c) potential liability of EXAR Corporation is adequately
protected under the circumstances.
Copyright 2010 EXAR Corporation
Datasheet March 2010.
Send your UART technical inquiry with technical details to hotline: [email protected].
Reproduction, in part or whole, without the prior written consent of EXAR Corporation is prohibited.
30