21.3.1 UARTx Configuration Register

Note: R/HS/HC in DMX and LIN modes.
Name: UxCON
Offset: 0x1700, 0x1740, 0x1780, 0x17C0

Bit 3130292827262524 
 SLPENACTIVE  CLKMODCLKSEL[1:0]HALFDPLX 
Access R/WRR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
 RUNOVFRXPOLSTP[1:0]C0ENTXPOLFLO[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 ON SIDLWUERXBIMD BRKOVRSENDB 
Access R/WR/WR/WR/WR/WR/W/HC 
Reset 000000 
Bit 76543210 
 BRGSABDENTXENRXENMODE[3:0] 
Access R/WR/W/HCR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 31 – SLPEN Run During Sleep Enable bit

ValueDescription
1 UART BRG clock runs during Sleep.
0 UART BRG clock is turned off during Sleep.

Bit 30 – ACTIVE UART Running Status bit

ValueDescription
1 UART clock request is active (the user should not update the UxCON register).
0 UART clock request is not active (the user can update the UxCON register).

Bit 27 – CLKMOD Baud Clock Generation Mode Select bit

ValueDescription
1 Uses fractional Baud Rate Generation.
0 Uses a legacy divide-by-x counter for baud clock generation (x = 4 or 16 depending on the BRGS bit).

Bits 26:25 – CLKSEL[1:0] Baud Clock Source Selection bits

See Table 21-2.

Bit 24 – HALFDPLX UART Half-Duplex Selection Mode bit

(HALFDPLX is ignored in LIN and Smart Card modes.)
ValueDescription
1 Half-Duplex mode
0 Full-Duplex mode

Bit 23 – RUNOVF Run During Overflow Condition Mode bit

ValueDescription
1

When an Overflow Error (RXFOIF) condition is detected, the RX shifter continues to run to remain synchronized with incoming RX data; data are not transferred to UxRXB when it is full (i.e., no UxRXB data are overwritten).

0

When an Overflow Error (RXFOIF) condition is detected, the RX shifter stops accepting new data; data are transferred to UxRXB when one empty slot becomes available in the buffer (Legacy mode).

Bit 22 – RXPOL UART Receive Polarity bit

ValueDescription
1

Inverts RX polarity; the Idle state is low.

0

Input is not inverted; the Idle state is high.

Bits 21:20 – STP[1:0] Number of Stop Bits Selection bits

ValueDescription
11

2 Stop bits sent, 1 checked at receive.

10

2 Stop bits sent, 2 checked at receive.

01

1.5 Stop bits sent, 1.5 checked at receive.

00

1 Stop bit sent, 1 checked at receive.

Bit 19 – C0EN Enable Legacy Checksum (C0) Transmit and Receive bit

ValueDescription
1

Checksum Mode 1 (Enhanced LIN checksum in LIN mode; add all TX/RX words in all other modes.)

0

Checksum Mode 0 (Legacy LIN checksum in LIN mode; not used in all other modes.)

Bit 18 – TXPOL UART Transmit Polarity bit

ValueDescription
1

Inverts TX polarity; TX is low in the Idle state.

0

Output data are not inverted; TX output is high in the Idle state.

Bits 17:16 – FLO[1:0] Flow Control Enable bits (only valid when MODE[3:0] = 0xxx)

ValueDescription
11

Reserved

10 UxRTS-UxDSR (for TX side)/UxCTS-UxDTR (for RX side) hardware flow control
01

XON/XOFF software flow control

00

Flow control off

Bit 15 – ON UART Enable bit

ValueDescription
1 UART is ready to transmit and receive.
0 UART state machine, FIFO buffer pointers, and counters are reset; registers are readable and writable.

Bit 13 – SIDL UART Stop in Idle Mode bit

ValueDescription
1

Discontinues module operation when the device enters Idle mode.

0

Continues module operation in Idle mode.

Bit 12 – WUE Wake-up Enable bit

ValueDescription
1

Module will continue to sample the UxRX pin – an interrupt is generated on the falling edge, and the bit is cleared in hardware on the following rising edge; if ABDEN is set, Auto-Baud Detection (ABD) will begin immediately.

0 UxRX pin is not monitored, nor is the rising edge detected.

Bit 11 – RXBIMD Receive Break Interrupt Mode bit

ValueDescription
1 RXBKIF flag when a minimum of 23 (DMX)/11 (asynchronous or LIN/J2602) low bit periods are detected.
0 RXBKIF flag when the break makes a low-to-high transition after being low for at least 23/11 bit periods.

Bit 9 – BRKOVR Send Break Software Override bit

Overrides the TX Data Line:

ValueDescription
1 Makes the TX line active (Output 0 when TXPOL = 0, Output 1 when TXPOL = 1).
0 TX line is driven by the shifter.

Bit 8 – SENDB  UART Transmit Break bit(1)

ValueDescription
1

Sends Sync Break on the next transmission; cleared by hardware upon completion.

0

Sync Break transmission is disabled or has been completed.

Bit 7 – BRGS High Baud Rate Select bit

ValueDescription
1 High speed
0 Low speed

Bit 6 – ABDEN Auto-Baud Detect Enable bit (read-only when MODE[3:0] = 1xxx)

ValueDescription
1 Enables baud rate measurement on the next character – requires reception of a Sync field (55h); cleared in hardware upon completion.
0 Baud rate measurement is disabled or has been completed.

Bit 5 – TXEN UART Transmit Enable bit

ValueDescription
1

Transmit enabled – except during Auto-Baud Detection.

0

Transmit disabled – all transmit counters, pointers, and state machines are reset; the TX buffer is not flushed, and status bits are not reset.

Bit 4 – RXEN UART Receive Enable bit

ValueDescription
1

Receive enabled – except during Auto-Baud Detection.

0

Receive disabled – all receive counters, pointers, and state machines are reset; the RX buffer is not flushed, and status bits are not reset.

Bits 3:0 – MODE[3:0] UART Mode bits

ValueDescription
Other

Reserved

1111

Smart card

1110

IrDA®

1101

Reserved

1100

LIN Commander/Responder

1011

LIN Responder only

1010

DMX

1001-0101

Reserved

0100

Asynchronous 9-bit UART with address detect, ninth bit = 1 signals address

0011

Asynchronous 8-bit UART without address detect, ninth bit is used as an even parity bit

0010

Asynchronous 8-bit UART without address detect, ninth bit is used as an odd parity bit

0001

Asynchronous 7-bit UART

0000

Asynchronous 8-bit UART