MAX3140
SPI/MICROWIRE-Compatible UART with Integrated
True Fail-Safe RS-485/RS-422 Transceivers
______________________________________________________________________________________ 31
V
CC
UNCONNECTED
R
Z
Y
RO
RTS
TX
RX
V
CC
H/F
DIN
DOUT
SCLK
CS
IRQ
DI
DE
RE*
RXP
TXP
TX
RX
IrDA
I/O
μP
SRL
100k
D
HALF-DUPLEX
RS-485 I/O
*NOTE: TO SHUT DOWN THE RS-485 TRANSCEIVER, DRIVE RE SEPARATELY.
UART
IN
IrDA
MODE
+5V
SOFTWARE
NON-IrDA
UART
MAX3140
MAX3120
X1
X2
V
CC
10k
Figure 28. Typical IR and RS-485 Operating Circuit
MAX3140
SPI/MICROWIRE-Compatible UART with Integrated
True Fail-Safe RS-485/RS-422 Transceivers
32 ______________________________________________________________________________________
Listing 1. Outline for a MAX3140 Software Driver
Software Driver
Listing 1 is a 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.
The user must supply code for managing the transmit
and receive queues, as well as the low-level hardware
interface itself. The interrupt control hardware must be
initialized before this driver is called.
MAX3140
SPI/MICROWIRE-Compatible UART with Integrated
True Fail-Safe RS-485/RS-422 Transceivers
______________________________________________________________________________________ 33
Listing 1. Outline for a MAX3140 Software Driver (continued)

MAX3140EEI

Mfr. #:
Manufacturer:
Description:
IC UART SPI RS485/422 28-QSOP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet