\n

UART

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x3C byte (0x0)
mem_usage : registers
protection : not protected

Registers

UA_RBR

UA_THR

UA_MCR

UA_MSR

UA_FSR

UA_ISR

UA_TOR

UA_BAUD

UA_IRCR

UA_ALT_CSR

UA_FUN_SEL

UA_LIN_CTL

UA_LIN_SR

UA_IER

UA_FCR

UA_LCR


UA_RBR

UART Receive Buffer Register
address_offset : 0x0 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

UA_RBR UA_RBR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RBR

RBR : Receive Buffer Register (Read Only)\nBy reading this register, the UART will return an 8-bit data received from UART_RXD pin (LSB first).
bits : 0 - 7 (8 bit)
access : read-only


UA_THR

UART Transmit Holding Register
address_offset : 0x0 Bytes (0x0)
access : write-only
reset_value : 0x0
alternate_register : UA_RBR
reset_Mask : 0x0

UA_THR UA_THR write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 THR

THR : Transmit Holding Register\nBy writing to this register, the UART will send out an 8-bit data through the UART_TXD pin (LSB first).
bits : 0 - 7 (8 bit)
access : write-only


UA_MCR

UART Modem Control Register
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_MCR UA_MCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTS LEV_RTS RTS_ST

RTS : NRTS (Request-to-send) Signal (Not Available in UART2 Channel)\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Drive nRTS pin to logic 1 (If the LEV_RTS set to low level triggered).\nDrive nRTS pin to logic 0 (If the LEV_RTS set to high level triggered)

#1 : 1

Drive nRTS pin to logic 0 (If the LEV_RTS set to low level triggered).\nDrive nRTS pin to logic 1 (If the LEV_RTS set to high level triggered)

End of enumeration elements list.

LEV_RTS : NRTS Trigger Level (Not Available in UART2 Channel)\nThis bit can change the nRTS trigger level.\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Low level triggered

#1 : 1

High level triggered

End of enumeration elements list.

RTS_ST : NRTS Pin State (Read Only) (Not Available in UART2 Channel)\nThis bit is the output pin status of nRTS.
bits : 13 - 13 (1 bit)
access : read-only


UA_MSR

UART Modem Status Register
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_MSR UA_MSR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DCTSF CTS_ST LEV_CTS

DCTSF : Detect NCTS State Change Flag (Read Only) (Not Available in UART2 Channel)\nThis bit is set whenever nCTS input has change state, and it will generate Modem interrupt to CPU when UA_IER [MODEM_IEN] is set to 1.\nWrite 1 to clear this bit to 0
bits : 0 - 0 (1 bit)
access : read-only

CTS_ST : NCTS Pin Status (Read Only) (Not Available in UART2 Channel)\nThis bit is the pin status of nCTS.
bits : 4 - 4 (1 bit)
access : read-only

LEV_CTS : NCTS Trigger Level (Not Available in UART2 Channel)\nThis bit can change the nCTS trigger level.\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Low level triggered

#1 : 1

High level triggered

End of enumeration elements list.


UA_FSR

UART FIFO Status Register
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_FSR UA_FSR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RX_OVER_IF RS485_ADD_DETF PEF FEF BIF RX_POINTER RX_EMPTY RX_FULL TX_POINTER TX_EMPTY TX_FULL TX_OVER_IF TE_FLAG

RX_OVER_IF : RX Overflow Error IF (Read Only)\nThis bit is set when RX FIFO overflow.\nIf the number of bytes of received data is greater than RX_FIFO (UA_RBR) size, 64/16/16 bytes of UART0/UART1/UART2, this bit will be set.\nNote: This bit is read only, but can be cleared by writing '1' to it.
bits : 0 - 0 (1 bit)
access : read-only

RS485_ADD_DETF : RS-485 Address Byte Detection Flag (Read Only) \nNote: This field is used for RS-485 function mode.\nNote: This bit is read only, but can be cleared by writing '1' to it.
bits : 3 - 3 (1 bit)
access : read-only

PEF : Parity Error Flag (Read Only) This bit is set to logic 1 whenever the received character does not have a valid parity bit , and is reset whenever the CPU writes 1 to this bit. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 4 - 4 (1 bit)
access : read-only

FEF : Framing Error Flag (Read Only) 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), and is reset whenever the CPU writes 1 to this bit. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 5 - 5 (1 bit)
access : read-only

