MAX3140 Maxim, MAX3140 Datasheet

no-image

MAX3140

Manufacturer Part Number
MAX3140
Description
SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MAX3140CEI
Manufacturer:
MAXIM/美信
Quantity:
20 000
Part Number:
MAX3140CEI+
Manufacturer:
ST
0
Part Number:
MAX3140EEI
Manufacturer:
MAXIM/美信
Quantity:
20 000
The MAX3140 is a complete universal asynchronous
receiver-transmitter (UART) and a true fail-safe RS-
485/RS-422 transceiver combined in a single 28-pin
QSOP package for space-, cost-, and power-con-
strained applications. The MAX3140 saves additional
board space as well as microcontroller (µC) I/O pins by
featuring an SPI™/QSPI™/MICROWIRE™-compatible
serial interface. It is pin-programmable for configuration
in all RS-485/RS-422 networks.
The MAX3140 includes a single RS-485/RS-422 driver
and receiver featuring true fail-safe circuitry, which
guarantees a logic-high receiver output when the
receiver inputs are open or shorted. This feature pro-
vides immunity to faults without requiring complex ter-
mination. The MAX3140 provides software-selectable
control of half- or full-duplex operation, data rate, slew
rate, and transmitter and receiver phase. The RS-485
driver slew rate is programmable to minimize EMI and
results in maximum data rates of 115kbps, 500kbps,
and 10Mbps. Independent transmitter/receiver phase
control enables software correction of twisted-pair
polarity reversal. A 1/8-unit-load receiver input imped-
ance allows up to 256 transceivers on the bus.
The MAX3140’s UART includes an oscillator circuit
derived from an external crystal, and a baud-rate gen-
erator with software-programmable divider ratios for all
common baud rates from 300 baud to 230k baud. The
UART features an 8-word-deep receive FIFO that mini-
mizes processor overhead and provides a flexible inter-
rupt with four maskable sources, including address
recognition on 9-bit networks. Two control lines are
included for hardware handshaking—one input and
one output.
The MAX3140 operates from a single +5V supply and
typically consumes only 645µA with the receiver active.
Hardware-invoked shutdown reduces supply current to
only 20µA. The UART and RS-485/RS-422 functions can
be used together or independently since the two func-
tions share only supply and ground connections (the
MAX3140 is hardware- and software-compatible with the
MAX3100 and MAX3089).
Industrial-Control
Local Area Networks
HVAC and Building Control
Point-of-Sale Devices
19-1453; Rev 0; 6/99
SPI/QSPI are trademarks of Motorola, Inc.
MICROWIRE is a trademark of National Semiconductor Corp.
Pin Configuration appears at end of data sheet.
For free samples & the latest literature: http://www.maxim-ic.com, or phone 1-800-998-8800.
For small orders, phone 1-800-835-8769.
SPI/MICROWIRE-Compatible UART with Integrated
________________________________________________________________ Maxim Integrated Products
True Fail-Safe RS-485/RS-422 Transceivers
General Description
Transceivers for EMI-
Sensitive Applications
Embedded Systems
Intelligent Instrumentation
Applications
MAX3140CEI
MAX3140EEI
Integrated UART and RS-485/RS-422 Transceiver
in a Single 28-Pin QSOP
SPI/MICROWIRE-Compatible Interface Saves µC
I/O Pins
True Fail-Safe Receiver Output Eliminates
Complex Network Termination
Pin-Programmable RS-485/RS-422 Features
Full-Featured UART
Allows Up to 256 Transceivers on the Bus
Low 20µA Hardware Shutdown Mode
Hardware/Software-Compatible with MAX3100
and MAX3089
P
Half/Full-Duplex Operation
Slew-Rate Limiting for Reduced EMI
115kbps/500kbps/10Mbps Data Rates
Receiver/Transmitter Phase for Twisted-Pair
Programmable Up to 230k baud with a
8-Word Receive FIFO Minimizes Processor
9-Bit Address-Recognition Interrupt
MICRO-
PART
WIRE
SPI/
DOUT
SCLK
Polarity Reversal
3.6864MHz Crystal
Overhead
DIN
IRQ
CS
Typical Application Circuit
UART
-40°C to +85°C
TEMP. RANGE
0°C to +70°C
H/F SRL
Ordering Information
CONTROL
MAX3140
LOGIC
TXP
RXP
RS-485
RS-422
HALF/FULL-DUPLEX
PIN-PACKAGE
28 QSOP
28 QSOP
RS-485/RS-422
Features
R
R
t
t
1

