17.5.4 UARTx Status Register High

Note:
  1. The receive watermark interrupt is not set if PERIF or FERIF is set and the corresponding IE bit is set.

Legend: S = Settable bit, HS = Hardware Settable bit

Name: UxSTAH
Offset: 0x23E, 0x266, 0xF06

Bit 15141312111098 
  UTXISEL[2:0] URXISEL[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 76543210 
 TXWRESTPMDUTXBEUTXBFRIDLEXONURXBEURXBF 
Access R/W/HSR/WR/SRRRR/SR 
Reset 00101110 

Bits 14:12 – UTXISEL[2:0] UART Transmit Interrupt Select bits

ValueDescription
111

Sets transmit interrupt when there is one empty slot left in the buffer

. . .
010

Sets transmit interrupt when there are six empty slots or more in the buffer

001

Sets transmit interrupt when there are seven empty slots or more in the buffer

000

Sets transmit interrupt when there are eight empty slots in the buffer; TX buffer is empty

Bits 10:8 – URXISEL[2:0]  UART Receive Interrupt Select bits(1)

ValueDescription
111

Triggers receive interrupt when there are eight words in the buffer; RX buffer is full

. . .
001

Triggers receive interrupt when there are two words or more in the buffer

000

Triggers receive interrupt when there is one word or more in the buffer

Bit 7 – TXWRE TX Write Transmit Error Status bit

LIN and Parity Modes:

1 = A new byte was written when buffer was full or when P2[8:0] = 0 (must be cleared by software)

0 = No error

Address Detect Mode:

1 = A new byte was written when buffer was full or to P1[8:0] when P1x was full (must be cleared by software)

0 = No error

Other Modes:

1 = A new byte was written when buffer was full (must be cleared by software)

0 = No error

Bit 6 – STPMD Stop Bit Detection Mode bit

ValueDescription
1

Triggers RXIF at the end of the last Stop bit

0

Triggers RXIF in the middle of the first (or second, depending on the STSEL[1:0] setting) Stop bit

Bit 5 – UTXBE UART TX Buffer Empty Status bit

ValueDescription
1

Transmit buffer is empty; writing ‘1’ when UTXEN = 0 will reset the TX FIFO Pointers and counters

0

Transmit buffer is not empty

Bit 4 – UTXBF UART TX Buffer Full Status bit

ValueDescription
1

Transmit buffer is full

0

Transmit buffer is not full

Bit 3 – RIDLE Receive Idle bit

ValueDescription
1

UART RX line is in the Idle state

0

UART RX line is receiving something

Bit 2 – XON UART in XON Mode bit

Only valid when FLO[1:0] control bits are set to XON/XOFF mode.

ValueDescription
1

UART has received XON

0

UART has not received XON or XOFF was received

Bit 1 – URXBE UART RX Buffer Empty Status bit

ValueDescription
1

Receive buffer is empty; writing ‘1’ when URXEN = 0 will reset the RX FIFO Pointers and counters

0

Receive buffer is not empty

Bit 0 – URXBF UART RX Buffer Full Status bit

ValueDescription
1

Receive buffer is full

0

Receive buffer is not full