
NUC126
Aug. 08, 2018
Page
882
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
Setting RTSACTLV (UART_MODEM[9]) can control the nRTS pin output is inverse or non-inverse
from RTS(UART_MODEM[1]) control bit. User can read the RTSSTS (UART_MODEM[13]) bit to get
real nRTS pin output voltage logic status.
Active
nRTS pin output status of RS-485 function mode
(default)
Driver Enable
Set UART_MODEM[1]=0 by software
Set UART_MODEM[1]=1 by software
RTS control bit
(UART_MODEM[1])
RTSSTS
(UART_MODEM[13])
nRTS pin output
RTSACTLV = 0
RTSACTLV = 1
Note:
RS485AUD (UART_ALTCTL[10]) = 0, support nRTS control bit by software control only.
Figure 6.23-25 RS-485 nRTS Driving Level with Software Control
Programming Sequence Example:
1. Program FUNCSEL in UART_FUNCSEL to select RS-485 function.
2. Program the RXOFF (UART_FIFO[8]) to determine enable or disable the receiver RS-485
receiver.
3. Program the RS485NMM (UART_ALTCTL[8]) or RS485AAD (UART_ALTCTL[9]) mode.
4. If the RS485AAD (UART_ALTCTL[9]) mode is selected, the ADDRMV
(UART_ALTCTL[31:24]) is programmed for auto address match value.
5. Determine auto direction control by programming RS485AUD (UART_ALTCTL[10]).
Start
bit
D0
TX pin output
Driver Enable
RX
TX
nRTS
Differential Bus
RS- 485 Transceiver
UART / RS- 485 Controller
D1
D2
D3
D4
D5
D6
D7
P
Stop
bit
Driver Enable
RTSSTS
(UART_MODEM[13])
Note:
RS485AUD(UART_ALTCTL[10]) must be set to 1, and RTSACTLV(UART_MODEM[9]) must be set to 0.