M480 BSP V3.05.005
The Board Support Package for M480 Series
Data Fields
UART_T Struct Reference

#include <uart_reg.h>

Data Fields

__IO uint32_t DAT
 
__IO uint32_t INTEN
 
__IO uint32_t FIFO
 
__IO uint32_t LINE
 
__IO uint32_t MODEM
 
__IO uint32_t MODEMSTS
 
__IO uint32_t FIFOSTS
 
__IO uint32_t INTSTS
 
__IO uint32_t TOUT
 
__IO uint32_t BAUD
 
__IO uint32_t IRDA
 
__IO uint32_t ALTCTL
 
__IO uint32_t FUNCSEL
 
__IO uint32_t LINCTL
 
__IO uint32_t LINSTS
 
__IO uint32_t BRCOMP
 
__IO uint32_t WKCTL
 
__IO uint32_t WKSTS
 
__IO uint32_t DWKCOMP
 

Detailed Description

@addtogroup UART Universal Asynchronous Receiver/Transmitter Controller(UART)
Memory Mapped Structure for UART Controller

Definition at line 26 of file uart_reg.h.

Field Documentation

◆ ALTCTL

UART_T::ALTCTL

[0x002c] UART Alternate Control/Status Register

ALTCTL

Offset: 0x2C UART Alternate Control/Status Register

BitsFieldDescriptions
[3:0]BRKFL
UART LIN Break Field Length
This field indicates a 4-bit LIN TX break field count.
Note1: This break field length is BRKFL + 1.
Note2: According to LIN spec, the reset value is 0xC (break field length = 13).
[6]LINRXEN
LIN RX Enable Bit
0 = LIN RX mode Disabled.
1 = LIN RX mode Enabled.
[7]LINTXEN
LIN TX Break Mode Enable Bit
0 = LIN TX Break mode Disabled.
1 = LIN TX Break mode Enabled.
Note: When TX break field transfer operation finished, this bit will be cleared automatically.
[8]RS485NMM
RS-485 Normal Multi-drop Operation Mode (NMM)
0 = RS-485 Normal Multi-drop Operation mode (NMM) Disabled.
1 = RS-485 Normal Multi-drop Operation mode (NMM) Enabled.
Note: It cannot be active with RS-485_AAD operation mode.
[9]RS485AAD
RS-485 Auto Address Detection Operation Mode (AAD)
0 = RS-485 Auto Address Detection Operation mode (AAD) Disabled.
1 = RS-485 Auto Address Detection Operation mode (AAD) Enabled.
Note: It cannot be active with RS-485_NMM operation mode.
[10]RS485AUD
RS-485 Auto Direction Function (AUD)
0 = RS-485 Auto Direction Operation function (AUD) Disabled.
1 = RS-485 Auto Direction Operation function (AUD) Enabled.
Note: It can be active with RS-485_AAD or RS-485_NMM operation mode.
[15]ADDRDEN
RS-485 Address Detection Enable Bit
This bit is used to enable RS-485 Address Detection mode.
0 = Address detection mode Disabled.
1 = Address detection mode Enabled.
Note: This bit is used for RS-485 any operation mode.
[17]ABRIF
Auto-baud Rate Interrupt Flag (Read Only)
This bit is set when auto-baud rate detection function finished or the auto-baud rate counter was overflow and if ABRIEN(UART_INTEN [18]) is set then the auto-baud rate interrupt will be generated.
0 = No auto-baud rate interrupt flag is generated.
1 = Auto-baud rate interrupt flag is generated.
Note: This bit is read only, but it can be cleared by writing '1' to ABRDTOIF (UART_FIFOSTS[2]) and ABRDIF(UART_FIFOSTS[1])
[18]ABRDEN
Auto-baud Rate Detect Enable Bit
0 = Auto-baud rate detect function Disabled.
1 = Auto-baud rate detect function Enabled.
Note : This bit is cleared automatically after auto-baud detection is finished.
[20:19]ABRDBITS
Auto-baud Rate Detect Bit Length
00 = 1-bit time from Start bit to the 1st rising edge. The input pattern shall be 0x01.
01 = 2-bit time from Start bit to the 1st rising edge. The input pattern shall be 0x02.
10 = 4-bit time from Start bit to the 1st rising edge. The input pattern shall be 0x08.
11 = 8-bit time from Start bit to the 1st rising edge. The input pattern shall be 0x80.
Note : The calculation of bit number includes the START bit.
[31:24]ADDRMV
Address Match Value
This field contains the RS-485 address match values.
Note: This field is used for RS-485 auto address detection mode.

Definition at line 1833 of file uart_reg.h.

◆ BAUD

UART_T::BAUD

[0x0024] UART Baud Rate Divider Register

BAUD

Offset: 0x24 UART Baud Rate Divider Register

BitsFieldDescriptions
[15:0]BRD
Baud Rate Divider
The field indicates the baud rate divider
This filed is used in baud rate calculation
The detail description is shown in Table 7.15-4.
[27:24]EDIVM1
Extra Divider for BAUD Rate Mode 1
This field is used for baud rate calculation in mode 1 and has no effect for baud rate calculation in mode 0 and mode 2
The detail description is shown in Table 7.15-4
[28]BAUDM0
BAUD Rate Mode Selection Bit 0
This bit is baud rate mode selection bit 0
UART provides three baud rate calculation modes
This bit combines with BAUDM1 (UART_BAUD[29]) to select baud rate calculation mode
The detail description is shown in Table 7.15-4.
[29]BAUDM1
BAUD Rate Mode Selection Bit 1
This bit is baud rate mode selection bit 1
UART provides three baud rate calculation modes
This bit combines with BAUDM0 (UART_BAUD[28]) to select baud rate calculation mode
The detail description is shown in Table 7.15-4.
Note: In IrDA mode must be operated in mode 0.

Definition at line 1831 of file uart_reg.h.

◆ BRCOMP

UART_T::BRCOMP

[0x003c] UART Baud Rate Compensation Register

BRCOMP

Offset: 0x3C UART Baud Rate Compensation Register

BitsFieldDescriptions
[8:0]BRCOMP
Baud Rate Compensation Patten
These 9-bits are used to define the relative bit is compensated or not.
BRCOMP[7:0] is used to define the compensation of UART_DAT[7:0] and BRCOM[8] is used to define the parity bit.
[31]BRCOMPDEC
Baud Rate Compensation Decrease
0 = Positive (increase one module clock) compensation for each compensated bit.
1 = Negative (decrease one module clock) compensation for each compensated bit.

Definition at line 1837 of file uart_reg.h.

◆ DAT

UART_T::DAT

[0x0000] UART Receive/Transmit Buffer Register

DAT

Offset: 0x00 UART Receive/Transmit Buffer Register

BitsFieldDescriptions
[7:0]DAT
Data Receive/Transmit Buffer
Write Operation:
By writing one byte to this register, the data byte will be stored in transmitter FIFO
The UART controller will send out the data stored in transmitter FIFO top location through the UART_TXD.
Read Operation:
By reading this register, the UART controller will return an 8-bit data received from receiver FIFO.
[8]PARITY
Parity Bit Receive/Transmit Buffer
Write Operation:
By writing to this bit, the parity bit will be stored in transmitter FIFO
If PBE (UART_LINE[3]) and PSS (UART_LINE[7]) are set,
the UART controller will send out this bit follow the DAT (UART_DAT[7:0]) through the UART_TXD.
Read Operation:
If PBE (UART_LINE[3]) and PSS (UART_LINE[7]) are enabled, the parity bit can be read by this bit.
Note: This bit has effect only when PBE (UART_LINE[3]) and PSS (UART_LINE[7]) are set.