BIF : Break Interrupt Flag (Read Only) 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) and is reset whenever the CPU writes 1 to this bit. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 6 - 6 (1 bit)
access : read-only

RX_POINTER : RX FIFO Pointer (Read Only)\nThis field indicates the RX FIFO Buffer Pointer. When UART receives one byte from external device, then RX_POINTER increases one. When one byte of RX FIFO is read by CPU, then RX_POINTER decreases one.\nThe Maximum value shown in RX_POINTER is 63/15/15 (UART0/UART1/UART2). When the using level of RX FIFO Buffer equal to 64/16/16, the RX_FULL bit is set to 1 and RX_POINTER will show 0. As one byte of RX FIFO is read by CPU, the RX_FULL bit is cleared to 0 and RX_POINTER will show 63/15/15 (UART0/UART1/UART2).
bits : 8 - 13 (6 bit)
access : read-only

RX_EMPTY : Receiver FIFO Empty (Read Only)\nThis bit initiate RX FIFO empty or not.\nWhen 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.
bits : 14 - 14 (1 bit)
access : read-only

RX_FULL : Receiver FIFO Full (Read Only)\nThis bit initiates RX FIFO is full or not.\nThis bit is set when the number of usage in RX FIFO Buffer is equal to 64/16/16(UART0/UART1/UART2), otherwise is cleared by hardware.
bits : 15 - 15 (1 bit)
access : read-only

TX_POINTER : TX FIFO Pointer (Read Only)\nThis field indicates the TX FIFO Buffer Pointer. When CPU writes one byte into UA_THR, then TX_POINTER increases one. When one byte of TX FIFO is transferred to Transmitter Shift Register, then TX_POINTER decreases one.\nThe Maximum value shown in TX_POINTER is 63/15/15 (UART0/UART1/UART2). When the using level of TX FIFO Buffer equal to 64/16/16, the TX_FULL bit is set to 1 and TX_POINTER will show 0. As one byte of TX FIFO is transferred to Transmitter Shift Register, the TX_FULL bit is cleared to 0 and TX_POINTER will show 63/15/15 (UART0/UART1/UART2).
bits : 16 - 21 (6 bit)
access : read-only

TX_EMPTY : Transmitter FIFO Empty (Read Only)\nThis bit indicates TX FIFO is empty or not.\nWhen 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 THR (TX FIFO not empty).
bits : 22 - 22 (1 bit)
access : read-only

TX_FULL : Transmitter FIFO Full (Read Only)\nThis bit indicates TX FIFO is full or not.\nThis bit is set when the number of usage in TX FIFO Buffer is equal to 64/16/16(UART0/UART1/UART2), otherwise is cleared by hardware.
bits : 23 - 23 (1 bit)
access : read-only

TX_OVER_IF : TX Overflow Error Interrupt Flag (Read Only)\nIf TX FIFO (UA_THR) is full, an additional write to UA_THR will cause this bit to logic 1.\nNote: This bit is read only, but can be cleared by writing '1' to it.
bits : 24 - 24 (1 bit)
access : read-only

TE_FLAG : Transmitter Empty Flag (Read Only)\nBit is set by hardware when TX FIFO (UA_THR) is empty and the STOP bit of the last byte has been transmitted.\nBit is cleared automatically when TX FIFO is not empty or the last byte transmission has not completed.
bits : 28 - 28 (1 bit)
access : read-only


UA_ISR

UART Interrupt Status Register
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_ISR UA_ISR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDA_IF THRE_IF RLS_IF MODEM_IF TOUT_IF BUF_ERR_IF LIN_IF RDA_INT THRE_INT RLS_INT MODEM_INT TOUT_INT BUF_ERR_INT LIN_INT HW_RLS_IF HW_MODEM_IF HW_TOUT_IF HW_BUF_ERR_IF HW_RLS_INT HW_MODEM_INT HW_TOUT_INT HW_BUF_ERR_INT

RDA_IF : Receive Data Available Interrupt Flag (Read Only)\nWhen the number of bytes in the RX FIFO equals the RFITL then the RDA_IF will be set. If UA_IER [RDA_IEN] is enabled, the RDA interrupt will be generated. \nNote: 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).
bits : 0 - 0 (1 bit)
access : read-only

