
VMX51C1020
_________________________________________________________________________________________________
www.ramtron.com
page 43 of 80
UART1 Driven Differential
Transceiver
The
transceiver compatible with the J1708/RS-
485/RS-422 standards. These are driven by
UART1.
The Transceiver’s signals are differential which
provide high electrical noise immunity. The
differential
interface
transferring/recieving data over hundreds of feet
of twisted pair wire.
A number of devices can be connected in
parallel to the differential bus in order to
implement a multi-drop network. The number of
devices that can be networked depends on the
bus length and configuration.
The admissible common mode voltage range of
the differential interface is –2.0 V to +7.0 V.
When implementing this type of transmission
network
over
long
environments,
appropriate
recommended in order to prevent the common
mode voltage from causing any damage to the
VMX51C1020.
VMX51C1020
includes
a
differential
is
capable
of
distances
in
noisy
protection
is
F
IGURE
27:
D
IFFERENTIAL
I
NTERFACE
(J1708
CONFIG
)
+5V
+5V
Versa Mix
TX1D+
RX1D+
TX1D-
RX1D-
F
IGURE
28:
D
IFFERENTIAL
I
NTERFACE
(RS485
CONFIG
)
+5V
Versa Mix
TX1D+
RX1D+
TX1D-
RX1D-
From the software point of view, the differential
transceiver is viewed as differential UART.
The differential transceiver I/Os are connected
to UART1 of the VMX51C1020, therefore
communication parameters such as the data
length, speed, etc are managed by the UART1
peripheral interface/registers.
Using the UART1 Differential
Transceiver
In order to use the Differential Transceiver
interface, one must perform the following
operations:
o
Enable UART1 and the differential
interface by setting bits 1 and 2 of the
DIGPWREN register.
o
Configure UART1’s operating mode via
the S1CON register.
o
Set the baud rate via the S1RELH and
S1RELL registers.
o
Enable UART1’s interrupt, if required
Use UART1’s S1BUF register to transmit and
receive data through the differential transceiver.
If the P0.2 pin is configured as an output, the
signal corresponding to the TX1 signal of
UART1 will appear on this pin (note that the
P0.3-RX1 pin can be used as regular digital
output).
When the transceiver is connected in Half-
Duplex mode (RX1D+ connected to TX1D+ and
RX1D- connected to TX1D-) and UART1’s
interrupts are enabled, careful management of
the UART1 interrupts will be required as every
byte transmitted will generate a local Rx
interrupt.