\n

UART

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x20 byte (0x0)
mem_usage : registers
protection :

Registers

URDATA

RXSTS

URTHD

IER

ISR

UMODE

BRDIV

TXSTS


URDATA

UART Receive/Transmit FIFO Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

URDATA URDATA 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 _8_bitReceived_TransmitData

_8_bitReceived_TransmitData : Receive/Transmit FIFO Register Reading this register will return data from the receive data FIFO. By reading this register, the UART will return the 8-bit data received from Rx pin (LSB first). By writing to this register, transmit data will be pushed onto the transmit FIFO. The UART will send out an 8-bit data through the Tx pin (LSB first).
bits : 0 - 7 (8 bit)
access : read-write


RXSTS

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

RXSTS RXSTS 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_RST RX_FULL RX_EMPTY

RX_RST : Receiver Reset Write Only.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No operation

#1 : 1

Write 1 to this bit, all the byte in the receive FIFO/ receive buffer and RX internal state machine are cleared

End of enumeration elements list.

RX_FULL : Receiver FIFO Full(Read Only)
bits : 6 - 6 (1 bit)
access : read-only

Enumeration:

#0 : 0

Receiver FIFO is not full

#1 : 1

Receiver FIFO is full

End of enumeration elements list.

RX_EMPTY : Receiver FIFO Empty(Read Only)
bits : 7 - 7 (1 bit)
access : read-only

Enumeration:

#0 : 0

Receiver FIFO is not empty

#1 : 1

Receiver FIFO is empty

End of enumeration elements list.


URTHD

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

URTHD URTHD 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_THD RX_THD

TX_THD : Transmitter FIFO Threshold to Trigger Interrupt If the valid data count of TX FIFO buffer is less than or equal to URTHD[2:0] threshold, it will generate an interrupt event flag and interrupt if enabled.
bits : 0 - 2 (3 bit)
access : read-write

RX_THD : Receiver FIFO Threshold to Trigger Interrupt If the valid data count of RX FIFO buffer is more than or equal to URTHD[6:4] threshold, it will generate an interrupt event flag and interrupt if enabled.
bits : 4 - 6 (3 bit)
access : read-write


IER

UART Interrupt Enable Register.
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

IER 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 TX_THD_IEN RX_THD_IEN RX_OVR_IEN RX_BRK_IEN RX_PARITY_IEN RX_FRAME_IEN

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

Enumeration:

#0 : 0

Mask off TX_THD_INT

#1 : 1

Enable TX_THD_INT

End of enumeration elements list.

RX_THD_IEN : Transmit FIFO Register Empty Interrupt Enable
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Mask off RX_THD_INT

#1 : 1

Enable RX_THD_INT

End of enumeration elements list.

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

Enumeration:

#0 : 0

Mask off RX_OVR_INT

#1 : 1

Enable RX_OVR_INT

End of enumeration elements list.

RX_BRK_IEN : Modem Status Interrupt Enable
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Mask off RX_BRK_INT

#1 : 1

Enable RX_BRK_INT

End of enumeration elements list.

RX_PARITY_IEN : Receive Time Out Interrupt Enable
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Mask off RX_PARITY_INT

#1 : 1

Enable RX_PARITY_INT

End of enumeration elements list.

RX_FRAME_IEN : Buffer Error Interrupt Enable
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Mask off RX_FRAME_INT

#1 : 1

Enable RX_FRAME_INT

End of enumeration elements list.


ISR

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

ISR 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 TX_THD_IF RX_THD_IF RX_OVR_IF RX_BRK_IF RX_PARITY_IF RX_FRAME_IF TX_THD_INT RX_THD_INT RX_OVR_INT RX_BRK_INT RX_PARITY_INT RX_FRAME_INT

TX_THD_IF : Transmitter FIFO Threshold Interrupt Flag (Read Only) This bit is set when the valid data count of TX FIFO buffer is less than or equal to URTHD[2:0] threshold. It will generate an interrupt if IER.TX_THD_IEN is enabled.
bits : 0 - 0 (1 bit)
access : read-only

RX_THD_IF : Receiver FIFO Threshold Interrupt Flag (Read Only) This bit is set when the valid data count of RX FIFO buffer is more than or equal to URTHD[6:4] threshold. It will generate an interrupt if IER.RX_THD_IEN is enabled.
bits : 1 - 1 (1 bit)
access : read-only

RX_OVR_IF : Receiver Overrun Interrupt Flag (Set by H/W, Cleared by F/W Write 1 )
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receiver FIFO is not overflow

#1 : 1

Receiver FIFO is overflow. It will generate an interrupt if IER.RX_OVR_IEN is enabled

End of enumeration elements list.

RX_BRK_IF : Receiver Break Interrupt Flag (Set by H/W, Cleared by F/W Write 1 )
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

No break in

#1 : 1