THRE_IF : Transmit Holding Register Empty Interrupt Flag (Read Only) \nThis bit is set when the last data of TX FIFO is transferred to Transmitter Shift Register. If UA_IER [THRE_IEN] is enabled, the THRE interrupt will be generated.\nNote: This bit is read only and it will be cleared when writing data into THR (TX FIFO not empty).
bits : 1 - 1 (1 bit)
access : read-only

RLS_IF : 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, FEF and PEF, is set). If UA_IER [RLS_IEN] is enabled, the RLS interrupt will be generated. Note: This bit is read only and reset to 0 when all bits of BIF, FEF and PEF are cleared.
bits : 2 - 2 (1 bit)
access : read-only

MODEM_IF : MODEM Interrupt Flag (Read Only) (Not Available in UART2 Channel)\nNote: This bit is read only and reset to 0 when bit DCTSF is cleared by a write 1 on DCTSF.
bits : 3 - 3 (1 bit)
access : read-only

TOUT_IF : Time-out Interrupt Flag (Read Only)\nThis 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. If UA_IER [TOUT_IEN] is enabled, the Tout interrupt will be generated. \nNote: This bit is read only and user can read UA_RBR (RX is in active) to clear it.
bits : 4 - 4 (1 bit)
access : read-only

BUF_ERR_IF : Buffer Error Interrupt Flag (Read Only)\nThis bit is set when the TX or RX FIFO overflows (TX_OVER_IF or RX_OVER_IF is set). When BUF_ERR_IF is set, the transfer is not correct. If UA_IER [BUF_ERR_IEN] is enabled, the buffer error interrupt will be generated.
bits : 5 - 5 (1 bit)
access : read-only

LIN_IF : LIN Bus Flag (Read Only)\nNote: This bit is cleared when LINS_HDET_F, LIN_BKDET_F, BIT_ERR_F, LINS_IDPENR_F and LINS_HERR_F all are cleared
bits : 7 - 7 (1 bit)
access : read-only

RDA_INT : Receive Data Available Interrupt Indicator (Read Only)\nThis bit is set if RDA_IEN and RDA_IF are both set to 1.\n
bits : 8 - 8 (1 bit)
access : read-only

Enumeration:

#0 : 0

No RDA interrupt is generated

#1 : 1

RDA interrupt is generated

End of enumeration elements list.

THRE_INT : Transmit Holding Register Empty Interrupt Indicator (Read Only)\nThis bit is set if THRE_IEN and THRE_IF are both set to 1.\n
bits : 9 - 9 (1 bit)
access : read-only

Enumeration:

#0 : 0

No THRE interrupt is generated

#1 : 1

THRE interrupt is generated

End of enumeration elements list.

RLS_INT : Receive Line Status Interrupt Indicator (Read Only) \nThis bit is set if RLS_IEN and RLS_IF are both set to 1.\n
bits : 10 - 10 (1 bit)
access : read-only

Enumeration:

#0 : 0

No RLS interrupt is generated

#1 : 1

RLS interrupt is generated

End of enumeration elements list.

MODEM_INT : MODEM Status Interrupt Indicator (Read Only) (Not Available in UART2 Channel)\nThis bit is set if MODEM_IEN and MODEM_IF are both set to 1.\n
bits : 11 - 11 (1 bit)
access : read-only

Enumeration:

#0 : 0

No Modem interrupt is generated

#1 : 1

Modem interrupt is generated

End of enumeration elements list.

TOUT_INT : Time-out Interrupt Indicator (Read Only)\nThis bit is set if TOUT_IEN and TOUT_IF are both set to 1.\n
bits : 12 - 12 (1 bit)
access : read-only

Enumeration:

#0 : 0

No Tout interrupt is generated

#1 : 1

Tout interrupt is generated

End of enumeration elements list.

BUF_ERR_INT : Buffer Error Interrupt Indicator (Read Only)\nThis bit is set if BUF_ERR_IEN and BUF_ERR_IF are both set to 1.\n
bits : 13 - 13 (1 bit)
access : read-only

Enumeration:

#0 : 0

No buffer error interrupt is generated

#1 : 1

Buffer error interrupt is generated

End of enumeration elements list.

LIN_INT : LIN Bus Interrupt Indicator (Read Only)\nThis bit is set if LIN_IEN and LIN _IF are both set to 1.\n
bits : 15 - 15 (1 bit)
access : read-only

Enumeration:

#0 : 0

No LIN Bus interrupt is generated

#1 : 1