Related parts for MAX3140

MAX3140 Summary of contents

Page 1

... Two control lines are included for hardware handshaking—one input and one output. The MAX3140 operates from a single +5V supply and typically consumes only 645µA with the receiver active. Hardware-invoked shutdown reduces supply current to only 20µA. The UART and RS-485/RS-422 functions can ...

Page 2

... GND) ......................................................Continuous CC + 0.3V) Continuous Power Dissipation (T CC 28-pin QSOP (derate 10.8mW/°C above +70°C)..........860mW + 0.3V) Operating Temperature Ranges CC MAX3140CEI .......................................................0°C to +70°C MAX3140EEI ....................................................-40°C to +85°C Storage Temperature Range .............................-65°C to +150°C Lead Temperature (soldering, 10sec) .............................+300° 1.8432MHz XTL A MIN = +25° ...

Page 3

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers ELECTRICAL CHARACTERISTICS (continued GND, SHDN = +5V ±5 are measured with V = +5V, UART configured for 9600 baud ...

Page 4

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers UART SWITCHING CHARACTERISTICS (V = +5V ±5 1.8432MHz XTL UART configured for 9600 baud +25°C.) (Note 1) A PARAMETER SYMBOL UART AC TIMING (Figure 1) CS ...

Page 5

... Driver Input to Output Driver Output Skew t DSKEW | | DPLH DPHL Driver Rise or Fall Time t DR Maximum Data Rate Driver Enable to Output High Driver Enable to Output Low Driver Disable Time from Low Driver Disable Time from High t Receiver Input to Output | Differential RPLH ...

Page 6

... Driver Input to Output t DPHL Driver Output Skew t DSKEW | DPLH DPHL Driver Rise or Fall Time t DR, Maximum Data Rate f MAX Driver Enable to Output High t DZH Driver Enable to Output Low t DZL Driver Disable Time from Low t DLZ Driver Disable Time from High t DHZ ...

Page 7

... OC Note 3: The SRL pin is internally biased to V Note 4: Maximum current level applies to peak current just prior to foldback-current limiting; minimum current level applies during current limiting. Note 5: The device is put into shutdown by bringing RE high and DE low. If the enable inputs are in this state for less than 50ns, the device is guaranteed not to enter shutdown ...

Page 8

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers (V = +5V +25°C, unless otherwise noted UART SUPPLY CURRENT vs. TEMPERATURE 1000 1.8432MHz CRYSTAL 900 TRANSMITTING AT 115.2 kbps 800 700 600 500 400 300 200 100 ...

Page 9

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers (V = +5V +25°C, unless otherwise noted RS-485 RECEIVER OUTPUT LOW VOLTAGE vs. TEMPERATURE 0. 8mA RO 0.45 0.40 0.35 0.30 0.25 0.20 0.15 0.10 -60 ...

Page 10

... OUTPUT HIGH VOLTAGE (V) MAX3140-22 (5V/div) (2.5V/div) MAX3140-24 (5V/div) (2.5V/div) RS-485 RECEIVER PROPAGATION DELAY (SRL = GND (2V/div) RO (5V/div) 6 50ns/div RS-485 DRIVER PROPAGATION DELAY (SRL = OPEN) MAX3140- s/div RS-485 DRIVER PROPAGATION DELAY (SRL = GND) MAX3140- 50ns/div MAX3140-21 ...

Page 11

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers PIN NAME FULL HALF DUPLEX DUPLEX UART Crystal Connection. Leave X2 unconnected for external clock. See the Crystals Oscillators, and Ceramic Resonators section. UART Crystal Connection. X1 also serves ...

Page 12

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers PIN NAME FULL HALF DUPLEX DUPLEX RS-485 Receiver Phase. Connect RXP to GND or leave it unconnected for normal receiver 21 21 RXP phase/polarity. Connect RXP Positive ...

Page 13

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers Figure 1. Driver DC Test Load Figure 3. Driver Timing Test Circuit PLH ...

Page 14

... INPUT Figure 7. Receiver Propagation Delays Figure 9. Receiver Propagation Delay Test Circuit _______________Detailed Description The MAX3140 combines an SPI/QSPI/MICROWIRE- compatible UART (MAX3100) and an RS-485/RS-422 transceiver (MAX3089) in one package. The UART sup- ports data rates up to 230k baud for both standard UART bit streams as well as IrDA, and includes an 8-word receive FIFO ...

Page 15

... CPHA = 1) Figure 11. Compatible CPOL and CPHA Modes ______________________________________________________________________________________ UART The MAX3140 is compatible with SPI, QSPI (CPOL = 0, CPHA = 0), and MICROWIRE serial-interface standards (Figure 11). The MAX3140 has a unique full-duplex architecture that expects a 16-bit word for DIN and simultaneously produces a 16-bit word for DOUT regardless of which read/write register used ...

Page 16

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers SCLK’s rising edge. DOUT (MISO) is read into the µP on SCLK’s rising edge. The first bit (bit 15) of DOUT transitions on CS’s falling edge, and bits 14–0 transition on SCLK’s ...

Page 17

... Parity-Enable Bit. Appends the Pt bit to the transmitted data when and sends the Pt bit as written. No parity bit is transmitted when With extra bit is expected to PE write 0 be received. This data is put into the Pr register when The MAX3140 does not calculate parity. PE read 0 Reads the value of the Parity-Enable bit ...

Page 18

... Reads the value of the TM bit (Table 7). read 0 Notice to High-Level Programmers The MAX3140 follows the SPI convention of providing a bidirectional data path for writes and reads. Whenever the data is written, data is also read back. This speeds operation over the SPI bus, as required, when operat- ing at high baud rates ...

Page 19

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers WRITE CONFIGURATION Register Configure the UART by writing a 16-bit word to the WRITE CONFIGURATION register, which programs the baud rate, data-word length, parity enable, and enable of the 8-word receive FIFO. ...

Page 20

... SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers Bits 15 and 14 of the DOUT WRITE CONFIGURATION word (R and T) are sent out of the MAX3140 along with 14 trailing zeros. The use of the R and T bits is optional, but ignore the 14 trailing zeros. Warning! The UART requires stable crystal oscillator operation before configuration (typically ~25ms after power-up) ...

Page 21

SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers The device enters a test mode if bit 0 of the DIN config- uration word equals 1 when performing a READ CON- FIGURATION. In this mode the RTS ...

Page 22

... Table 7 gives the details for each interrupt source. Figure 15 shows the function- al diagram for the interrupt sources and mask blocks. Two examples of setting up an IRQ for the MAX3140 are shown below. Example 1: Setting up only the transmit buffer-empty interrupt ...

Page 23

... This is the RA (RX-transition) bit in shutdown, and the FE (framing-error) bit in operating mode set if there has been a transition on RX since entering shutdown cleared when the MAX3140 exits shutdown. IRQ is asserted when RA is set and RAM = determined solely by the currently received data, and is not stored in FIFO. ...

Page 24

... With the receiver thresholds of the MAX3140, this results in a logic high with a 50mV mini- mum noise margin. Unlike previous fail-safe devices, the -50mV to -200mV threshold complies with the ± ...

Page 25

... This helps minimize parasitic capacitance and noise pickup in the oscillator, and reduces EMI. Minimize capacitive loading minimize supply current. The MAX3140’s X1 input can be driven directly by an external CMOS clock source. The trip level is approxi- mately equal to V mode TTL or non-CMOS clock source is used, AC- couple with a 10nF capacitor to X1 ...

Page 26

... This relieves the remote processor to handle more useful tasks. In 9-bit mode, the MAX3140 is set up with eight bits plus parity. The parity bit in all normal messages is clear, but is set in an address-type message. The MAX3140’s parity-interrupt mask generates an interrupt on high parity when enabled ...

Page 27

... SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers 20dB/div O 100kHz/div Figure 18. Driver Output Waveform and FFT Plot of MAX3140 with SRL = V , Transmitting a 20kHz Signal CC sis of a 20kHz signal transmitted with SRL = GND. High- frequency harmonic components with large amplitudes are evident. Figure 18 shows the same signal for SRL = V , transmitting under the same conditions ...

Page 28

... CC 28 ______________________________________________________________________________________ network is shown in Figure 25. A typical full-duplex cir- cuit for the MAX3140 is shown in Figure 26, and a corre- sponding full-duplex network is shown in Figure 27. Since the MAX3140’s internal UART has IrDA capability, a standard IR transceiver (e.g., the MAX3120) can be used to provide IrDA communication (Figure 28). ...

Page 29

... MAX3140 Figure 25. Typical Half-Duplex RS-485 Network ______________________________________________________________________________________ V CC 10k V CC IRQ H/F DIN DOUT SHDN SCLK CTS CS RTS UART MAX3140 100k HALF-DUPLEX RS-485 I RXP RE* TXP SRL 120 ...

Page 30

... 120 MAX3140 Figure 27. Typical Full-Duplex RS-422 Network 30 ______________________________________________________________________________________ V CC 10k V IRQ CC DIN SHDN DOUT SCLK H/F CS UART CTS X1 RTS TX MAX3140 FULL-DUPLEX RS-422 I RXP RE* TXP SRL 120 D DI ...

Page 31

... True Fail-Safe RS-485/RS-422 Transceivers V CC 10k P SOFTWARE NON-IrDA *NOTE: TO SHUT DOWN THE RS-485 TRANSCEIVER, DRIVE RE SEPARATELY. Figure 28. Typical IR and RS-485 Operating Circuit ______________________________________________________________________________________ V +5V CC H/F IRQ UART DIN IN DOUT IrDA SCLK MODE CS MAX3140 V CC 100k RO R UART RTS RE* FLOAT SRL MAX3120 TX IrDA I ...

Page 32

... Listing C-language outline of an interrupt-driven software driver that interfaces to a MAX3140, providing an intermediate layer between the bit-manipulation sub- routine and the familiar PutChar/GetChar subroutines. Listing 1. Outline for a MAX3140 Software Driver 32 ______________________________________________________________________________________ The user must supply code for managing the transmit and receive queues, as well as the low-level hardware interface itself ...

Page 33

... SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers Listing 1. Outline for a MAX3140 Software Driver (continued) ______________________________________________________________________________________ 33 ...

Page 34

... SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers Listing 1. Outline for a MAX3140 Software Driver (continued) 34 ______________________________________________________________________________________ ...

Page 35

... SPI/MICROWIRE-Compatible UART with Integrated True Fail-Safe RS-485/RS-422 Transceivers Pin Configuration TOP VIEW CTS 3 RTS MAX3140 TX 6 H/F 7 GND SRL 13 N.C. 14 QSOP ______________________________________________________________________________________ ___________________Chip Information TRANSISTOR COUNT: 7479 28 SHDN 27 IRQ SCLK 24 DOUT 23 DIN ...

Page 36

... True Fail-Safe RS-485/RS-422 Transceivers Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied ...

Related keywords