The receiver character is data bit = 0 , parity bit = 0 and no stop bit (stop bit=0) . It will generate an interrupt if IER.RX_OVR_IEN is enabled

End of enumeration elements list.

RX_PARITY_IF : Receiver Parity Error Interrupt Flag (Set by H/W, Cleared by F/W Write 1 )
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

No parity error

#1 : 1

Parity error. It will generate an interrupt if IER.RX_PARITY_IEN is enabled

End of enumeration elements list.

RX_FRAME_IF : Receiver Frame Error Interrupt Flag (Set by H/W, Cleared by F/W Write 1 )
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No frame error

#1 : 1

Frame error (the receiver character has no valid stop bit). It will generate an interrupt if IER.RX_FRAME_IEN is enabled

End of enumeration elements list.

TX_THD_INT : Transmitter FIFO Threshold Interrupt Indicator to Interrupt Controller Logical AND of IER.TX_THD_IEN and TX_THD_IF
bits : 8 - 8 (1 bit)
access : read-write

RX_THD_INT : Receiver FIFO Threshold Interrupt Indicator to Interrupt Controller Logical AND of IER.RX_THD_IEN and RX_THD_IF
bits : 9 - 9 (1 bit)
access : read-write

RX_OVR_INT : Receiver Overrun Interrupt Indicator to Interrupt Controller Logical AND of IER.RX_OVR_IEN and RX_OVR_IF
bits : 10 - 10 (1 bit)
access : read-write

RX_BRK_INT : Receiver Break Interrupt Indicator to Interrupt Controller Logical AND of IER.RX_BRK_IEN and RX_BRK_IF
bits : 11 - 11 (1 bit)
access : read-write

RX_PARITY_INT : Receiver Parity Error Interrupt Indicator to Interrupt Controller Logical AND of IER.RX_PARITY_IEN and RX_PARITY_IF
bits : 12 - 12 (1 bit)
access : read-write

RX_FRAME_INT : Receiver Frame Error Interrupt Indicator to Interrupt Controller Logical AND of IER.RX_FRAME_IEN and RX_FRAME_IF
bits : 13 - 13 (1 bit)
access : read-write


UMODE

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

UMODE UMODE 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_BRK PARITY_SEL RX_EN TX_EN

TX_BRK : ForceTXD Break
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No operation

#1 : 1

Force TXD to 0

End of enumeration elements list.

PARITY_SEL : UART Mode Selection If UMODE[3:2] is 00, no parity. UMODE[1] don't care. Data format is (Start, D0, D1, D2, D3, D4, D5, D6, D7, Stop). If UMODE[3:2] is not 00, with parity bit. Data format is (Start, D0, D1, D2, D3, D4, D5, D6, D7, Parity, Stop). UMODE[3:1] define parity bit.
bits : 1 - 3 (3 bit)
access : read-write

Enumeration:

#010 : 2

ignore data whose parity is 1 if receiver (stick 0 parity if transmitter)

#011 : 3

ignore data whose parity is 0 if receiver (stick 1 parity if transmitter)

#100 : 4

even parity

#101 : 5

odd parity

#110 : 6

stick 0 parity

#111 : 7

stick 1 parity

End of enumeration elements list.

RX_EN : UART Receiver Enable
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TX_EN : UART Transmitter Enable
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.


BRDIV

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

BRDIV BRDIV 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 BR_DIV TDLY

BR_DIV : UART Baud Rate Divider Register Baud rate is determined by UART_CLK/16/( BR_DIV +1).
bits : 0 - 8 (9 bit)
access : read-write

TDLY : UART Transfer Delay Time Register Define the transfer delay time between the last Stop bit and next Start bit in transmission.
bits : 16 - 19 (4 bit)
access : read-write


TXSTS

UART Transmitter Control and Status Register
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TXSTS TXSTS 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_RST TX_END TX_FULL TX_EMPTY

TX_RST : Transmit FIFO Reset
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No operation

#1 : 1

Write 1 to this bit, all the byte in the transmit FIFO/ transmit buffer and TX internal state machine are cleared

End of enumeration elements list.

TX_END : Transmit END(Read Only)
bits : 5 - 5 (1 bit)
access : read-only

Enumeration:

#0 : 0

The last transmit data is not completed

#1 : 1

The last transmit data is completed

End of enumeration elements list.

TX_FULL : Transmit FIFO Full(Read Only)
bits : 6 - 6 (1 bit)
access : read-only

Enumeration:

#0 : 0

Transmitter FIFO is not full

#1 : 1

Transmitter FIFO is full

End of enumeration elements list.

TX_EMPTY : Transmit FIFO Empty(Read Only)
bits : 7 - 7 (1 bit)
access : read-only

Enumeration:

#0 : 0

Transmitter FIFO is not empty

#1 : 1

Transmitter FIFO is empty

End of enumeration elements list.



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.