The LIN Bus interrupt is generated

End of enumeration elements list.

HW_RLS_IF : In DMA Mode, Receive Line Status Flag (Read Only)\nThis bit is set when the RX receive data have parity error, frame error or break error (at least one of 3 bits, BIF, FEF and PEF, is set). If UA_IER [RLS_IEN] is enabled, the RLS interrupt will be generated.\nNote: This bit is read only and reset to 0 when all bits of BIF, FEF and PEF are cleared.
bits : 18 - 18 (1 bit)
access : read-only

HW_MODEM_IF : In DMA Mode, MODEM Interrupt Flag (Read Only) (Not Available in UART2 Channel)\nNote: This bit is read only and reset to 0 when the bit DCTSF is cleared by writing 1 on DCTSF.
bits : 19 - 19 (1 bit)
access : read-only

HW_TOUT_IF : In DMA Mode, Time-out Interrupt Flag (Read Only)\nThis 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. If UA_IER [TOUT_IEN] is enabled, the Tout interrupt will be generated. \nNote: This bit is read only and user can read UA_RBR (RX is in active) to clear it.
bits : 20 - 20 (1 bit)
access : read-only

HW_BUF_ERR_IF : In DMA Mode, Buffer Error Interrupt Flag (Read Only)\nThis bit is set when the TX or RX FIFO overflows (TX_OVER_IF or RX_OVER_IF is set). When BUF_ERR_IF is set, the transfer maybe is not correct. If UA_IER [BUF_ERR_IEN] is enabled, the buffer error interrupt will be generated.\nNote: This bit is cleared when both TX_OVER_IF and RX_OVER_IF are cleared.
bits : 21 - 21 (1 bit)
access : read-only

HW_RLS_INT : In DMA Mode, Receive Line Status Interrupt Indicator (Read Only)\nThis bit is set if RLS_IEN and HW_RLS_IF are both set to 1.\n
bits : 26 - 26 (1 bit)
access : read-only

Enumeration:

#0 : 0

No RLS interrupt is generated in DMA mode

#1 : 1

RLS interrupt is generated in DMA mode

End of enumeration elements list.

HW_MODEM_INT : In DMA Mode, MODEM Status Interrupt Indicator (Read Only) (Not Available in UART2 Channel)\nThis bit is set if MODEM_IEN and HW_MODEM_IF are both set to 1.\n
bits : 27 - 27 (1 bit)
access : read-only

Enumeration:

#0 : 0

No Modem interrupt is generated in DMA mode

#1 : 1

Modem interrupt is generated in DMA mode

End of enumeration elements list.

HW_TOUT_INT : In DMA Mode, Time-out Interrupt Indicator (Read Only)\nThis bit is set if TOUT_IEN and HW_TOUT_IF are both set to 1.\n
bits : 28 - 28 (1 bit)
access : read-only

Enumeration:

#0 : 0

No Tout interrupt is generated in DMA mode

#1 : 1

Tout interrupt is generated in DMA mode

End of enumeration elements list.

HW_BUF_ERR_INT : In DMA Mode, Buffer Error Interrupt Indicator (Read Only)\nThis bit is set if BUF_ERR_IEN and HW_BUF_ERR_IF are both set to 1.\n
bits : 29 - 29 (1 bit)
access : read-only

Enumeration:

#0 : 0

No buffer error interrupt is generated in DMA mode

#1 : 1

Buffer error interrupt is generated in DMA mode

End of enumeration elements list.


UA_TOR

UART Time-out Register
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_TOR UA_TOR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TOIC DLY

TOIC : Time-out Interrupt Comparator\n
bits : 0 - 7 (8 bit)
access : read-write

DLY : TX Delay Time Value \nThis field is used to programming the transfer delay time between the last stop bit and next start bit.
bits : 8 - 15 (8 bit)
access : read-write


UA_BAUD

UART Baud Rate Divisor Register
address_offset : 0x24 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_BAUD UA_BAUD read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BRD DIVIDER_X DIV_X_ONE DIV_X_EN

BRD : Baud Rate Divider\nThe field indicates the baud rate divider
bits : 0 - 15 (16 bit)
access : read-write

DIVIDER_X : Divider X\n
bits : 24 - 27 (4 bit)
access : read-write

DIV_X_ONE : Divider X Equal to 1\nRefer to Table 611 for more information.
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