Definition at line 1822 of file uart_reg.h.

◆ DWKCOMP

UART_T::DWKCOMP

[0x0048] UART Incoming Data Wake-up Compensation Register

DWKCOMP

Offset: 0x48 UART Incoming Data Wake-up Compensation Register

BitsFieldDescriptions
[15:0]STCOMP
Start Bit Compensation Value
These bits field indicate how many clock cycle selected by UART_CLK do the UART controller can get the 1st bit (start bit) when the device is wake-up from power-down mode.
Note: It is valid only when WKDATEN (UART_WKCTL[1]) is set.

Definition at line 1840 of file uart_reg.h.

◆ FIFO

UART_T::FIFO

[0x0008] UART FIFO Control Register

FIFO

Offset: 0x08 UART FIFO Control Register

BitsFieldDescriptions
[1]RXRST
RX Field Software Reset
When RXRST (UART_FIFO[1]) is set, all the byte in the receiver FIFO and RX internal state machine are cleared.
0 = No effect.
1 = Reset the RX internal state machine and pointers.
Note1: This bit will automatically clear at least 3 UART peripheral clock cycles.
Note2: Before setting this bit, it should wait for the RXIDLE (UART_FIFOSTS[29]) be set.
[2]TXRST
TX Field Software Reset
When TXRST (UART_FIFO[2]) is set, all the byte in the transmit FIFO and TX internal state machine are cleared.
0 = No effect.
1 = Reset the TX internal state machine and pointers.
Note1: This bit will automatically clear at least 3 UART peripheral clock cycles.
Note2: Before setting this bit, it should wait for the TXEMPTYF (UART_FIFOSTS[28]) be set.
[7:4]RFITL
RX FIFO Interrupt Trigger Level
When the number of bytes in the receive FIFO equals the RFITL, the RDAIF (UART_INTSTS[0]) will be set (if RDAIEN (UART_INTEN [0]) enabled, and an interrupt will be generated).
0000 = RX FIFO Interrupt Trigger Level is 1 byte.
0001 = RX FIFO Interrupt Trigger Level is 4 bytes.
0010 = RX FIFO Interrupt Trigger Level is 8 bytes.
0011 = RX FIFO Interrupt Trigger Level is 14 bytes.
Others = Reserved.
[8]RXOFF
Receiver Disable Bit
The receiver is disabled or not (set 1 to disable receiver).
0 = Receiver Enabled.
1 = Receiver Disabled.
Note: This bit is used for RS-485 Normal Multi-drop mode
It should be programmed before RS485NMM (UART_ALTCTL [8]) is programmed.
[19:16]RTSTRGLV
nRTS Trigger Level for Auto-flow Control Use
0000 = nRTS Trigger Level is 1 byte.
0001 = nRTS Trigger Level is 4 bytes.
0010 = nRTS Trigger Level is 8 bytes.
0011 = nRTS Trigger Level is 14 bytes.
Others = Reserved.
Note: This field is used for auto nRTS flow control.

Definition at line 1824 of file uart_reg.h.

◆ FIFOSTS

UART_T::FIFOSTS

[0x0018] UART FIFO Status Register

FIFOSTS

Offset: 0x18 UART FIFO Status Register

BitsFieldDescriptions
[0]RXOVIF
RX Overflow Error Interrupt Flag
This bit is set when RX FIFO overflow.
If the number of bytes of received data is greater than RX_FIFO (UART_DAT) size 16 bytes, this bit will be set.
0 = RX FIFO is not overflow.
1 = RX FIFO is overflow.
Note: This bit can be cleared by writing '1' to it.
[1]ABRDIF
Auto-baud Rate Detect Interrupt Flag
This bit is set to logic '1' when auto-baud rate detect function is finished.
0 = Auto-baud rate detect function is not finished.
1 = Auto-baud rate detect function is finished.
Note: This bit can be cleared by writing '1' to it.
[2]ABRDTOIF
Auto-baud Rate Detect Time-out Interrupt Flag
This bit is set to logic '1' in Auto-baud Rate Detect mode when the baud rate counter is overflow.
0 = Auto-baud rate counter is underflow.
1 = Auto-baud rate counter is overflow.
Note: This bit can be cleared by writing '1' to it.
[3]ADDRDETF
RS-485 Address Byte Detect Flag
0 = Receiver detects a data that is not an address bit (bit 9 ='0').
1 = Receiver detects a data that is an address bit (bit 9 ='1').
Note1: This field is used for RS-485 function mode and ADDRDEN (UART_ALTCTL[15]) is set to 1 to enable Address detection mode.
Note2: This bit can be cleared by writing '1' to it.
[4]PEF
Parity Error Flag
This bit is set to logic 1 whenever the received character does not have a valid 'parity bit'.
0 = No parity error is generated.
1 = Parity error is generated.
Note: This bit can be cleared by writing '1' to it.
[5]FEF
Framing Error Flag
This bit is set to logic 1 whenever the received character does not have a valid 'stop bit'
(that is, the stop bit following the last data bit or parity bit is detected as logic 0).
0 = No framing error is generated.
1 = Framing error is generated.
Note: This bit can be cleared by writing '1' to it.
[6]BIF
Break Interrupt Flag
This bit is set to logic 1 whenever the received data input (RX) is held in the 'spacing state' (logic 0)
for longer than a full word transmission time (that is, the total time of start bit + data bits + parity + stop bits).
0 = No Break interrupt is generated.
1 = Break interrupt is generated.
Note: This bit can be cleared by writing '1' to it.
[13:8]RXPTR
RX FIFO Pointer (Read Only)
This field indicates the RX FIFO Buffer Pointer
When UART receives one byte from external device, RXPTR increases one
When one byte of RX FIFO is read by CPU, RXPTR decreases one.
The Maximum value shown in RXPTR is 15
When the using level of RX FIFO Buffer equal to 16, the RXFULL bit is set to 1 and RXPTR will show 0
As one byte of RX FIFO is read by CPU, the RXFULL bit is cleared to 0 and RXPTR will show 15
[14]RXEMPTY
Receiver FIFO Empty (Read Only)
This bit initiate RX FIFO empty or not.
0 = RX FIFO is not empty.
1 = RX FIFO is empty.
Note: When the last byte of RX FIFO has been read by CPU, hardware sets this bit high
It will be cleared when UART receives any new data.
[15]RXFULL
Receiver FIFO Full (Read Only)
This bit initiates RX FIFO full or not.
0 = RX FIFO is not full.
1 = RX FIFO is full.
Note: This bit is set when the number of usage in RX FIFO Buffer is equal to 16, otherwise it is cleared by hardware.
[21:16]TXPTR
TX FIFO Pointer (Read Only)
This field indicates the TX FIFO Buffer Pointer
When CPU writes one byte into UART_DAT, TXPTR increases one
When one byte of TX FIFO is transferred to Transmitter Shift Register, TXPTR decreases one.
The Maximum value shown in TXPTR is 15
When the using level of TX FIFO Buffer equal to 16, the TXFULL bit is set to 1 and TXPTR will show 0
As one byte of TX FIFO is transferred to Transmitter Shift Register, the TXFULL bit is cleared to 0 and TXPTR will show 15
[22]TXEMPTY
Transmitter FIFO Empty (Read Only)
This bit indicates TX FIFO empty or not.
0 = TX FIFO is not empty.
1 = TX FIFO is empty.
Note: When the last byte of TX FIFO has been transferred to Transmitter Shift Register, hardware sets this bit high
It will be cleared when writing data into UART_DAT (TX FIFO not empty).
[23]TXFULL
Transmitter FIFO Full (Read Only)
This bit indicates TX FIFO full or not.
0 = TX FIFO is not full.
1 = TX FIFO is full.
Note: This bit is set when the number of usage in TX FIFO Buffer is equal to 16, otherwise it is cleared by hardware.
[24]TXOVIF
TX Overflow Error Interrupt Flag
If TX FIFO (UART_DAT) is full, an additional write to UART_DAT will cause this bit to logic 1.
0 = TX FIFO is not overflow.
1 = TX FIFO is overflow.
Note: This bit can be cleared by writing '1' to it.
[28]TXEMPTYF
Transmitter Empty Flag (Read Only)
This bit is set by hardware when TX FIFO (UART_DAT) is empty and the STOP bit of the last byte has been transmitted.
0 = TX FIFO is not empty or the STOP bit of the last byte has been not transmitted.
1 = TX FIFO is empty and the STOP bit of the last byte has been transmitted.
Note: This bit is cleared automatically when TX FIFO is not empty or the last byte transmission has not completed.
[29]RXIDLE
RX Idle Status (Read Only)
This bit is set by hardware when RX is idle.
0 = RX is busy.
1 = RX is idle. (Default)
[31]TXRXACT
TX and RX Active Status (Read Only)
This bit indicates TX and RX are active or inactive.
0 = TX and RX are inactive.
1 = TX and RX are active. (Default)
Note: When TXRXDIS (UART_FUNCSEL[3]) is set and both TX and RX are in idle state, this bit is cleared
The UART controller can not transmit or receive data at this moment
Otherwise this bit is set.

Definition at line 1828 of file uart_reg.h.

◆ FUNCSEL

UART_T::FUNCSEL

[0x0030] UART Function Select Register

FUNCSEL

Offset: 0x30 UART Function Select Register

BitsFieldDescriptions
[1:0]FUNCSEL
Function Select
00 = UART function.
01 = LIN function.
10 = IrDA function.
11 = RS-485 function.
[3]TXRXDIS
TX and RX Disable Bit
Setting this bit can disable TX and RX.
0 = TX and RX Enabled.
1 = TX and RX Disabled.
Note: The TX and RX will not disable immediately when this bit is set
The TX and RX complete current task before disable TX and RX
When TX and RX disable, the TXRXACT (UART_FIFOSTS[31]) is cleared.

Definition at line 1834 of file uart_reg.h.

◆ INTEN

UART_T::INTEN

[0x0004] UART Interrupt Enable Register

INTEN

Offset: 0x04 UART Interrupt Enable Register

BitsFieldDescriptions
[0]RDAIEN
Receive Data Available Interrupt Enable Bit
0 = Receive data available interrupt Disabled.
1 = Receive data available interrupt Enabled.
[1]THREIEN
Transmit Holding Register Empty Interrupt Enable Bit
0 = Transmit holding register empty interrupt Disabled.
1 = Transmit holding register empty interrupt Enabled.
[2]RLSIEN
Receive Line Status Interrupt Enable Bit
0 = Receive Line Status interrupt Disabled.
1 = Receive Line Status interrupt Enabled.
[3]MODEMIEN
Modem Status Interrupt Enable Bit
0 = Modem status interrupt Disabled.
1 = Modem status interrupt Enabled.
[4]RXTOIEN
RX Time-out Interrupt Enable Bit
0 = RX time-out interrupt Disabled.
1 = RX time-out interrupt Enabled.
[5]BUFERRIEN
Buffer Error Interrupt Enable Bit
0 = Buffer error interrupt Disabled.
1 = Buffer error interrupt Enabled.
[6]WKIEN
Wake-up Interrupt Enable Bit
0 = Wake-up Interrupt Disabled.
1 = Wake-up Interrupt Enabled.
[8]LINIEN
LIN Bus Interrupt Enable Bit
0 = LIN bus interrupt Disabled.
1 = LIN bus interrupt Enabled.
Note: This bit is used for LIN function mode.
[11]TOCNTEN
Receive Buffer Time-out Counter Enable Bit
0 = Receive Buffer Time-out counter Disabled.
1 = Receive Buffer Time-out counter Enabled.
[12]ATORTSEN
nRTS Auto-flow Control Enable Bit
0 = nRTS auto-flow control Disabled.
1 = nRTS auto-flow control Enabled.
Note: When nRTS auto-flow is enabled, if the number of bytes in the RX FIFO equals the RTSTRGLV (UART_FIFO[19:16]), the UART will de-assert nRTS signal.
[13]ATOCTSEN
nCTS Auto-flow Control Enable Bit
0 = nCTS auto-flow control Disabled.
1 = nCTS auto-flow control Enabled.
Note: When nCTS auto-flow is enabled, the UART will send data to external device if nCTS input assert (UART will not send data to device until nCTS is asserted).
[14]TXPDMAEN
TX PDMA Enable Bit
This bit can enable or disable TX PDMA service.
0 = TX PDMA Disabled.
1 = TX PDMA Enabled.
Note: If RLSIEN (UART_INTEN[2]) is enabled and HWRLSINT (UART_INTSTS[26]) is set to 1, the RLS (Receive Line Status) Interrupt is caused
If RLS interrupt is caused by Break Error Flag BIF(UART_FIFOSTS[6]), Frame Error Flag FEF(UART_FIFO[5]) or Parity Error Flag PEF(UART_FIFOSTS[4]) , UART PDMA transmit request operation is stop
Clear Break Error Flag BIF or Frame Error Flag FEF or Parity Error Flag PEF by writing '1' to corresponding BIF, FEF and PEF to make UART PDMA transmit request operation continue.
[15]RXPDMAEN
RX PDMA Enable Bit
This bit can enable or disable RX PDMA service.
0 = RX PDMA Disabled.
1 = RX PDMA Enabled.
Note: If RLSIEN (UART_INTEN[2]) is enabled and HWRLSINT (UART_INTSTS[26]) is set to 1, the RLS (Receive Line Status) Interrupt is caused
If RLS interrupt is caused by Break Error Flag BIF(UART_FIFOSTS[6]), Frame Error Flag FEF(UART_FIFO[5]) or Parity Error Flag PEF(UART_FIFOSTS[4]) , UART PDMA receive request operation is stop
Clear Break Error Flag BIF or Frame Error Flag FEF or Parity Error Flag PEF by writing '1' to corresponding BIF, FEF and PEF to make UART PDMA receive request operation continue.
[18]ABRIEN
Auto-baud Rate Interrupt Enable Bit
0 = Auto-baud rate interrupt Disabled.
1 = Auto-baud rate interrupt Enabled.
[22]TXENDIEN
Transmitter Empty Interrupt Enable Bit
If TXENDIEN (UART_INTEN[22]) is enabled, the Transmitter Empty interrupt TXENDINT (UART_INTSTS[30]) will be generated when TXENDIF (UART_INTSTS[22]) is set (TX FIFO (UART_DAT) is empty and the STOP bit of the last byte has been transmitted).
0 = Transmitter empty interrupt Disabled.
1 = Transmitter empty interrupt Enabled.

Definition at line 1823 of file uart_reg.h.

◆ INTSTS

UART_T::INTSTS

[0x001c] UART Interrupt Status Register

INTSTS

Offset: 0x1C UART Interrupt Status Register

BitsFieldDescriptions
[0]RDAIF
Receive Data Available Interrupt Flag
When the number of bytes in the RX FIFO equals the RFITL then the RDAIF(UART_INTSTS[0]) will be set
If RDAIEN (UART_INTEN [0]) is enabled, the RDA interrupt will be generated.
0 = No RDA interrupt flag is generated.
1 = RDA interrupt flag is generated.
Note: This bit is read only and it will be cleared when the number of unread bytes of RX FIFO drops below the threshold level (RFITL(UART_FIFO[7:4]).
[1]THREIF
Transmit Holding Register Empty Interrupt Flag
This bit is set when the last data of TX FIFO is transferred to Transmitter Shift Register
If THREIEN (UART_INTEN[1]) is enabled, the THRE interrupt will be generated.
0 = No THRE interrupt flag is generated.
1 = THRE interrupt flag is generated.
Note: This bit is read only and it will be cleared when writing data into UART_DAT (TX FIFO not empty).
[2]RLSIF
Receive Line Interrupt Flag (Read Only)
This bit is set when the RX receive data have parity error, frame error or break error (at least one of 3 bits, BIF(UART_FIFOSTS[6]), FEF(UART_FIFOSTS[5]) and PEF(UART_FIFOSTS[4]), is set)
If RLSIEN (UART_INTEN [2]) is enabled, the RLS interrupt will be generated.
0 = No RLS interrupt flag is generated.
1 = RLS interrupt flag is generated.
Note1: In RS-485 function mode, this field is set include "receiver detect and received address byte character (bit9 = '1') bit"
At the same time, the bit of ADDRDETF (UART_FIFOSTS[3]) is also set.
Note2: This bit is read only and reset to 0 when all bits of BIF (UART_FIFOSTS[6]), FEF(UART_FIFOSTS[5]) and PEF(UART_FIFOSTS[4]) are cleared.
Note3: In RS-485 function mode, this bit is read only and reset to 0 when all bits of BIF (UART_FIFOSTS[6]) , FEF(UART_FIFOSTS[5]), PEF(UART_FIFOSTS[4]) and ADDRDETF (UART_FIFOSTS[3]) are cleared.
[3]MODEMIF
MODEM Interrupt Flag (Read Only)
This bit is set when the nCTS pin has state change (CTSDETF (UART_MODEMSTS[0]) = 1)
If MODEMIEN (UART_INTEN [3]) is enabled, the Modem interrupt will be generated.
0 = No Modem interrupt flag is generated.
1 = Modem interrupt flag is generated.
Note: This bit is read only and reset to 0 when bit CTSDETF is cleared by a write 1 on CTSDETF(UART_MODEMSTS[0]).
[4]RXTOIF
RX Time-out Interrupt Flag (Read Only)
This bit is set when the RX FIFO is not empty and no activities occurred in the RX FIFO and the time-out counter equal to TOIC (UART_TOUT[7:0])
If RXTOIEN (UART_INTEN [4]) is enabled, the RX time-out interrupt will be generated.
0 = No RX time-out interrupt flag is generated.
1 = RX time-out interrupt flag is generated.
Note: This bit is read only and user can read UART_DAT (RX is in active) to clear it.
[5]BUFERRIF
Buffer Error Interrupt Flag (Read Only)
This bit is set when the TX FIFO or RX FIFO overflows (TXOVIF (UART_FIFOSTS[24]) or RXOVIF (UART_FIFOSTS[0]) is set)
When BUFERRIF (UART_INTSTS[5]) is set, the transfer is not correct
If BUFERRIEN (UART_INTEN [5]) is enabled, the buffer error interrupt will be generated.
0 = No buffer error interrupt flag is generated.
1 = Buffer error interrupt flag is generated.
Note: This bit is cleared if both of RXOVIF(UART_FIFOSTS[0]) and TXOVIF(UART_FIFOSTS[24]) are cleared to 0 by writing 1 to RXOVIF(UART_FIFOSTS[0]) and TXOVIF(UART_FIFOSTS[24]).
[6]WKIF
UART Wake-up Interrupt Flag (Read Only)
This bit is set when TOUTWKF (UART_WKSTS[4]), RS485WKF (UART_WKSTS[3]), RFRTWKF (UART_WKSTS[2]), DATWKF (UART_WKSTS[1]) or CTSWKF(UART_WKSTS[0]) is set to 1.
0 = No UART wake-up interrupt flag is generated.
1 = UART wake-up interrupt flag is generated.
Note: This bit is cleared if all of TOUTWKF, RS485WKF, RFRTWKF, DATWKF and CTSWKF are cleared to 0 by writing 1 to the corresponding interrupt flag.
[7]LINIF
LIN Bus Interrupt Flag
This bit is set when LIN slave header detect (SLVHDETF (UART_LINSTS[0] = 1)), LIN break detect (BRKDETF(UART_LINSTS[8]=1)), bit error detect (BITEF(UART_LINSTS[9]=1)), LIN slave ID parity error (SLVIDPEF(UART_LINSTS[2] = 1)) or LIN slave header error detect (SLVHEF (UART_LINSTS[1]))
If LINIEN (UART_INTEN [8]) is enabled the LIN interrupt will be generated.
0 = None of SLVHDETF, BRKDETF, BITEF, SLVIDPEF and SLVHEF is generated.
1 = At least one of SLVHDETF, BRKDETF, BITEF, SLVIDPEF and SLVHEF is generated.
Note: This bit is cleared when SLVHDETF(UART_LINSTS[0]), BRKDETF(UART_LINSTS[8]), BITEF(UART_LINSTS[9]), SLVIDPEF (UART_LINSTS[2]) and SLVHEF(UART_LINSTS[1]) all are cleared and software writing '1' to LINIF(UART_INTSTS[7]).
[8]RDAINT
Receive Data Available Interrupt Indicator (Read Only)
This bit is set if RDAIEN (UART_INTEN[0]) and RDAIF (UART_INTSTS[0]) are both set to 1.
0 = No RDA interrupt is generated.
1 = RDA interrupt is generated.
[9]THREINT
Transmit Holding Register Empty Interrupt Indicator (Read Only)
This bit is set if THREIEN (UART_INTEN[1]) and THREIF(UART_INTSTS[1]) are both set to 1.
0 = No THRE interrupt is generated.
1 = THRE interrupt is generated.
[10]RLSINT
Receive Line Status Interrupt Indicator (Read Only)
This bit is set if RLSIEN (UART_INTEN[2]) and RLSIF(UART_INTSTS[2]) are both set to 1.
0 = No RLS interrupt is generated.
1 = RLS interrupt is generated.
[11]MODEMINT
MODEM Status Interrupt Indicator (Read Only)
This bit is set if MODEMIEN(UART_INTEN[3]) and MODEMIF(UART_INTSTS[3]) are both set to 1
0 = No Modem interrupt is generated.
1 = Modem interrupt is generated.
[12]RXTOINT
RX Time-out Interrupt Indicator (Read Only)
This bit is set if RXTOIEN (UART_INTEN[4]) and RXTOIF(UART_INTSTS[4]) are both set to 1.
0 = No RX time-out interrupt is generated.
1 = RX time-out interrupt is generated.
[13]BUFERRINT
Buffer Error Interrupt Indicator (Read Only)
This bit is set if BUFERRIEN(UART_INTEN[5]) and BUFERRIF(UART_ INTSTS[5]) are both set to 1.
0 = No buffer error interrupt is generated.
1 = Buffer error interrupt is generated.
[14]WKINT
UART Wake-up Interrupt Indicator (Read Only)
This bit is set if WKIEN (UART_INTEN[6]) and WKIF (UART_INTSTS[6]) are both set to 1.
0 = No UART wake-up interrupt is generated.
1 = UART wake-up interrupt is generated.
[15]LININT
LIN Bus Interrupt Indicator (Read Only)
This bit is set if LINIEN (UART_INTEN[8]) and LINIF(UART_INTSTS[7]) are both set to 1.
0 = No LIN Bus interrupt is generated.
1 = The LIN Bus interrupt is generated.
[18]HWRLSIF
PDMA Mode Receive Line Status Flag (Read Only)
This bit is set when the RX receive data have parity error, frame error or break error (at least one of 3 bits, BIF (UART_FIFOSTS[6]), FEF (UART_FIFOSTS[5]) and PEF (UART_FIFOSTS[4]) is set)
If RLSIEN (UART_INTEN [2]) is enabled, the RLS interrupt will be generated.
0 = No RLS interrupt flag is generated in PDMA mode.
1 = RLS interrupt flag is generated in PDMA mode.
Note1: In RS-485 function mode, this field include "receiver detect any address byte received address byte character (bit9 = '1') bit".
Note2: In UART function mode, this bit is read only and reset to 0 when all bits of BIF(UART_FIFOSTS[6]) , FEF(UART_FIFOSTS[5]) and PEF(UART_FIFOSTS[4]) are cleared.
Note3: In RS-485 function mode, this bit is read only and reset to 0 when all bits of BIF(UART_FIFOSTS[6]), FEF(UART_FIFOSTS[5]), PEF(UART_FIFOSTS[4]) and ADDRDETF (UART_FIFOSTS[3]) are cleared
[19]HWMODIF
PDMA Mode MODEM Interrupt Flag (Read Only)
This bit is set when the nCTS pin has state change (CTSDETF (UART_MODEMSTS [0] =1))
If MODEMIEN (UART_INTEN [3]) is enabled, the Modem interrupt will be generated.
0 = No Modem interrupt flag is generated in PDMA mode.
1 = Modem interrupt flag is generated in PDMA mode.
Note: This bit is read only and reset to 0 when the bit CTSDETF (UART_MODEMSTS[0]) is cleared by writing 1 on CTSDETF (UART_MODEMSTS [0]).
[20]HWTOIF
PDMA Mode RX Time-out Interrupt Flag (Read Only)
This bit is set when the RX FIFO is not empty and no activities occurred in the RX FIFO and the time-out counter equal to TOIC (UART_TOUT[7:0])
If RXTOIEN (UART_INTEN [4]) is enabled, the RX time-out interrupt will be generated .
0 = No RX time-out interrupt flag is generated in PDMA mode.
1 = RX time-out interrupt flag is generated in PDMA mode.
Note: This bit is read only and user can read UART_DAT (RX is in active) to clear it.
[21]HWBUFEIF
PDMA Mode Buffer Error Interrupt Flag (Read Only)
This bit is set when the TX or RX FIFO overflows (TXOVIF (UART_FIFOSTS [24]) or RXOVIF (UART_FIFOSTS[0]) is set)
When BUFERRIF (UART_INTSTS[5]) is set, the transfer maybe is not correct
If BUFERRIEN (UART_INTEN [5]) is enabled, the buffer error interrupt will be generated.
0 = No buffer error interrupt flag is generated in PDMA mode.
1 = Buffer error interrupt flag is generated in PDMA mode.
Note: This bit is cleared when both TXOVIF (UART_FIFOSTS[24]]) and RXOVIF (UART_FIFOSTS[0]) are cleared.
[22]TXENDIF
Transmitter Empty Interrupt Flag
This bit is set when TX FIFO (UART_DAT) is empty and the STOP bit of the last byte has been transmitted (TXEMPTYF (UART_FIFOSTS[28]) is set)
If TXENDIEN (UART_INTEN[22]) is enabled, the Transmitter Empty interrupt will be generated.
0 = No transmitter empty interrupt flag is generated.
1 = Transmitter empty interrupt flag is generated.
Note: This bit is cleared automatically when TX FIFO is not empty or the last byte transmission has not completed.
[26]HWRLSINT
PDMA Mode Receive Line Status Interrupt Indicator (Read Only)
This bit is set if RLSIEN (UART_INTEN[2]) and HWRLSIF(UART_INTSTS[18]) are both set to 1.
0 = No RLS interrupt is generated in PDMA mode.
1 = RLS interrupt is generated in PDMA mode.
[27]HWMODINT
PDMA Mode MODEM Status Interrupt Indicator (Read Only)
This bit is set if MODEMIEN (UART_INTEN[3]) and HWMODIF(UART_INTSTS[19]) are both set to 1.
0 = No Modem interrupt is generated in PDMA mode.
1 = Modem interrupt is generated in PDMA mode.
[28]HWTOINT
PDMA Mode RX Time-out Interrupt Indicator (Read Only)
This bit is set if RXTOIEN (UART_INTEN[4]) and HWTOIF(UART_INTSTS[20]) are both set to 1.
0 = No RX time-out interrupt is generated in PDMA mode.
1 = RX time-out interrupt is generated in PDMA mode.
[29]HWBUFEINT
PDMA Mode Buffer Error Interrupt Indicator (Read Only)
This bit is set if BUFERRIEN (UART_INTEN[5]) and HWBUFEIF (UART_INTSTS[21]) are both set to 1.
0 = No buffer error interrupt is generated in PDMA mode.
1 = Buffer error interrupt is generated in PDMA mode.
[30]TXENDINT
Transmitter Empty Interrupt Indicator (Read Only)
This bit is set if TXENDIEN (UART_INTEN[22]) and TXENDIF(UART_INTSTS[22]) are both set to 1.
0 = No Transmitter Empty interrupt is generated.
1 = Transmitter Empty interrupt is generated.
[31]ABRINT
Auto-baud Rate Interrupt Indicator (Read Only)
This bit is set if ABRIEN (UART_INTEN[18]) and ABRIF (UART_ALTCTL[17]) are both set to 1.
0 = No Auto-baud Rate interrupt is generated.
1 = The Auto-baud Rate interrupt is generated.