Divider M = X (the equation of M = X+1, but DIVIDER_X[27:24] must = 8)

#1 : 1

Divider M = 1 (the equation of M = 1, but BRD [15:0] must = 3)

End of enumeration elements list.

DIV_X_EN : Divider X Enable\nRefer to Table 611 for more information.\nNote: In IrDA mode, this bit must disable.
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Divider X Disabled (the equation of M = 16)

#1 : 1

Divider X Enabled (the equation of M = X+1, but DIVIDER_X [27:24] must = 8)

End of enumeration elements list.


UA_IRCR

UART IrDA Control Register
address_offset : 0x28 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_IRCR UA_IRCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TX_SELECT INV_TX INV_RX

TX_SELECT : TX_SELECT\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

IrDA receiver Enabled

#1 : 1

IrDA transmitter Enabled

End of enumeration elements list.

INV_TX : INV_TX\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No inversion

#1 : 1

Inverse TX output signal

End of enumeration elements list.

INV_RX : INV_RX\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

No inversion

#1 : 1

Inverse RX input signal

End of enumeration elements list.


UA_ALT_CSR

UART Alternate Control/Status Register
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_ALT_CSR UA_ALT_CSR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 LIN_BKFL LIN_RX_EN LIN_TX_EN RS485_NMM RS485_AAD RS485_AUD RS485_ADD_EN ADDR_MATCH

LIN_BKFL : UART LIN Break Field Length\nThis field indicates a 4-bit LIN TX break field count.\nNote1: This break field length is UA_LIN_BKFL + 1\n
bits : 0 - 3 (4 bit)
access : read-write

LIN_RX_EN : LIN RX Enable\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN RX mode Disabled

#1 : 1

LIN RX mode Enabled

End of enumeration elements list.

LIN_TX_EN : LIN TX Break Mode Enable\nNote: When TX break field transfer operation finished, this bit will be cleared automatically.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN TX Break mode Disabled

#1 : 1

LIN TX Break mode Enabled

End of enumeration elements list.

RS485_NMM : RS-485 Normal Multi-drop Operation Mode (NMM) \nNote: It cannot be active with RS-485_AAD operation mode.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

RS-485 Normal Multi-drop Operation mode (NMM) Disabled

#1 : 1

RS-485 Normal Multi-drop Operation mode (NMM) Enabled

End of enumeration elements list.

RS485_AAD : RS-485 Auto Address Detection Operation Mode (AAD)\nNote: It cannot be active with RS-485_NMM operation mode.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

RS-485 Auto Address Detection Operation mode (AAD) Disabled

#1 : 1

RS-485 Auto Address Detection Operation mode (AAD) Enabled

End of enumeration elements list.

RS485_AUD : RS-485 Auto Direction Mode (AUD) \nNote: It can be active with RS-485_AAD or RS-485_NMM operation mode.
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

RS-485 Auto Direction Operation mode (AUO) Disabled

#1 : 1

RS-485 Auto Direction Operation mode (AUO) Enabled

End of enumeration elements list.

RS485_ADD_EN : RS-485 Address Detection Enable \nThis bit is used to enable RS-485 Address Detection mode. \nNote: This field is used for RS-485 any operation mode.
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Address detection mode Disabled

#1 : 1

Address detection mode Enabled

End of enumeration elements list.

ADDR_MATCH : Address Match Value Register \nThis field contains the RS-485 address match values.\nNote: This field is used for RS-485 auto address detection mode.
bits : 24 - 31 (8 bit)
access : read-write


UA_FUN_SEL

UART Function Select Register
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_FUN_SEL UA_FUN_SEL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FUN_SEL

FUN_SEL : Function Select Enable\n
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

#00 : 0

UART function Enabled

#01 : 1

LIN function Enabled

#10 : 2

IrDA function Enabled

#11 : 3

RS-485 function Enabled

End of enumeration elements list.


UA_LIN_CTL

UART LIN Control Register
address_offset : 0x34 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_LIN_CTL UA_LIN_CTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 LINS_EN LINS_HDET_EN LINS_ARS_EN LINS_DUM_EN LIN_MUTE_EN LIN_SHD LIN_IDPEN LIN_BKDET_EN LIN_RX_DIS BIT_ERR_EN LIN_BKFL LIN_BS_LEN LIN_HEAD_SEL LIN_PID

LINS_EN : LIN Slave Mode Enable\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN slave mode Disabled

#1 : 1

LIN slave mode Enabled

End of enumeration elements list.

LINS_HDET_EN : LIN Slave Header Detection Enable\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN slave header detection Disabled

#1 : 1

LIN slave header detection Enabled

End of enumeration elements list.

LINS_ARS_EN : LIN Slave Automatic Resynchronization Mode Enable\nNote2: When operation in Automatic Resynchronization mode, the baud rate setting must be mode2 (UA_BAUD [DIV_X_EN] and UA_BAUD [DIV_X_ONE] must be 1).\nNote3: The control and interactions of this field are explained in character 6.12.5.4 (Slave mode with automatic resynchronization).
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN automatic resynchronization Disabled

#1 : 1

LIN automatic resynchronization Enabled

End of enumeration elements list.

LINS_DUM_EN : LIN Slave Divider Update Method Enable\nNote2: This bit used for LIN Slave Automatic Resynchronization mode. (for Non-Automatic Resynchronization mode, this bit should be kept cleared) \nNote3: The control and interactions of this field are explained in character 6.12.5.4 (Slave mode with automatic resynchronization).
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

UA_BAUD is updated as soon as UA_BAUD is writing by software (if no automatic resynchronization update occurs at the same time)

#1 : 1

UA_BAUD is updated at the next received character. User must set the bit before checksum reception

End of enumeration elements list.

LIN_MUTE_EN : LIN Mute Mode Enable\nNote: The exit from mute mode condition and each control and interactions of this field are explained in character 6.12.5.4 (LIN slave mode).
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN mute mode Disabled

#1 : 1

LIN mute mode Enabled

End of enumeration elements list.

LIN_SHD : LIN TX Send Header Enable 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 LIN_HEAD_SEL register. Note1: These registers are shadow registers of UA_ALT_CSR [LIN_SHD] user can read/write it by setting UA_ALT_CSR [LIN_SHD] or UA_LIN_CTL [LIN_SHD]. Note2: When transmitter header field (it may be break or break + sync or break + sync + frame ID selected by LIN_HEAD_SEL field) transfer operation finished, this bit will be cleared automatically.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Send LIN TX header Disabled

#1 : 1

Send LIN TX header Enabled

End of enumeration elements list.

LIN_IDPEN : LIN ID Parity Enable\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

LIN frame ID parity Disabled

#1 : 1

LIN frame ID parity Enabled

End of enumeration elements list.

LIN_BKDET_EN : LIN Break Detection Enable\n
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable LIN break detection

#1 : 1

Enable LIN break detection

End of enumeration elements list.

LIN_RX_DIS : None
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Error detection function Disabled

#1 : 1

Bit error detection Enabled

End of enumeration elements list.

BIT_ERR_EN : Bit Error Detect Enable\n
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Bit error detection function Disabled

#1 : 1

Bit error detection Enabled

End of enumeration elements list.

LIN_BKFL : LIN Break Field Length\nThis field indicates a 4-bit LIN TX break field count.\nNote1: These registers are shadow registers of UA_ALT_CSR [LIN_BKFL], User can read/write it by setting UA_ALT_CSR [LIN_BKFL] or UA_LIN_CTL [LIN_BKFL].\nNote2: This break field length is LIN_BKFL + 1.\n
bits : 16 - 19 (4 bit)
access : read-write

LIN_BS_LEN : LIN Break/Sync Delimiter Length\n\nNote: This bit used for LIN master to sending header field.
bits : 20 - 21 (2 bit)
access : read-write

Enumeration:

#00 : 0

The LIN break/sync delimiter length is 1 bit time

#10 : 2

The LIN break/sync delimiter length is 2 bit time.\nThe LIN break/sync delimiter length is 3 bit time

#11 : 3

The LIN break/sync delimiter length is 4 bit time

End of enumeration elements list.

LIN_HEAD_SEL : LIN Header Select\n
bits : 22 - 23 (2 bit)
access : read-write

Enumeration:

#00 : 0

The LIN header includes break field

#01 : 1

The LIN header includes break field and sync field

#10 : 2

The LIN header includes break field , sync field and frame ID field

#11 : 3

Reserved

End of enumeration elements list.

LIN_PID : LIN PID Register\nThis 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 UA_LIN_CTL [LIN_IDPEN]. \n\nNote1: User can fill any 8-bit value to this field and the bit 24 indicates ID0 (LSB first)\nNote2: This field can be used for LIN master mode or slave mode.
bits : 24 - 31 (8 bit)
access : read-write


UA_LIN_SR

UART LIN Status Register
address_offset : 0x38 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_LIN_SR UA_LIN_SR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 LINS_HDET_F LINS_HERR_F LINS_IDPERR_F LINS_SYNC_F LIN_BKDET_F BIT_ERR_F

LINS_HDET_F : LIN Slave Header Detection Flag (Read Only)\nThis bit is set by hardware when a LIN header is detected in LIN slave mode and be cleared by writing 1 to it.\n
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

LIN header not detected

#1 : 1

LIN header detected (break + sync + frame ID)

End of enumeration elements list.

LINS_HERR_F : LIN Slave Header Error Flag (Read Only) 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 , 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 .
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

LIN header error not detected

#1 : 1

LIN header error detected

End of enumeration elements list.

LINS_IDPERR_F : LIN Slave ID Parity Error Flag (Read Only)\nThis bit is set by hardware when receipted frame ID parity is not correct.\n
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

No active

#1 : 1

Receipted frame ID parity is not correct

End of enumeration elements list.

LINS_SYNC_F : LIN Slave Sync Field\nThis 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.\nNote2: This bit is read only, but it can be cleared by writing 1 to it.\nNote3: When writing 1 to it, hardware will reload the initial baud-rate and re-search a new frame header.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

The current character is not at LIN sync state

#1 : 1

The current character is at LIN sync state

End of enumeration elements list.

LIN_BKDET_F : LIN Break Detection Flag (Read Only)\nThis bit is set by hardware when a break is detected and be cleared by writing 1 to it through software.\nNote1: This bit is read only, but it can be cleared by writing 1 to it.\nNote2: This bit is only valid when enable LIN break detection function (UA_ALT_CSR [LIN_BKDET_EN])
bits : 8 - 8 (1 bit)
access : read-only

Enumeration:

#0 : 0

LIN break not detected

#1 : 1

LIN break detected

End of enumeration elements list.

BIT_ERR_F : Bit Error Detect Status Flag (Read Only)\nAt TX transfer state, hardware will monitoring the bus state, if the input pin (SIN) state not equals to the output pin (SOUT) state, BIT_ERR_F will be set.\n
bits : 9 - 9 (1 bit)
access : read-only


UA_IER

UART Interrupt Enable Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_IER UA_IER read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDA_IEN THRE_IEN RLS_IEN MODEM_IEN TOUT_IEN BUF_ERR_IEN WAKE_EN LIN_IEN TIME_OUT_EN AUTO_RTS_EN AUTO_CTS_EN DMA_TX_EN DMA_RX_EN

RDA_IEN : Receive Data Available Interrupt Enable\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_RDA Masked off

#1 : 1

INT_RDA Enabled

End of enumeration elements list.

THRE_IEN : Transmit Holding Register Empty Interrupt Enable\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_THRE Masked off

#1 : 1

INT_THRE Enabled

End of enumeration elements list.

RLS_IEN : Receive Line Status Interrupt Enable \n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_RLS Masked off

#1 : 1

INT_RLS Enabled

End of enumeration elements list.

MODEM_IEN : Modem Status Interrupt Enable (Not Available in UART2 Channel)\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_MODEM Masked off

#1 : 1

INT_MODEM Enabled

End of enumeration elements list.

TOUT_IEN : RX Time-out Interrupt Enable\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_TOUT Masked off

#1 : 1

INT_TOUT Enabled

End of enumeration elements list.

BUF_ERR_IEN : Buffer Error Interrupt Enable\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT_BUF_ERR Masked off

#1 : 1

INT_BUF_ERR Enabled

End of enumeration elements list.

WAKE_EN : UART Wake-up Function Enable (Not Available in UART2 Channel)\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

UART wake-up function Disabled

#1 : 1

UART wake-up function Enabled, when the chip is in Power-down mode, an external nCTS change will wake-up chip from Power-down mode

End of enumeration elements list.

LIN_IEN : LIN Bus Interrupt Enable\nNote: This field is used for LIN function mode.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Lin bus interrupt Disabled

#1 : 1

Lin bus interrupt Enabled

End of enumeration elements list.

TIME_OUT_EN : Time-out Counter Enable\n
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Time-out counter Disabled

#1 : 1

Time-out counter Enabled

End of enumeration elements list.

AUTO_RTS_EN : NRTS Auto Flow Control Enable (Not Available in UART2 Channel)\nWhen nRTS auto-flow is enabled, if the number of bytes in the RX FIFO equals the UA_FCR [RTS_TRI_LEV], the UART will de-assert nRTS signal.
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

nRTS auto flow control Disabled

#1 : 1

nRTS auto flow control Enabled

End of enumeration elements list.

AUTO_CTS_EN : NCTS Auto Flow Control Enable (Not Available in UART2 Channel)\nWhen nCTS auto-flow is enabled, the UART will send data to external device when nCTS input assert (UART will not send data to device until nCTS is asserted).
bits : 13 - 13 (1 bit)
access : read-write

Enumeration:

#0 : 0

nCTS auto flow control Disabled

#1 : 1

nCTS auto flow control Enabled

End of enumeration elements list.

DMA_TX_EN : TX DMA Enable (Not Available in UART2 Channel)\nThis bit can enable or disable TX DMA service.\n
bits : 14 - 14 (1 bit)
access : read-write

Enumeration:

#0 : 0

TX DMA Disabled

#1 : 1

TX DMA Enabled

End of enumeration elements list.

DMA_RX_EN : RX DMA Enable (Not Available in UART2 Channel)\nThis bit can enable or disable RX DMA service.\n
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

RX DMA Disabled

#1 : 1

RX DMA Enabled

End of enumeration elements list.


UA_FCR

UART FIFO Control Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_FCR UA_FCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RFR TFR RFITL RX_DIS RTS_TRI_LEV

RFR : RX Field Software Reset\nWhen RX_RST is set, all the byte in the receiver FIFO and RX internal state machine are cleared.\nNote: This bit will automatically clear at least 3 UART peripheral clock cycles.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset the RX internal state machine and pointers

End of enumeration elements list.

TFR : TX Field Software Reset\nWhen TX_RST is set, all the byte in the transmit FIFO and TX internal state machine are cleared.\nNote: This bit will automatically clear at least 3 UART peripheral clock cycles.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset the TX internal state machine and pointers

End of enumeration elements list.

RFITL : RX FIFO Interrupt (INT_RDA) Trigger Level\n
bits : 4 - 7 (4 bit)
access : read-write

RX_DIS : Receiver Disable Register\nThe receiver is disabled or not (set 1 to disable receiver)\nNote: This field is used for RS-485 Normal Multi-drop mode. It should be programmed before UA_ALT_CSR [RS-485_NMM] is programmed.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receiver Enabled

#1 : 1

Receiver Disabled

End of enumeration elements list.

RTS_TRI_LEV : NRTS Trigger Level for Auto-flow Control Use (Not Available in UART2 Channel)
bits : 16 - 19 (4 bit)
access : read-write


UA_LCR

UART Line Control Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

UA_LCR UA_LCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WLS NSB PBE EPE SPE BCB

WLS : Word Length Selection\n
bits : 0 - 1 (2 bit)
access : read-write

NSB : Number of STOP Bit
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

One STOP bit is generated in the transmitted data

#1 : 1

When select 5-bit word length, 1.5 STOP bit is generated in the transmitted data. When select 6-,7- and 8-bti word length, 2 STOP bit is generated in the transmitted data

End of enumeration elements list.

PBE : Parity Bit Enable\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

No parity bit

#1 : 1

Parity bit is generated on each outgoing character and is checked on each incoming data

End of enumeration elements list.

EPE : Even Parity Enable\nThis bit has effect only when PBE (UA_LCR[3]) is set.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Odd number of logic 1's is transmitted and checked in each word

#1 : 1

Even number of logic 1's is transmitted and checked in each word

End of enumeration elements list.

SPE : Stick Parity Enable\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stick parity Disabled

#1 : 1

If PBE (UA_LCR[3]) and EBE (UA_LCR[4]) are logic 1, the parity bit is transmitted and checked as logic 0. If PBE (UA_LCR[3]) is 1 and EBE (UA_LCR[4]) is 0 then the parity bit is transmitted and checked as 1

End of enumeration elements list.

BCB : Break Control Bit\nWhen this bit is set to logic 1, the serial data output (TX) is forced to the Spacing State (logic 0). This bit acts only on TX and has no effect on the transmitter logic.
bits : 6 - 6 (1 bit)
access : read-write



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.