Definition at line 1829 of file uart_reg.h.

◆ IRDA

UART_T::IRDA

[0x0028] UART IrDA Control Register

IRDA

Offset: 0x28 UART IrDA Control Register

BitsFieldDescriptions
[1]TXEN
IrDA Receiver/Transmitter Selection Enable Bit
0 = IrDA Transmitter Disabled and Receiver Enabled. (Default)
1 = IrDA Transmitter Enabled and Receiver Disabled.
[5]TXINV
IrDA Inverse Transmitting Output Signal
0 = None inverse transmitting signal. (Default).
1 = Inverse transmitting output signal.
Note1: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.
Note2: This bit is valid when FUNCSEL (UART_FUNCSEL[1:0]) is select IrDA function.
[6]RXINV
IrDA Inverse Receive Input Signal
0 = None inverse receiving input signal.
1 = Inverse receiving input signal. (Default)
Note1: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.
Note2: This bit is valid when FUNCSEL (UART_FUNCSEL[1:0]) is select IrDA function.

Definition at line 1832 of file uart_reg.h.

◆ LINCTL

UART_T::LINCTL

[0x0034] UART LIN Control Register

LINCTL

Offset: 0x34 UART LIN Control Register

BitsFieldDescriptions
[0]SLVEN
LIN Slave Mode Enable Bit
0 = LIN slave mode Disabled.
1 = LIN slave mode Enabled.
[1]SLVHDEN
LIN Slave Header Detection Enable Bit
0 = LIN slave header detection Disabled.
1 = LIN slave header detection Enabled.
Note1: This bit only valid when in LIN slave mode (SLVEN (UART_LINCTL[0]) = 1).
Note2: In LIN function mode, when detect header field (break + sync + frame ID), SLVHDETF (UART_LINSTS [0]) flag will be asserted
If the LINIEN (UART_INTEN[8]) = 1, an interrupt will be generated.
[2]SLVAREN
LIN Slave Automatic Resynchronization Mode Enable Bit
0 = LIN automatic resynchronization Disabled.
1 = LIN automatic resynchronization Enabled.
Note1: This bit only valid when in LIN slave mode (SLVEN (UART_LINCTL[0]) = 1).
Note2: When operation in Automatic Resynchronization mode, the baud rate setting must be mode2 (BAUDM1 (UART_BAUD [29]) and BAUDM0 (UART_BAUD [28]) must be 1).
Note3: The control and interactions of this field are explained in 7.15.5.9 (Slave mode with automatic resynchronization).
[3]SLVDUEN
LIN Slave Divider Update Method Enable Bit
0 = UART_BAUD updated is written by software (if no automatic resynchronization update occurs at the same time).
1 = UART_BAUD is updated at the next received character
User must set the bit before checksum reception.
Note1: This bit only valid when in LIN slave mode (SLVEN (UART_LINCTL[0]) = 1).
Note2: This bit used for LIN Slave Automatic Resynchronization mode
(for Non-Automatic Resynchronization mode, this bit should be kept cleared)
Note3: The control and interactions of this field are explained in 7.15.5.9 (Slave mode with automatic resynchronization).
[4]MUTE
LIN Mute Mode Enable Bit
0 = LIN mute mode Disabled.
1 = LIN mute mode Enabled.
Note: The exit from mute mode condition and each control and interactions of this field are explained in 7.15.5.9 (LIN slave mode).
[8]SENDH
LIN TX Send Header Enable Bit
The LIN TX header can be break field or 'break and sync field' or 'break, sync and frame ID field', it is depend on setting HSEL (UART_LINCTL[23:22]).
0 = Send LIN TX header Disabled.
1 = Send LIN TX header Enabled.
Note1: This bit is shadow bit of LINTXEN (UART_ALTCTL [7]); user can read/write it by setting LINTXEN (UART_ALTCTL [7]) or SENDH (UART_LINCTL [8]).
Note2: When transmitter header field (it may be 'break' or 'break + sync' or 'break + sync + frame ID' selected by HSEL (UART_LINCTL[23:22]) field) transfer operation finished, this bit will be cleared automatically.
[9]IDPEN
LIN ID Parity Enable Bit
0 = LIN frame ID parity Disabled.
1 = LIN frame ID parity Enabled.
Note1: This bit can be used for LIN master to sending header field (SENDH (UART_LINCTL[8])) = 1 and HSEL (UART_LINCTL[23:22]) = 10 or be used for enable LIN slave received frame ID parity checked.
Note2: This bit is only used when the operation header transmitter is in HSEL (UART_LINCTL[23:22]) = 10
[10]BRKDETEN
LIN Break Detection Enable Bit
When detect consecutive dominant greater than 11 bits, and are followed by a delimiter character, the BRKDETF (UART_LINSTS[8]) flag is set at the end of break field
If the LINIEN (UART_INTEN [8])=1, an interrupt will be generated.
0 = LIN break detection Disabled .
1 = LIN break detection Enabled.
[11]LINRXOFF
LIN Receiver Disable Bit
If the receiver is enabled (LINRXOFF (UART_LINCTL[11] ) = 0), all received byte data will be accepted and stored in the RX FIFO, and if the receiver is disabled (LINRXOFF (UART_LINCTL[11] = 1), all received byte data will be ignore.
0 = LIN receiver Enabled.
1 = LIN receiver Disabled.
Note: This bit is only valid when operating in LIN function mode (FUNCSEL (UART_FUNCSEL[1:0]) = 01).
[12]BITERREN
Bit Error Detect Enable Bit
0 = Bit error detection function Disabled.
1 = Bit error detection function Enabled.
Note: In LIN function mode, when occur bit error, the BITEF (UART_LINSTS[9]) flag will be asserted
If the LINIEN (UART_INTEN[8]) = 1, an interrupt will be generated.
[19:16]BRKFL
LIN Break Field Length
This field indicates a 4-bit LIN TX break field count.
Note1: These registers are shadow registers of BRKFL (UART_ALTCTL[3:0]), User can read/write it by setting BRKFL (UART_ALTCTL[3:0]) or BRKFL (UART_LINCTL[19:16]).
Note2: This break field length is BRKFL + 1.
Note3: According to LIN spec, the reset value is 12 (break field length = 13).
[21:20]BSL
LIN Break/Sync Delimiter Length
00 = The LIN break/sync delimiter length is 1-bit time.
01 = The LIN break/sync delimiter length is 2-bit time.
10 = The LIN break/sync delimiter length is 3-bit time.
11 = The LIN break/sync delimiter length is 4-bit time.
Note: This bit used for LIN master to sending header field.
[23:22]HSEL
LIN Header Select
00 = The LIN header includes 'break field'.
01 = The LIN header includes 'break field' and 'sync field'.
10 = The LIN header includes 'break field', 'sync field' and 'frame ID field'.
11 = Reserved.
Note: This bit is used to master mode for LIN to send header field (SENDH (UART_LINCTL [8]) = 1) or used to slave to indicates exit from mute mode condition (MUTE (UART_LINCTL[4] = 1).
[31:24]PID
LIN PID Bits
This field contains the LIN frame ID value when in LIN function mode, the frame ID parity can be generated by software or hardware depends on IDPEN (UART_LINCTL[9]) = 1.
If the parity generated by hardware, user fill ID0~ID5 (PID [29:24] ), hardware will calculate P0 (PID[30]) and P1 (PID[31]), otherwise user must filled frame ID and parity in this field.
Note1: User can fill any 8-bit value to this field and the bit 24 indicates ID0 (LSB first).
Note2: This field can be used for LIN master mode or slave mode.

Definition at line 1835 of file uart_reg.h.

◆ LINE

UART_T::LINE

[0x000c] UART Line Control Register

LINE

Offset: 0x0C UART Line Control Register

BitsFieldDescriptions
[1:0]WLS
Word Length Selection
This field sets UART word length.
00 = 5 bits.
01 = 6 bits.
10 = 7 bits.
11 = 8 bits.
[2]NSB
Number of 'STOP Bit'
0 = One 'STOP bit' is generated in the transmitted data.
1 = When select 5-bit word length, 1.5 'STOP bit' is generated in the transmitted data
When select 6-, 7- and 8-bit word length, 2 'STOP bit' is generated in the transmitted data.
[3]PBE
Parity Bit Enable Bit
0 = Parity bit generated Disabled.
1 = Parity bit generated Enabled.
Note: Parity bit is generated on each outgoing character and is checked on each incoming data.
[4]EPE
Even Parity Enable Bit
0 = Odd number of logic '1's is transmitted and checked in each word.
1 = Even number of logic '1's is transmitted and checked in each word.
Note: This bit has effect only when PBE (UART_LINE[3]) is set.
[5]SPE
Stick Parity Enable Bit
0 = Stick parity Disabled.
1 = Stick parity Enabled.
Note: If PBE (UART_LINE[3]) and EPE (UART_LINE[4]) are logic 1, the parity bit is transmitted and checked as logic 0
If PBE (UART_LINE[3]) is 1 and EPE (UART_LINE[4]) is 0 then the parity bit is transmitted and checked as 1.
[6]BCB
Break Control Bit
0 = Break Control Disabled.
1 = Break Control Enabled.
Note: When this bit is set to logic 1, the transmitted serial data output (TX) is forced to the Spacing State (logic 0)
This bit acts only on TX line and has no effect on the transmitter logic.
[7]PSS
Parity Bit Source Selection
The parity bit can be selected to be generated and checked automatically or by software.
0 = Parity bit is generated by EPE (UART_LINE[4]) and SPE (UART_LINE[5]) setting and checked automatically.
1 = Parity bit generated and checked by software.
Note1: This bit has effect only when PBE (UART_LINE[3]) is set.
Note2: If PSS is 0, the parity bit is transmitted and checked automatically
If PSS is 1, the transmitted parity bit value can be determined by writing PARITY (UART_DAT[8]) and the parity bit can be read by reading PARITY (UART_DAT[8]).
[8]TXDINV
TX Data Inverted
0 = Transmitted data signal inverted Disabled.
1 = Transmitted data signal inverted Enabled.
Note1: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.
Note2: This bit is valid when FUNCSEL (UART_FUNCSEL[1:0]) is select UART, LIN or RS485 function.
[9]RXDINV
RX Data Inverted
0 = Received data signal inverted Disabled.
1 = Received data signal inverted Enabled.
Note1: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.
Note2: This bit is valid when FUNCSEL (UART_FUNCSEL[1:0]) is select UART, LIN or RS485 function.

Definition at line 1825 of file uart_reg.h.

◆ LINSTS

UART_T::LINSTS

[0x0038] UART LIN Status Register

LINSTS

Offset: 0x38 UART LIN Status Register

BitsFieldDescriptions
[0]SLVHDETF
LIN Slave Header Detection Flag
This bit is set by hardware when a LIN header is detected in LIN slave mode and be cleared by writing 1 to it.
0 = LIN header not detected.
1 = LIN header detected (break + sync + frame ID).
Note1: This bit can be cleared by writing 1 to it.
Note2: This bit is only valid when in LIN slave mode (SLVEN (UART_LINCTL [0]) = 1) and enable LIN slave header detection function (SLVHDEN (UART_LINCTL [1])).
Note3: When enable ID parity check IDPEN (UART_LINCTL [9]), if hardware detect complete header ('break + sync + frame ID'), the SLVHDETF will be set whether the frame ID correct or not.
[1]SLVHEF
LIN Slave Header Error Flag
This bit is set by hardware when a LIN header error is detected in LIN slave mode and be cleared by writing 1 to it
The header errors include 'break delimiter is too short (less than 0.5 bit time)', 'frame error in sync field or Identifier field',
'sync field data is not 0x55 in Non-Automatic Resynchronization mode', 'sync field deviation error with Automatic Resynchronization mode',
'sync field measure time-out with Automatic Resynchronization mode' and 'LIN header reception time-out'.
0 = LIN header error not detected.
1 = LIN header error detected.
Note1: This bit can be cleared by writing 1 to it.
Note2: This bit is only valid when UART is operated in LIN slave mode (SLVEN (UART_LINCTL [0]) = 1) and
enables LIN slave header detection function (SLVHDEN (UART_LINCTL [1])).
[2]SLVIDPEF
LIN Slave ID Parity Error Flag
This bit is set by hardware when receipted frame ID parity is not correct.
0 = No active.
1 = Receipted frame ID parity is not correct.
Note1: This bit can be cleared by writing 1 to it.
Note2: This bit is only valid when in LIN slave mode (SLVEN (UART_LINCTL [0])= 1) and enable LIN frame ID parity check function IDPEN (UART_LINCTL [9]).
[3]SLVSYNCF
LIN Slave Sync Field
This bit indicates that the LIN sync field is being analyzed in Automatic Resynchronization mode
When the receiver header have some error been detect, user must reset the internal circuit to re-search new frame header by writing 1 to this bit.
0 = The current character is not at LIN sync state.
1 = The current character is at LIN sync state.
Note1: This bit is only valid when in LIN Slave mode (SLVEN(UART_LINCTL[0]) = 1).
Note2: This bit can be cleared by writing 1 to it.
Note3: When writing 1 to it, hardware will reload the initial baud rate and re-search a new frame header.
[8]BRKDETF
LIN Break Detection Flag
This bit is set by hardware when a break is detected and be cleared by writing 1 to it through software.
0 = LIN break not detected.
1 = LIN break detected.
Note1: This bit can be cleared by writing 1 to it.
Note2: This bit is only valid when LIN break detection function is enabled (BRKDETEN (UART_LINCTL[10]) =1).
[9]BITEF
Bit Error Detect Status Flag
At TX transfer state, hardware will monitor the bus state, if the input pin (UART_RXD) state not equals to the output pin (UART_TXD) state, BITEF (UART_LINSTS[9]) will be set.
When occur bit error, if the LINIEN (UART_INTEN[8]) = 1, an interrupt will be generated.
0 = Bit error not detected.
1 = Bit error detected.
Note1: This bit can be cleared by writing 1 to it.
Note2: This bit is only valid when enable bit error detection function (BITERREN (UART_LINCTL [12]) = 1).

Definition at line 1836 of file uart_reg.h.

◆ MODEM

UART_T::MODEM

[0x0010] UART Modem Control Register

MODEM

Offset: 0x10 UART Modem Control Register

BitsFieldDescriptions
[1]RTS
nRTS (Request-to-send) Signal Control
This bit is direct control internal nRTS signal active or not, and then drive the nRTS pin output with RTSACTLV bit configuration.
0 = nRTS signal is active.
1 = nRTS signal is inactive.
Note1: This nRTS signal control bit is not effective when nRTS auto-flow control is enabled in UART function mode.
Note2: This nRTS signal control bit is not effective when RS-485 auto direction mode (AUD) is enabled in RS-485 function mode.
[9]RTSACTLV
nRTS Pin Active Level
This bit defines the active level state of nRTS pin output.
0 = nRTS pin output is high level active.
1 = nRTS pin output is low level active. (Default)
Note1: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.
[13]RTSSTS
nRTS Pin Status (Read Only)
This bit mirror from nRTS pin output of voltage logic status.
0 = nRTS pin output is low level voltage logic state.
1 = nRTS pin output is high level voltage logic state.

Definition at line 1826 of file uart_reg.h.

◆ MODEMSTS

UART_T::MODEMSTS

[0x0014] UART Modem Status Register

MODEMSTS

Offset: 0x14 UART Modem Status Register

BitsFieldDescriptions
[0]CTSDETF
Detect nCTS State Change Flag
This bit is set whenever nCTS input has change state, and it will generate Modem interrupt to CPU when MODEMIEN (UART_INTEN [3]) is set to 1.
0 = nCTS input has not change state.
1 = nCTS input has change state.
Note: This bit can be cleared by writing '1' to it.
[4]CTSSTS
nCTS Pin Status (Read Only)
This bit mirror from nCTS pin input of voltage logic status.
0 = nCTS pin input is low level voltage logic state.
1 = nCTS pin input is high level voltage logic state.
Note: This bit echoes when UART controller peripheral clock is enabled, and nCTS multi-function port is selected.
[8]CTSACTLV
nCTS Pin Active Level
This bit defines the active level state of nCTS pin input.
0 = nCTS pin input is high level active.
1 = nCTS pin input is low level active. (Default)
Note: Before setting this bit, TXRXDIS (UART_FUNCSEL[3]) should be set then waited for TXRXACT (UART_FIFOSTS[31]) is cleared
When the configuration is done, cleared TXRXDIS (UART_FUNCSEL[3]) to activate UART controller.

Definition at line 1827 of file uart_reg.h.

◆ TOUT

UART_T::TOUT

[0x0020] UART Time-out Register

TOUT

Offset: 0x20 UART Time-out Register

BitsFieldDescriptions
[7:0]TOIC
Time-out Interrupt Comparator
The time-out counter resets and starts counting (the counting clock = baud rate) whenever the RX FIFO receives a new data word if time out counter is enabled by setting TOCNTEN (UART_INTEN[11])
Once the content of time-out counter is equal to that of time-out interrupt comparator (TOIC (UART_TOUT[7:0])), a receiver time-out interrupt (RXTOINT(UART_INTSTS[12])) is generated if RXTOIEN (UART_INTEN [4]) enabled
A new incoming data word or RX FIFO empty will clear RXTOIF (UART_INTSTS[4])
In order to avoid receiver time-out interrupt generation immediately during one character is being received, TOIC value should be set between 40 and 255
So, for example, if TOIC is set with 40, the time-out interrupt is generated after four characters are not received when 1 stop bit and no parity check is set for UART transfer.
[15:8]DLY
TX Delay Time Value
This field is used to programming the transfer delay time between the last stop bit and next start bit
The unit is bit time.

Definition at line 1830 of file uart_reg.h.

◆ WKCTL

UART_T::WKCTL

[0x0040] UART Wake-up Control Register

WKCTL

Offset: 0x40 UART Wake-up Control Register

BitsFieldDescriptions
[0]WKCTSEN
nCTS Wake-up Enable Bit
0 = nCTS Wake-up system function Disabled.
1 = nCTS Wake-up system function Enabled, when the system is in Power-down mode, an external.
nCTS change will wake-up system from Power-down mode.
[1]WKDATEN
Incoming Data Wake-up Enable Bit
0 = Incoming data wake-up system function Disabled.
1 = Incoming data wake-up system function Enabled, when the system is in Power-down mode,.
incoming data will wake-up system from Power-down mode.
[2]WKRFRTEN
Received Data FIFO Reached Threshold Wake-up Enable Bit
0 = Received Data FIFO reached threshold wake-up system function Disabled.
1 = Received Data FIFO reached threshold wake-up system function Enabled, when the system is.
in Power-down mode, Received Data FIFO reached threshold will wake-up system from
Power-down mode.
[3]WKRS485EN
RS-485 Address Match (AAD Mode) Wake-up Enable Bit
0 = RS-485 Address Match (AAD mode) wake-up system function Disabled.
1 = RS-485 Address Match (AAD mode) wake-up system function Enabled, when the system is in.
Power-down mode, RS-485 Address Match will wake-up system from Power-down mode.
Note: This bit is used for RS-485 Auto Address Detection (AAD) mode in RS-485 function mode
and ADDRDEN (UART_ALTCTL[15]) is set to 1.
[4]WKTOUTEN
Received Data FIFO Reached Threshold Time-out Wake-up Enable Bit
0 = Received Data FIFO reached threshold time-out wake-up system function Disabled.
1 = Received Data FIFO reached threshold time-out wake-up system function Enabled, when the.
system is in Power-down mode, Received Data FIFO reached threshold time-out will wake-up
system from Power-down mode.
Note: It is suggest the function is enabled when the WKRFRTEN (UART_WKCTL[2]) is set to 1.

Definition at line 1838 of file uart_reg.h.

◆ WKSTS

UART_T::WKSTS

[0x0044] UART Wake-up Status Register

WKSTS

Offset: 0x44 UART Wake-up Status Register

BitsFieldDescriptions
[0]CTSWKF
nCTS Wake-up Flag
This bit is set if chip wake-up from power-down state by nCTS wake-up.
0 = Chip stays in power-down state.
1 = Chip wake-up from power-down state by nCTS wake-up.
Note1: If WKCTSEN (UART_WKCTL[0]) is enabled, the nCTS wake-up cause this bit is set to '1'.
Note2: This bit can be cleared by writing '1' to it.
[1]DATWKF
Incoming Data Wake-up Flag
This bit is set if chip wake-up from power-down state by data wake-up.
0 = Chip stays in power-down state.
1 = Chip wake-up from power-down state by Incoming Data wake-up.
Note1: If WKDATEN (UART_WKCTL[1]) is enabled, the Incoming Data wake-up cause this bit is set to '1'.
Note2: This bit can be cleared by writing '1' to it.
[2]RFRTWKF
Received Data FIFO Reached Threshold Wake-up Flag
This bit is set if chip wake-up from power-down state by Received Data FIFO reached threshold
wake-up .
0 = Chip stays in power-down state.
1 = Chip wake-up from power-down state by Received Data FIFO Reached Threshold wake-up.
Note1: If WKRFRTEN (UART_WKCTL[2]) is enabled, the Received Data FIFO Reached Threshold wake-up cause this bit is set to '1'.
Note2: This bit can be cleared by writing '1' to it.
[3]RS485WKF
RS-485 Address Match (AAD Mode) Wake-up Flag
This bit is set if chip wake-up from power-down state by RS-485 Address Match (AAD mode).
0 = Chip stays in power-down state.
1 = Chip wake-up from power-down state by RS-485 Address Match (AAD mode) wake-up.
Note1: If WKRS485EN (UART_WKCTL[3]) is enabled, the RS-485 Address Match (AAD mode) wake-up cause this bit is set to '1'.
Note2: This bit can be cleared by writing '1' to it.
[4]TOUTWKF
Received Data FIFO Threshold Time-out Wake-up Flag
This bit is set if chip wake-up from power-down state by Received Data FIFO Threshold Time-out
wake-up.
0 = Chip stays in power-down state.
1 = Chip wake-up from power-down state by Received Data FIFO reached threshold time-out.
wake-up.
Note1: If WKTOUTEN (UART_WKCTL[4]) is enabled, the Received Data FIFO reached threshold time-out wake-up cause this bit is set to '1'.
Note2: This bit can be cleared by writing '1' to it.

Definition at line 1839 of file uart_reg.h.


The documentation for this struct was generated from the following file: