Registers
The abbreviations given in Column Access are explained in Section Access Types for Registers .
Base Address:
UART0_REG : 0x4100C000
UART1_REG : 0x4100D000
UART2_REG : 0x4100E000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1. |
|
004h |
R/W |
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0. |
|
008h |
R |
Interrupt source indication |
|
00Ch |
R/W |
Set the general communication parameters |
|
010h |
R/W |
It is used to perform handshaking actions with the attached device. |
|
014h |
R |
Indicate the current state of communication and errors |
|
018h |
R |
It contains information about the four incoming modem control lines on the device. |
|
01Ch |
R/W |
It is used to store Tx information. |
|
020h |
R/W |
It is used to indicate the information of Tx baud rate. |
|
024h |
R/W |
The buffers of received data/transmitted data |
|
028h |
R/W |
It is used to provide DMA and IrDA related information. |
|
02Ch |
R/W |
It is used to indicate the shift value of SIR Tx pulse. |
|
030h |
R/W |
It is used to indicate the threshold of SIR Rx pulse. |
|
034h |
R/W |
It is used to monitor the baud rate of Rx pulse. |
|
03Ch |
R |
||
040h |
R/W |
It is used to monitor the Rx baud rate error and Rx baudrate factor setting. |
|
044h |
R/W |
It is used to monitor the baud rate of Rx path. |
|
048h |
R/W |
It is used to monitor the baud rate of Rx path. |
|
04Ch |
R |
It is used to monitor the clock cycle number of Rx path. |
|
050h |
R/W |
It is used to count the number of data read from RXFIFO (byte). |
|
054h |
R/W |
||
058h |
R/W |
||
05Ch |
R/W |
Added in MP version, not exist in test chip version |
|
060h |
R |
REG_UART_DLL
Name: UART divisor length register
Size: 32
Address offset: 000h
Read/write access: R/W
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
BAUD |
R/W |
0x0 |
The low 8 bits of divisor coefficient (not used) |
REG_UART_IER
Name: UART interrupt enable register
Size: 32
Address offset: 004h
Read/write access: R/W
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
ERXNDI |
R/W |
0x0 |
Rx noise detected interrupt enable |
5 |
ETOI |
R/W |
0x0 |
Rx timeout interrupt enable |
4 |
EMDI |
R/W |
0x0 |
Rx path monitor done interrupt enable |
3 |
EDSSI |
R/W |
0x0 |
Modem Status Interrupt (EDSSI) (modem status transition) enable |
2 |
ELSI |
R/W |
0x0 |
Receiver Line Status Interrupt (ELSI) (receiver line status) enable |
1 |
ETBEI |
R/W |
0x0 |
Transmitter FIFO Empty interrupt (ETBEI) (Tx FIFO empty) enable |
0 |
ERBI |
R/W |
0x0 |
Received Data Available Interrupt (ERBFI) (Rx trigger) enable |
REG_UART_IIR
Name: UART interrupt identification register
Size: 32
Address offset: 008h
Read/write access: R
Interrupt source indication
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
INT_PEND |
R |
0x1 |
|
REG_UART_LCR
Name: UART line control register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Set the general communication parameters
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DLAB |
R/W |
0x0 |
Divisor Latch Access bit, and control the accessibility of the DLL, DLM and IER registers
Note THR/RBR don’t care the value of this bit. |
6 |
BRCTL |
R/W |
0x0 |
Break Control bit
|
5 |
STKP |
R/W |
0x0 |
Stick Parity bit
|
4 |
EPS |
R/W |
0x0 |
Even Parity selection
|
3 |
PEN |
R/W |
0x0 |
Parity Enable
|
2 |
STB |
R/W |
0x0 |
Stop bits length selection
Note The receiver always checks the first stop bit only. |
1 |
RSVD |
R |
- |
Reserved |
0 |
WLS0 |
R/W |
0x1 |
Word length selection
|
REG_UART_MCR
Name: UART modem control register
Size: 32
Address offset: 010h
Read/write access: R/W
It is used to perform handshaking actions with the attached device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
AFE |
R/W |
0x0 |
Auto flow control enable |
4 |
LOOP_EN |
R/W |
0x0 |
LoopBack mode
|
3 |
OUT2 |
R/W |
0x0 |
Auxiliary output 2 Bit[3] affects the OUT2_ output in a manner identical to that described above set to 0. In loopback mode, connected to Data Carrier Detect (DCD). |
2 |
OUT1 |
R/W |
0x0 |
Auxiliary output 1 Bit3 affects the OUT1_ output in a manner identical to that described above set to 0. In loopback mode, connected to Ring Indicator (RI). |
1 |
RTS |
R/W |
0x0 |
Request to Send (RTS) signal control
This bit controls the RTS_ output. Bit[1] affects the RTS_ output in a manner identical to that described above set to 0. |
0 |
DTR |
R/W |
0x0 |
This bit controls the DTR output. |
REG_UART_LSR
Name: UART line status register
Size: 32
Address offset: 014h
Read/write access: R
Indicate the current state of communication and errors
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
RXND_INT |
R |
0 |
This bit is only set when Rx debouncer has detected noise.
|
11 |
MODEM_INT |
R |
0 |
This bit is only set when Modem status is pending.
|
10 |
MONITOR_DONE_INT |
R |
0 |
This bit is only set when Rx Path Monitor Done interrupt is enabled (EMDI is set).
|
9 |
TIMEOUT_INT |
R |
0 |
This bit is only set when Rx Timeout interrupt is enabled (ETOI is set).
|
8 |
RXFIFO_INT |
R |
0 |
This bit is only set when Received Data Available Interrupt interrupt is enabled (ERBI is set).
|
7 |
RXFIFO_ERR |
R |
0 |
Uart_rx_error, depending on the FIFO control register (FCR) bit[0]
|
6 |
TX_NOT_FULL |
R |
1 |
TXFIFO not full indicator |
5 |
TX_EMPTY |
R |
1 |
TXFIFO empty indicator |
4 |
BREAK_INT |
R |
Break Interrupt (BI) indicator
|
|
3 |
FRM_ERR |
R |
Framing Error (FE) indicator
|
|
2 |
PAR_ERR |
R |
Parity Error (PE) indicator
|
|
1 |
OVR_ERR |
R |
Overrun Error (OE) indicator
|
|
0 |
DRDY |
R |
|
REG_UART_MSR
Name: UART modem status register
Size: 32
Address offset: 018h
Read/write access: R
It contains information about the four incoming modem control lines on the device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
R_DCD |
R |
Complement of the DCD input or equals to Out2 in loopback mode. |
|
6 |
R_RI |
R |
Complement of the RI input or equals to Out1 in loopback mode. |
|
5 |
R_DSR |
R |
Complement of the DSR input or equals to DTR in loopback mode. |
|
4 |
R_CTS |
R |
Complement of the CTS input or equals to RTS in loopback mode. |
|
3 |
D_DCD |
R |
|
|
2 |
TERI |
R |
|
|
1 |
D_DSR |
R |
|
|
0 |
D_CTS |
R |
|
REG_UART_SCR
Name: UART scratch pad register
Size: 32
Address offset: 01Ch
Read/write access: R/W
It is used to store Tx information.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:27 |
RSVD |
R |
- |
Reserved |
26:16 |
XFACTOR_ADJ |
R/W |
0x0 |
One factor of baud rate calculation for Tx path |
15:13 |
RSVD |
R |
- |
Reserved |
12:8 |
DBG_SEL |
R/W |
0x0 |
Debug port selection |
7 |
SCRATCH_7 |
R/W |
0x0 |
Clear Rx break signal interrupt status |
6:0 |
SCRATCH_6_0 |
R/W |
0x30 |
|
REG_UART_STS
Name: UART STS register
Size: 32
Address offset: 020h
Read/write access: R/W
It is used to indicate the information of Tx baud rate.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23:4 |
XFACTOR |
R/W |
0x1047 |
Factor of baud rate calculation for Tx path |
3:0 |
RSVD |
R |
- |
Reserved |
REG_UART_RBR_OR_UART_THR
Name: UART receiver buffer register/UART transmitter holding register
Size: 32
Address offset: 024h
Read/write access: R/W
The buffers of received data/transmitted data
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
DATABIT |
R/W |
0x0 |
UART_RBR’s Rx data bits or UART_THR’s Tx data bit[7:0] Note Bit[0] is the least significant bit. It is the first bit serially received/transmitted. |
REG_UART_MISCR
Name: UART MISC control register
Size: 32
Address offset: 028h
Read/write access: R/W
It is used to provide DMA and IrDA related information.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RSVD |
R |
- |
Reserved |
30 |
CLR_DUMMY_FLAG |
R/W |
0x0 |
Indicate the clearing of dummy data |
29:22 |
DUMMY_DATA |
R/W |
0x0 |
Store dummy data, when UART is DMA flow controller, dummy data is padded for last RXDMA burst request. |
21 |
RXDMA_OWNER |
R/W |
0x0 |
|
20 |
IRDA_RX_INV |
R/W |
0x0 |
Irda_rx_i reverse input enable |
19 |
IRDA_TX_INV |
R/W |
0x0 |
Irda_tx_o reverse output enable |
18:11 |
RXDMA_BURSTSIZE |
R/W |
0x4 |
RXDMA burstsize, maximum value is half of rxfifo depth. |
10:3 |
TXDMA_BURSTSIZE |
R/W |
0x4 |
TXDMA burstsize, maximum value is 16. |
2 |
RXDMA_EN |
R/W |
0x0 |
RXDMA enable, valid when dma_mode in FCR is 1’b1 |
1 |
TXDMA_EN |
R/W |
0x0 |
TXDMA enable, valid when dma_mode in FCR is 1’b1 |
0 |
IRDA_ENABLE |
R/W |
0x0 |
|
REG_UART_SIR_TX_PWC0
Name: UART IRDA SIR TX pulse width control 0 register
Size: 32
Address offset: 02Ch
Read/write access: R/W
It is used to indicate the shift value of SIR Tx pulse.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
UPPERBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
30:16 |
UPPERBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s right edge |
15 |
LOWBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
14:0 |
LOWBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s left edge |
REG_UART_SIR_RX_PFC
Name: UART IRDA SIR Rx pulse filter control register
Size: 32
Address offset: 030h
Read/write access: R/W
It is used to indicate the threshold of SIR Rx pulse.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
R_SIR_RX_FILTER_THRS |
R/W |
0x0 |
The threshold of SIR Rx filter, Rx pulse is valid only when Rx pulse width is larger than the threshold. |
0 |
R_SIR_RX_FILTER_EN |
R/W |
0x0 |
IrDA SIR Rx filter enable |
REG_UART_BAUD_MON
Name: UART baud monitor register
Size: 32
Address offset: 034h
Read/write access: R/W
It is used to monitor the baud rate of Rx pulse.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
TOGGLE_MON_EN |
R/W |
0x0 |
Toggle monitor enable |
30 |
MON_DATA_VLD |
R |
Indicate valid monitoring data |
|
29:24 |
FALLING_THRESH |
R/W |
0x7 |
Indicate the threshold of Rx data rising edge |
23:12 |
MIN_LOW_PERIOD |
R |
Minimum space of consecutive logic ‘0’ of Rx data |
|
11:0 |
MIN_FALL_SPACE |
R |
Minimum space of adjacent falling edge of Rx data |
REG_UART_DBGR
Name: UART debug register
Size: 32
Address offset: 03Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DBG_UART |
R |
The output value of debug port, depending on dbg_sel value in SCR[2:0] |
REG_UART_RX_PATH_CTRL
Name: UART Rx path control register
Size: 32
Address offset: 040h
Read/write access: R/W
It is used to monitor the Rx baud rate error and Rx baudrate factor setting.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
R_RXTO_THRS |
R/W |
0x40 |
Indicate the timeout threshold of Rx path, unit in one-bit time |
15:14 |
RSVD |
R |
- |
Reserved |
13:3 |
RXBAUD_ADJ_10_0 |
R/W |
0x0 |
One factor of Baud rate calculation for Rx path, similar with xfactor_adj |
2 |
R_RST_NEWRX_N |
R/W |
0x0 |
Reset new Rx path, low active |
1:0 |
RSVD |
R |
- |
Reserved |
REG_UART_MON_BAUD_CTRL
Name: UART monitor baud rate control register
Size: 32
Address offset: 044h
Read/write access: R/W
It is used to monitor the baud rate of Rx path.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29 |
R_UPD_OSC_IN_XTAL |
R/W |
0x0 |
Update parameter r_cycnum_perbit_osc (during the update of parameter r_cycnum_perbit_xtal) enable |
28:9 |
R_CYCNUM_PERBIT_OSC |
R/W |
0x0 |
Indicate the average OSC clock cycle number of one bit, for Rx path OSC clock Note SW sets the initial value, and HW updates it depending on the monitor result. |
8:1 |
R_BIT_NUM_THRES |
R/W |
0x0 |
Indicate the bit number threshold of one monitor period, max value is 127 |
0 |
R_MON_BAUD_EN |
R/W |
0x0 |
Monitor Rx baud enable |
REG_UART_MON_BAUD_STS
Name: UART monitor baud rate status register
Size: 32
Address offset: 048h
Read/write access: R/W
It is used to monitor the baud rate of Rx path.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:29 |
RSVD |
R |
- |
Reserved |
28:21 |
RO_MON_TOTAL_BIT |
R |
0x0 |
Indicate the number of bits actually monitored |
20 |
RO_MON_RDY |
R |
0x0 |
Indicate the finish of calculation of actual cycle number per bit, it’s cleared when r_mon_baud_en is 0. |
19:0 |
R_CYCNUM_PERBIT_XTAL |
R/W |
0x0 |
Indicate the fractional xtal clock cycle number of one bit, for Rx path XTAL clock Note SW sets the initial value, and HW updates it depending on the monitor result. |
REG_UART_MON_CYC_NUM
Name: UART monitored cycle number register
Size: 32
Address offset: 04Ch
Read/write access: R
It is used to monitor the clock cycle number of Rx path.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
RO_MON_TOTAL_CYCLE |
R |
Indicate the number of clock cycle actually monitored |
REG_UART_RX_BYTE_CNT
Name: UART Rx data byte count register
Size: 32
Address offset: 050h
Read/write access: R/W
It is used to count the number of data read from RXFIFO (byte).
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
CLR_RX_BYTE_CNT |
R/W |
Write 1 to clear ro_rx_byte_cnt |
|
15:0 |
RO_RX_BYTE_CNT |
R |
Count the byte number of data read from RXFIFO |
REG_UART_FCR
Name: UART FIFO control register
Size: 32
Address offset: 054h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:6 |
RECVTRG |
R/W |
0x3 |
Define the 16-entries Receiver FIFO Interrupt trigger level (0~15 bytes)
|
5:4 |
RSVD |
R |
- |
Reserved |
3 |
DMA_MODE |
R/W |
0x0 |
Support DMA mode (co-operate with DW DDMA in the data path) |
2 |
XMIT_CLR |
R/W |
0x0 |
Clear xmitckt |
1 |
RECV_CLR |
R/W |
0x0 |
Clear receiving |
0 |
FIFO_EN |
R/W |
0x1 |
Error report of RCVR FIFO field enable, only valid when the LSR bit[7] is set to 1. |
REG_UART_ICR
Name: UART interrupt clear register
Size: 32
Address offset: 058h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4 |
RXNDICF |
R/W |
0x0 |
Rx noise Detected Interrupt Flag |
3 |
MDICF |
R/W |
0x0 |
Monitor Done Interrupt Flag |
2 |
MICF |
R/W |
0x0 |
Modem Interrupt Clear Flag |
1 |
TOICF |
R/W |
0x0 |
Timeout Interrupt Clear Flag |
0 |
RLSICF |
R/W |
0x0 |
Receiver Line Statue Interrupt Clear Flag Writing 1 to this bit clears PARITY_ERR, OVERRUN_ERR, FRAMING_ERR, BREAK_ERR_INT and RXFIFO_ERR in the USART_LSR register. |
REG_UART_RXDBCR
Name: UART RX debounce control register
Size: 32
Address offset: 05Ch
Read/write access: R/W
Added in MP version, not exist in test chip version
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
DBNC_CYC |
R/W |
0xF |
Debounce cycles in unit of sclk |
0 |
DBNC_FEN |
R/W |
0x0 |
UART Rx debounce enable |
REG_UART_DUMMY
Name: UART Dummy Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Reserved for HW |
Base Address:
UART0_REG : 0x41010000
UART1_REG : 0x41011000
UART2_REG : 0x41012000
UART3_REG : 0x41013000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1 |
|
004h |
R/W |
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0. |
|
008h |
R |
Interrupt source indication |
|
00Ch |
R/W |
Set the general communication parameters |
|
010h |
R/W |
It is used to perform handshaking actions with the attached device. |
|
014h |
R |
Indicate the current state of communication and errors |
|
018h |
R |
It contains information about the four incoming modem control lines on the device |
|
01Ch |
R/W |
It is used to store information of TX |
|
020h |
R/W |
Indicate the information of Tx baud rate |
|
024h |
R/W |
The buffers of received data / The buffers of transmitted data |
|
028h |
R/W |
Provide DMA and IrDA related information |
|
02Ch |
R/W |
Indicates the shift value of SIR Tx pulse |
|
030h |
R/W |
Indicates the threshold of SIR Rx pulse |
|
034h |
R/W |
Monitor the baud rate of Rx pulse |
|
03Ch |
R |
||
040h |
R/W |
Monitor the Rx baud rate error and Rx baudrate factor setting |
|
044h |
R/W |
Monitor the baud rate of Rx path |
|
048h |
R/W |
Monitor the baud rate of Rx path |
|
04Ch |
R |
Monitored clock cycle number of Rx path |
|
050h |
R/W |
Count the number of data read from rxfifo (byte) |
|
054h |
R/W |
FIFO control |
|
058h |
R/W |
Interrupt clear |
|
05Ch |
R/W |
REG_UART_DLL
Name: UART divisor length register
Size: 32
Address offset: 000h
Read/write access: R/W
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
BAUD |
R/W |
0x0 |
The low 8 bits of divisor coefficient (not used) |
REG_UART_IER
Name: UART interrupt enable register
Size: 32
Address offset: 004h
Read/write access: R/W
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
ERXNDI |
R/W |
0x0 |
Rx noise detected interrupt enable |
5 |
ETOI |
R/W |
0x0 |
Rx timeout interrupt enable |
4 |
EMDI |
R/W |
0x0 |
Rx path monitor done interrupt enable |
3 |
EDSSI |
R/W |
0x0 |
Modem Status Interrupt (EDSSI) (modem status transition) enable |
2 |
ELSI |
R/W |
0x0 |
Receiver Line Status Interrupt (ELSI) (receiver line status) enable |
1 |
ETBEI |
R/W |
0x0 |
Transmitter FIFO Empty interrupt (ETBEI) (Tx FIFO empty) enable |
0 |
ERBI |
R/W |
0x0 |
Received Data Available Interrupt (ERBFI) (Rx trigger) enable |
REG_UART_IIR
Name: UART interrupt identification register
Size: 32
Address offset: 008h
Read/write access: R
Interrupt source indication
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
INT_PEND |
R |
0x1 |
|
REG_UART_LCR
Name: UART line control register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Set the general communication parameters
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
DUMMY |
R/W |
0x00FF |
Dummy |
15:8 |
RSVD |
R |
- |
Reserved |
7 |
DLAB |
R/W |
0x0 |
Divisor Latch Access bit, and control the accessibility of the DLL, DLM and IER registers
Note THR/RBR don’t care the value of this bit. |
6 |
BRCTL |
R/W |
0x0 |
Break Control bit
|
5 |
STKP |
R/W |
0x0 |
Stick Parity bit
|
4 |
EPS |
R/W |
0x0 |
Even Parity selection
|
3 |
PEN |
R/W |
0x0 |
Parity Enable
|
2 |
STB |
R/W |
0x0 |
Stop bits length selection
Note The receiver always checks the first stop bit only. |
1 |
RSVD |
R |
- |
Reserved |
0 |
WLS0 |
R/W |
0x1 |
Word length selection
|
REG_UART_MCR
Name: UART modem control register
Size: 32
Address offset: 010h
Read/write access: R/W
It is used to perform handshaking actions with the attached device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
AFE |
R/W |
0x0 |
Auto flow control enable |
4 |
LOOP_EN |
R/W |
0x0 |
LoopBack mode
|
3 |
OUT2 |
R/W |
0x0 |
Auxiliary output 2 Bit[3] affects the OUT2_ output in a manner identical to that described above set to 0 In loopback mode, connected to Data Carrier Detect (DCD). |
2 |
OUT1 |
R/W |
0x0 |
Auxiliary output 1 Bit[3] affects the OUT1_ output in a manner identical to that described above set to 0 In loopback mode, connected to Ring Indicator (RI) |
1 |
RTS |
R/W |
0x0 |
Request to Send (RTS) signal control
This bit controls the RTS_ output. Bit[1] affects the RTS_ output in a manner identical to that described above set to 0. |
0 |
DTR |
R/W |
0x0 |
This bit controls the DTR output |
REG_UART_LSR
Name: UART line status register
Size: 32
Address offset: 014h
Read/write access: R
Indicate the current state of communication and errors
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
RXND_INT |
R |
0 |
This bit is only set when RX debouncer has detected noise
|
11 |
MODEM_INT |
R |
0 |
This bit is only set when Modem status pending
|
10 |
MONITOR_DONE_INT |
R |
0 |
This bit is only set when Rx Path Monitor Done interrupt is enabled(EMDI is set)
|
9 |
TIMEOUT_INT |
R |
0 |
This bit is only set when Rx Timeout interrupt is enabled(ETOI is set)
|
8 |
RXFIFO_INT |
R |
0 |
This bit is only set when Received Data Available Interrupt interrupt is enabled(ERBI is set)
|
7 |
RXFIFO_ERR |
R |
0 |
Uart_rx_error, depending on the FIFO control register (FCR) bit[0]
|
6 |
TX_NOT_FULL |
R |
1 |
TXFIFO not full indicator |
5 |
TX_EMPTY |
R |
1 |
TXFIFO empty indicator |
4 |
BREAK_INT |
R |
Break Interrupt (BI) indicator
|
|
3 |
FRM_ERR |
R |
Framing Error (FE) indicator
|
|
2 |
PAR_ERR |
R |
Parity Error (PE) indicator
|
|
1 |
OVR_ERR |
R |
Overrun Error (OE) indicator
|
|
0 |
DRDY |
R |
|
REG_UART_MSR
Name: UART modem status register
Size: 32
Address offset: 018h
Read/write access: R
It contains information about the four incoming modem control lines on the device
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
R_DCD |
R |
Complement of the DCD input or equals to Out2 in loopback mode. |
|
6 |
R_RI |
R |
Complement of the RI input or equals to Out1 in loopback mode. |
|
5 |
R_DSR |
R |
Complement of the DSR input or equals to DTR in loopback mode. |
|
4 |
R_CTS |
R |
Complement of the CTS input or equals to RTS in loopback mode. |
|
3 |
D_DCD |
R |
|
|
2 |
TERI |
R |
|
|
1 |
D_DSR |
R |
|
|
0 |
D_CTS |
R |
|
REG_UART_SCR
Name: UART scratch pad register
Size: 32
Address offset: 01Ch
Read/write access: R/W
It is used to store information of TX
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:27 |
RSVD |
R |
- |
Reserved |
26:16 |
XFACTOR_ADJ |
R/W |
0x0 |
One factor of Baud rate calculation for Tx path |
15:13 |
RSVD |
R |
- |
Reserved |
12:8 |
DBG_SEL |
R/W |
0x0 |
Debug port selection |
7 |
SCRATCH_7 |
R/W |
0x0 |
Clear Rx break signal interrupt status |
6:0 |
SCRATCH_6_0 |
R/W |
0x30 |
|
REG_UART_STS
Name: UART STS register
Size: 32
Address offset: 020h
Read/write access: R/W
Indicate the information of Tx baud rate
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23:4 |
XFACTOR |
R/W |
0x1047 |
Factor of Baud rate calculation for Tx path |
3:0 |
RSVD |
R |
- |
Reserved |
REG_UART_RBR_OR_UART_THR
Name: UART receiver buffer register/UART transmitter holding register
Size: 32
Address offset: 024h
Read/write access: R/W
The buffers of received data / The buffers of transmitted data
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
DATABIT |
R/W |
0x0 |
UART_RBR’s Rx data bits or UART_THR’s Tx data bit[7:0] Note Bit[0] is the least significant bit. It is the first bit serially received/transmitted. |
REG_UART_MISCR
Name: UART MISC control register
Size: 32
Address offset: 028h
Read/write access: R/W
Provide DMA and IrDA related information
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RSVD |
R |
- |
Reserved |
30 |
CLR_DUMMY_FLAG |
R/W |
0x0 |
Indicate the clearing of dummy data |
29:22 |
DUMMY_DATA |
R/W |
0x0 |
Store dummy data, when UART is DMA flow controller, dummy data is padded for last RXDMA burst request. |
21 |
RXDMA_OWNER |
R/W |
0x0 |
|
20 |
IRDA_RX_INV |
R/W |
0x0 |
Irda_rx_i reverse input enable |
19 |
IRDA_TX_INV |
R/W |
0x0 |
Irda_tx_o reverse output enable |
18:11 |
RXDMA_BURSTSIZE |
R/W |
0x4 |
RXDMA burstsize, maximum value is half of rxfifo depth. |
10:3 |
TXDMA_BURSTSIZE |
R/W |
0x4 |
TXDMA burstsize, maximum value is 16. |
2 |
RXDMA_EN |
R/W |
0x0 |
RXDMA enable, valid when dma_mode in FCR is 1’b1 |
1 |
TXDMA_EN |
R/W |
0x0 |
TXDMA enable, valid when dma_mode in FCR is 1’b1 |
0 |
IRDA_ENABLE |
R/W |
0x0 |
|
REG_UART_SIR_TX_PWC0
Name: UART IRDA SIR TX pulse width control 0 register
Size: 32
Address offset: 02Ch
Read/write access: R/W
Indicates the shift value of SIR Tx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
UPPERBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
30:16 |
UPPERBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR Tx pulse’s right edge |
15 |
LOWBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
14:0 |
LOWBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR Tx pulse’s left edge |
REG_UART_SIR_RX_PFC
Name: UART IRDA SIR Rx pulse filter control register
Size: 32
Address offset: 030h
Read/write access: R/W
Indicates the threshold of SIR Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
R_SIR_RX_FILTER_THRS |
R/W |
0x0 |
The threshold of SIR Rx filter, Rx pulse is valid only when Rx pulse width is larger than the threshold. |
0 |
R_SIR_RX_FILTER_EN |
R/W |
0x0 |
IrDA SIR Rx filter enable |
REG_UART_BAUD_MON
Name: UART baud monitor register
Size: 32
Address offset: 034h
Read/write access: R/W
Monitor the baud rate of Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
TOGGLE_MON_EN |
R/W |
0x0 |
Toggle monitor enable |
30 |
MON_DATA_VLD |
R |
Indicate valid monitoring data |
|
29:24 |
FALLING_THRESH |
R/W |
0x7 |
Indicate the threshold of Rx data rising edge |
23:12 |
MIN_LOW_PERIOD |
R |
Minimum space of consecutive logic ‘0’ of Rx data |
|
11:0 |
MIN_FALL_SPACE |
R |
Minimum space of adjacent falling edge of Rx data |
REG_UART_DBGR
Name: UART debug register
Size: 32
Address offset: 03Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DBG_UART |
R |
The output value of debug port, depending on dbg_sel value in SCR[2:0] |
REG_UART_RX_PATH_CTRL
Name: UART Rx path control register
Size: 32
Address offset: 040h
Read/write access: R/W
Monitor the Rx baud rate error and Rx baudrate factor setting
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
R_RXTO_THRS |
R/W |
0x40 |
Indicate the timeout threshold of Rx path, unit in one-bit time |
15:14 |
RSVD |
R |
- |
Reserved |
13:3 |
RXBAUD_ADJ_10_0 |
R/W |
0x0 |
One factor of Baud rate calculation for Rx path, similar with xfactor_adj |
2 |
R_RST_NEWRX_N |
R/W |
0x0 |
Reset new Rx path, low active |
1:0 |
RSVD |
R |
- |
Reserved |
REG_UART_MON_BAUD_CTRL
Name: UART monitor baud rate control register
Size: 32
Address offset: 044h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29 |
R_UPD_OSC_IN_XTAL |
R/W |
0x0 |
Update parameter r_cycnum_perbit_osc (during the update of parameter r_cycnum_perbit_xtal) enable |
28:9 |
R_CYCNUM_PERBIT_OSC |
R/W |
0x0 |
Indicate the average OSC clock cycle number of one bit, for Rx path OSC clk Note SW sets the initial value, HW updates it depending on the monitor result. |
8:1 |
R_BIT_NUM_THRES |
R/W |
0x0 |
Indicate the bit number threshold of one monitor period, max value is 127 |
0 |
R_MON_BAUD_EN |
R/W |
0x0 |
Monitor Rx baud enable |
REG_UART_MON_BAUD_STS
Name: UART monitor baud rate status register
Size: 32
Address offset: 048h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:29 |
RSVD |
R |
- |
Reserved |
28:21 |
RO_MON_TOTAL_BIT |
R |
0x0 |
Indicate the number of bits actually monitored |
20 |
RO_MON_RDY |
R |
0x0 |
Indicate the finish of calculation of actual cycle number per bit, it’s cleared when r_mon_baud_en is 0 |
19:0 |
R_CYCNUM_PERBIT_XTAL |
R/W |
0x0 |
Indicate the fractional xtal clock cycle number of one bit, for Rx path xtal clk Note SW sets the initial value, HW updates it depending on the monitor result. |
REG_UART_MON_CYC_NUM
Name: UART monitored cycle number register
Size: 32
Address offset: 04Ch
Read/write access: R
Monitored clock cycle number of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
RO_MON_TOTAL_CYCLE |
R |
Indicate the number of clock cycle actually monitored |
REG_UART_RX_BYTE_CNT
Name: UART Rx data byte count register
Size: 32
Address offset: 050h
Read/write access: R/W
Count the number of data read from rxfifo (byte)
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
CLR_RX_BYTE_CNT |
R/W |
Write 1 to clear ro_rx_byte_cnt |
|
15:0 |
RO_RX_BYTE_CNT |
R |
Count the byte number of data read from RXFIFO |
REG_UART_FCR
Name: UART FIFO control register
Size: 32
Address offset: 054h
Read/write access: R/W
FIFO control
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:6 |
RECVTRG |
R/W |
0x3 |
Define the 16-entries Receiver FIFO Interrupt trigger level (0~15 bytes)
|
5:4 |
RSVD |
R |
- |
Reserved |
3 |
DMA_MODE |
R/W |
0x0 |
Support dma mode (cooperating with DW DDMA in the data path) |
2 |
XMIT_CLR |
R/W |
0x0 |
Clear xmitckt |
1 |
RECV_CLR |
R/W |
0x0 |
Clear receiving |
0 |
FIFO_EN |
R/W |
0x1 |
Error report of RCVR FIFO field enable, only valid when the LSR bit[7] is set to 1. |
REG_UART_ICR
Name: UART interrupt clear register
Size: 32
Address offset: 058h
Read/write access: R/W
Interrupt clear
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4 |
RXNDICF |
R/W |
0x0 |
Rx noise Detected Interrupt Flag |
3 |
MDICF |
R/W |
0x0 |
Monitor Done Interrupt Flag |
2 |
MICF |
R/W |
0x0 |
Modem Interrupt Clear Flag |
1 |
TOICF |
R/W |
0x0 |
Timeout Interrupt Clear Flag |
0 |
RLSICF |
R/W |
0x0 |
Receiver Line Statue Interrupt Clear Flag Writing 1 to this bit clears PARITY_ERR, OVERRUN_ERR, FRAMING_ERR, BREAK_ERR_INT and RXFIFO_ERR in the USART_LSR register. |
REG_UART_RXDBCR
Name: UART RX debounce control register
Size: 32
Address offset: 05Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
DBNC_CYC |
R/W |
0xF |
Debounce cycles in unit of sclk |
0 |
DBNC_FEN |
R/W |
0x0 |
UART RX debounce enable |
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
Base Address:
UART0_REG : 0x41004000
UART1_REG : 0x41005000
UART2_REG : 0x41006000
UART3_REG : 0x41007000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1 |
|
004h |
R/W |
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0. |
|
008h |
R |
Interrupt source indication |
|
00Ch |
R/W |
Set the general communication parameters |
|
010h |
R/W |
It is used to perform handshaking actions with the attached device. |
|
014h |
R |
Indicate the current state of communication and errors |
|
018h |
R |
It contains information about the four incoming modem control lines on the device |
|
01Ch |
R/W |
It is used to store information of TX |
|
020h |
R/W |
Indicate the information of TX baud rate |
|
024h |
R/W |
The buffers of received data / The buffers of transmitted data |
|
028h |
R/W |
Provide DMA and IrDA related information |
|
02Ch |
R/W |
Indicates the shift value of SIR TX pulse |
|
030h |
R/W |
Indicates the threshold of SIR Rx pulse |
|
034h |
R/W |
Monitor the baud rate of Rx pulse |
|
03Ch |
R |
Debug |
|
040h |
R/W |
Monitor the Rx baud rate error and Rx baudrate factor setting |
|
044h |
R/W |
Monitor the baud rate of Rx path |
|
048h |
R/W |
Monitor the baud rate of Rx path |
|
04Ch |
R |
Monitored clock cycle number of Rx path |
|
050h |
R/W |
Count the number of data read from rxfifo (byte) |
|
054h |
R/W |
FIFO control |
|
058h |
R/W |
Interrupt clear |
|
05Ch |
R/W |
Added in MP version, not existed in Test chip version |
REG_UART_DLL
Name: UART divisor length register
Size: 32
Address offset: 000h
Read/write access: R/W
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
BAUD |
R/W |
0x0 |
The low 8 bits of divisor coefficient (not used) |
REG_UART_IER
Name: UART interrupt enable register
Size: 32
Address offset: 004h
Read/write access: R/W
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
ERXNDI |
R/W |
0x0 |
Rx noise detected interrupt enable |
5 |
ETOI |
R/W |
0x0 |
Rx timeout interrupt enable |
4 |
EMDI |
R/W |
0x0 |
Rx path monitor done interrupt enable |
3 |
EDSSI |
R/W |
0x0 |
Modem Status Interrupt (EDSSI) (modem status transition) enable |
2 |
ELSI |
R/W |
0x0 |
Receiver Line Status Interrupt (ELSI) (receiver line status) enable |
1 |
ETBEI |
R/W |
0x0 |
Transmitter FIFO Empty interrupt (ETBEI) (tx fifo empty) enable |
0 |
ERBI |
R/W |
0x0 |
Received Data Available Interrupt (ERBFI) (rx trigger) enable |
REG_UART_IIR
Name: UART interrupt identification register
Size: 32
Address offset: 008h
Read/write access: R
Interrupt source indication
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
INT_PEND |
R |
0x1 |
|
REG_UART_LCR
Name: UART line control register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Set the general communication parameters
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DLAB |
R/W |
0x0 |
Divisor Latch Access bit, and control the accessibility of the DLL, DLM and IER registers
Note THR/RBR don’t care the value of dlab bit. |
6 |
BRCTL |
R/W |
0x0 |
Break Control bit
|
5 |
STKP |
R/W |
0x0 |
Stick Parity bit
|
4 |
EPS |
R/W |
0x0 |
Even Parity selection
|
3 |
PEN |
R/W |
0x0 |
Parity Enable
|
2 |
STB |
R/W |
0x0 |
Stop bits length selection
Note The receiver always checks the first stop bit only. |
1 |
RSVD |
R |
- |
Reserved |
0 |
WLS0 |
R/W |
0x1 |
Word length selection
|
REG_UART_MCR
Name: UART modem control register
Size: 32
Address offset: 010h
Read/write access: R/W
It is used to perform handshaking actions with the attached device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
AFE |
R/W |
0x0 |
Auto flow control enable |
4 |
LOOP_EN |
R/W |
0x0 |
LoopBack mode
|
3 |
OUT2 |
R/W |
0x0 |
Auxiliary output 2 Bit[3] affects the OUT2_ output in a manner identical to that described above set to 0 In loopback mode, connected to Data Carrier Detect (DCD). |
2 |
OUT1 |
R/W |
0x0 |
Auxiliary output 1 Bit3 affects the OUT1_ output in a manner identical to that described above set to 0 In loopback mode, connected to Ring Indicator (RI) |
1 |
RTS |
R/W |
0x0 |
Request to Send (RTS) signal control
This bit controls the RTS_ output. Bit[1] affects the RTS_ output in a manner identical to that described above set to 0. |
0 |
DTR |
R/W |
0x0 |
This bit controls the DTR output |
REG_UART_LSR
Name: UART line status register
Size: 32
Address offset: 014h
Read/write access: R
Indicate the current state of communication and errors
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
RXND_INT |
R |
0 |
This bit is only set when RX debouncer has detected noise
|
11 |
MODEM_INT |
R |
0 |
This bit is only set when Modem status pending
|
10 |
MONITOR_DONE_INT |
R |
0 |
This bit is only set when Rx Path Monitor Done interrupt is enabled(EMDI is set)
|
9 |
TIMEOUT_INT |
R |
0 |
This bit is only set when Rx Timeout interrupt is enabled(ETOI is set)
|
8 |
RXFIFO_INT |
R |
0 |
This bit is only set when Received Data Available Interrupt interrupt is enabled(ERBI is set)
|
7 |
RXFIFO_ERR |
R |
0 |
Uart_rx_error, depending on the FIFO control register (FCR) bit[0]
|
6 |
TX_NOT_FULL |
R |
1 |
TXFIFO not full indicator |
5 |
TX_EMPTY |
R |
1 |
TXFIFO empty indicator |
4 |
BREAK_INT |
R |
Break Interrupt (BI) indicator
|
|
3 |
FRM_ERR |
R |
Framing Error (FE) indicator
|
|
2 |
PAR_ERR |
R |
Parity Error (PE) indicator
|
|
1 |
OVR_ERR |
R |
Overrun Error (OE) indicator
|
|
0 |
DRDY |
R |
|
REG_UART_MSR
Name: UART modem status register
Size: 32
Address offset: 018h
Read/write access: R
It contains information about the four incoming modem control lines on the device
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
R_DCD |
R |
Complement of the DCD input or equals to Out2 in loopback mode. |
|
6 |
R_RI |
R |
Complement of the RI input or equals to Out1 in loopback mode. |
|
5 |
R_DSR |
R |
Complement of the DSR input or equals to DTR in loopback mode. |
|
4 |
R_CTS |
R |
Complement of the CTS input or equals to RTS in loopback mode. |
|
3 |
D_DCD |
R |
|
|
2 |
TERI |
R |
|
|
1 |
D_DSR |
R |
|
|
0 |
D_CTS |
R |
|
REG_UART_SCR
Name: UART scratch pad register
Size: 32
Address offset: 01Ch
Read/write access: R/W
It is used to store information of TX
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:27 |
RSVD |
R |
- |
Reserved |
26:16 |
XFACTOR_ADJ |
R/W |
0x0 |
One factor of Baud rate calculation for TX path |
15:13 |
RSVD |
R |
- |
Reserved |
12:8 |
DBG_SEL |
R/W |
0x0 |
Debug port selection |
7 |
SCRATCH_7 |
R/W |
0x0 |
Clear rx break signal interrupt status |
6:0 |
SCRATCH_6_0 |
R/W |
0x30 |
|
REG_UART_STS
Name: UART STS register
Size: 32
Address offset: 020h
Read/write access: R/W
Indicate the information of TX baud rate
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23:4 |
XFACTOR |
R/W |
0x1047 |
Factor of Baud rate calculation for Tx path |
3:0 |
RSVD |
R |
- |
Reserved |
REG_UART_RBR_OR_UART_THR
Name: UART receiver buffer register/UART transmitter holding register
Size: 32
Address offset: 024h
Read/write access: R/W
The buffers of received data / The buffers of transmitted data
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
DATABIT |
R/W |
0x0 |
UART_RBR’s Rx data bits or UART_THR’s Tx data bit[7:0] Note Bit[0] is the least significant bit. It is the first bit serially received/transmitted. |
REG_UART_MISCR
Name: UART MISC control register
Size: 32
Address offset: 028h
Read/write access: R/W
Provide DMA and IrDA related information
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RSVD |
R |
- |
Reserved |
30 |
CLR_DUMMY_FLAG |
R/W |
0x0 |
Indicate the clearing of dummy data |
29:22 |
DUMMY_DATA |
R/W |
0x0 |
Store dummy data, when UART is DMA flow controller, dummy data is padded for last RXDMA burst request. |
21 |
RXDMA_OWNER |
R/W |
0x0 |
|
20 |
IRDA_RX_INV |
R/W |
0x0 |
Irda_rx_i reverse input enable |
19 |
IRDA_TX_INV |
R/W |
0x0 |
Irda_tx_o reverse output enable |
18:11 |
RXDMA_BURSTSIZE |
R/W |
0x4 |
RXDMA burstsize, maximum value is half of rxfifo depth. |
10:3 |
TXDMA_BURSTSIZE |
R/W |
0x4 |
TXDMA burstsize, maximum value is 16. |
2 |
RXDMA_EN |
R/W |
0x0 |
RXDMA enable, valid when dma_mode in FCR is 1’b1 |
1 |
TXDMA_EN |
R/W |
0x0 |
TXDMA enable, valid when dma_mode in FCR is 1’b1 |
0 |
IRDA_ENABLE |
R/W |
0x0 |
|
REG_UART_SIR_TX_PWC0
Name: UART IRDA SIR TX pulse width control 0 register
Size: 32
Address offset: 02Ch
Read/write access: R/W
Indicates the shift value of SIR TX pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
UPPERBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
30:16 |
UPPERBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s right edge |
15 |
LOWBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
14:0 |
LOWBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s left edge |
REG_UART_SIR_RX_PFC
Name: UART IRDA SIR Rx pulse filter control register
Size: 32
Address offset: 030h
Read/write access: R/W
Indicates the threshold of SIR Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
R_SIR_RX_FILTER_THRS |
R/W |
0x0 |
The threshold of SIR Rx filter, Rx pulse is valid only when Rx pulse width is larger than the threshold. |
0 |
R_SIR_RX_FILTER_EN |
R/W |
0x0 |
IrDA SIR Rx filter enable |
REG_UART_BAUD_MON
Name: UART baud monitor register
Size: 32
Address offset: 034h
Read/write access: R/W
Monitor the baud rate of Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
TOGGLE_MON_EN |
R/W |
0x0 |
Toggle monitor enable |
30 |
MON_DATA_VLD |
R |
Indicate valid monitoring data |
|
29:24 |
FALLING_THRESH |
R/W |
0x7 |
Indicate the threshold of Rx data rising edge |
23:12 |
MIN_LOW_PERIOD |
R |
Minimum space of consecutive logic ‘0’ of Rx data |
|
11:0 |
MIN_FALL_SPACE |
R |
Minimum space of adjacent falling edge of Rx data |
REG_UART_DBGR
Name: UART debug register
Size: 32
Address offset: 03Ch
Read/write access: R
Debug
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DBG_UART |
R |
The output value of debug port, depending on dbg_sel value in SCR[2:0] |
REG_UART_RX_PATH_CTRL
Name: UART Rx path control register
Size: 32
Address offset: 040h
Read/write access: R/W
Monitor the Rx baud rate error and Rx baudrate factor setting
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
R_RXTO_THRS |
R/W |
0x40 |
Indicate the timeout threshold of Rx path, unit in one-bit time |
15:14 |
RSVD |
R |
- |
Reserved |
13:3 |
RXBAUD_ADJ_10_0 |
R/W |
0x0 |
One factor of Baud rate calculation for Rx path, similar with xfactor_adj |
2 |
R_RST_NEWRX_N |
R/W |
0x0 |
Reset new Rx path, low active |
1:0 |
RSVD |
R |
- |
Reserved |
REG_UART_MON_BAUD_CTRL
Name: UART monitor baud rate control register
Size: 32
Address offset: 044h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29 |
R_UPD_OSC_IN_XTAL |
R/W |
0x0 |
Update parameter r_cycnum_perbit_osc (during the update of parameter r_cycnum_perbit_xtal) enable |
28:9 |
R_CYCNUM_PERBIT_OSC |
R/W |
0x0 |
Indicate the average OSC clock cycle number of one bit, for Rx path OSC clk Note SW sets the initial value, HW updates it depending on the monitor result. |
8:1 |
R_BIT_NUM_THRES |
R/W |
0x0 |
Indicate the bit number threshold of one monitor period, max value is 127 |
0 |
R_MON_BAUD_EN |
R/W |
0x0 |
Monitor Rx baud enable |
REG_UART_MON_BAUD_STS
Name: UART monitor baud rate status register
Size: 32
Address offset: 048h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:29 |
RSVD |
R |
- |
Reserved |
28:21 |
RO_MON_TOTAL_BIT |
R |
0x0 |
Indicate the number of bits actually monitored |
20 |
RO_MON_RDY |
R |
0x0 |
Indicate the finish of calculation of actual cycle number per bit, it’s cleared when r_mon_baud_en is 0 |
19:0 |
R_CYCNUM_PERBIT_XTAL |
R/W |
0x0 |
Indicate the fractional xtal clock cycle number of one bit, for Rx path xtal clk Note SW sets the initial value, HW updates it depending on the monitor result. |
REG_UART_MON_CYC_NUM
Name: UART monitored cycle number register
Size: 32
Address offset: 04Ch
Read/write access: R
Monitored clock cycle number of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
RO_MON_TOTAL_CYCLE |
R |
Indicate the number of clock cycle actually monitored |
REG_UART_RX_BYTE_CNT
Name: UART Rx data byte count register
Size: 32
Address offset: 050h
Read/write access: R/W
Count the number of data read from rxfifo (byte)
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
CLR_RX_BYTE_CNT |
R/W |
Write 1 to clear ro_rx_byte_cnt |
|
15:0 |
RO_RX_BYTE_CNT |
R |
Count the byte number of data read from rxfifo |
REG_UART_FCR
Name: UART FIFO control register
Size: 32
Address offset: 054h
Read/write access: R/W
FIFO control
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:6 |
RECVTRG |
R/W |
0x3 |
Define the 16-entries Receiver FIFO Interrupt trigger level (0~15 bytes)
|
5:4 |
RSVD |
R |
- |
Reserved |
3 |
DMA_MODE |
R/W |
0x0 |
Support dma mode (cooperate with DW DDMA in the data path) |
2 |
XMIT_CLR |
R/W |
0x0 |
Clear xmitckt |
1 |
RECV_CLR |
R/W |
0x0 |
Clear receiving |
0 |
FIFO_EN |
R/W |
0x1 |
Error report of RCVR FIFO field enable, only valid when the LSR bit[7] is set to 1. |
REG_UART_ICR
Name: UART interrupt clear register
Size: 32
Address offset: 058h
Read/write access: R/W
Interrupt clear
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4 |
RXNDICF |
R/W |
0x0 |
Rx noise Detected Interrupt Flag |
3 |
MDICF |
R/W |
0x0 |
Monitor Done Interrupt Flag |
2 |
MICF |
R/W |
0x0 |
Modem Interrupt Clear Flag |
1 |
TOICF |
R/W |
0x0 |
Timeout Interrupt Clear Flag |
0 |
RLSICF |
R/W |
0x0 |
Receiver Line Statue Interrupt Clear Flag Writing 1 to this bit clears PARITY_ERR, OVERRUN_ERR, FRAMING_ERR, BREAK_ERR_INT and RXFIFO_ERR in the USART_LSR register. |
REG_UART_RXDBCR
Name: UART RX debounce control register
Size: 32
Address offset: 05Ch
Read/write access: R/W
Added in MP version, not existed in Test chip version
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
DBNC_CYC |
R/W |
0xF |
Debounce cycles in unit of sclk |
0 |
DBNC_FEN |
R/W |
0x0 |
UART RX debounce enable |
Base Address:
UART0_REG : 0x4080C000
UART1_REG : 0x4080D000
UART2_REG : 0x4080E000
UART3_REG : 0x4080F000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1 |
|
004h |
R/W |
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0. |
|
008h |
R |
Interrupt source indication |
|
00Ch |
R/W |
Set the general communication parameters |
|
010h |
R/W |
It is used to perform handshaking actions with the attached device. |
|
014h |
R |
Indicate the current state of communication and errors |
|
018h |
R |
It contains information about the four incoming modem control lines on the device |
|
01Ch |
R/W |
It is used to store information of TX |
|
020h |
R/W |
Indicate the information of TX baud rate |
|
024h |
R/W |
The buffers of received data / The buffers of transmitted data |
|
028h |
R/W |
Provide DMA and IrDA related information |
|
02Ch |
R/W |
Indicates the shift value of SIR TX pulse |
|
030h |
R/W |
Indicates the threshold of SIR Rx pulse |
|
034h |
R/W |
Monitor the baud rate of Rx pulse |
|
03Ch |
R |
Debug |
|
040h |
R/W |
Monitor the Rx baud rate error and Rx baudrate factor setting |
|
044h |
R/W |
Monitor the baud rate of Rx path |
|
048h |
R/W |
Monitor the baud rate of Rx path |
|
04Ch |
R |
Monitored clock cycle number of Rx path |
|
050h |
R/W |
Count the number of data read from rxfifo (byte) |
|
054h |
R/W |
FIFO control |
|
058h |
R/W |
Interrupt clear |
|
05Ch |
R/W |
Added in MP version, not existed in Test chip version |
|
060h |
R/W |
||
064h |
R |
REG_UART_DLL
Name: UART divisor length register
Size: 32
Address offset: 000h
Read/write access: R/W
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
BAUD |
R/W |
0x0 |
The low 8 bits of divisor coefficient (not used) |
REG_UART_IER
Name: UART interrupt enable register
Size: 32
Address offset: 004h
Read/write access: R/W
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
ERETI |
R/W |
0x0 |
RXFIFO_EMPTY_TIMEOUT interrupt enable |
6 |
ERXNDI |
R/W |
0x0 |
Rx noise detected interrupt enable |
5 |
ETOI |
R/W |
0x0 |
Rx timeout interrupt enable |
4 |
EMDI |
R/W |
0x0 |
Rx path monitor done interrupt enable |
3 |
EDSSI |
R/W |
0x0 |
Modem Status Interrupt (EDSSI) (modem status transition) enable |
2 |
ELSI |
R/W |
0x0 |
Receiver Line Status Interrupt (ELSI) (receiver line status) enable |
1 |
ETBEI |
R/W |
0x0 |
Transmitter FIFO Empty interrupt (ETBEI) (Tx FIFO empty) enable |
0 |
ERBI |
R/W |
0x0 |
Received Data Available Interrupt (ERBFI) (Rx trigger) enable |
REG_UART_IIR
Name: UART interrupt identification register
Size: 32
Address offset: 008h
Read/write access: R
Interrupt source indication
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
INT_PEND |
R |
0x1 |
|
REG_UART_LCR
Name: UART line control register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Set the general communication parameters
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DLAB |
R/W |
0x0 |
Divisor Latch Access bit, and control the accessibility of the DLL, DLM and IER registers
Note THR/RBR don’t care the value of dlab bit. |
6 |
BRCTL |
R/W |
0x0 |
Break Control bit
|
5 |
STKP |
R/W |
0x0 |
Stick Parity bit
|
4 |
EPS |
R/W |
0x0 |
Even Parity selection
|
3 |
PEN |
R/W |
0x0 |
Parity Enable
|
2 |
STB |
R/W |
0x0 |
Stop bits length selection
Note The receiver always checks the first stop bit only. |
1 |
RSVD |
R |
- |
Reserved |
0 |
WLS0 |
R/W |
0x1 |
Word length selection
|
REG_UART_MCR
Name: UART modem control register
Size: 32
Address offset: 010h
Read/write access: R/W
It is used to perform handshaking actions with the attached device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
AFE |
R/W |
0x0 |
Auto flow control enable |
4 |
LOOP_EN |
R/W |
0x0 |
LoopBack mode
|
3 |
OUT2 |
R/W |
0x0 |
Auxiliary output 2 Bit[3] affects the OUT2_ output in a manner identical to that described above set to 0 In loopback mode, connected to Data Carrier Detect (DCD). |
2 |
OUT1 |
R/W |
0x0 |
Auxiliary output 1 Bit3 affects the OUT1_ output in a manner identical to that described above set to 0 In loopback mode, connected to Ring Indicator (RI) |
1 |
RTS |
R/W |
0x0 |
Request to Send (RTS) signal control
This bit controls the RTS_ output. Bit[1] affects the RTS_ output in a manner identical to that described above set to 0. |
0 |
DTR |
R/W |
0x0 |
This bit controls the DTR output |
REG_UART_LSR
Name: UART line status register
Size: 32
Address offset: 014h
Read/write access: R
Indicate the current state of communication and errors
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
RE_TIMEOUT_INT |
R |
0 |
This bit is only set when rxfifo empty timeout interrupt is enabled(ERETI is set)
|
12 |
RXND_INT |
R |
0 |
This bit is only set when RX debouncer has detected noise
|
11 |
MODEM_INT |
R |
0 |
This bit is only set when Modem status pending
|
10 |
MONITOR_DONE_INT |
R |
0 |
This bit is only set when Rx Path Monitor Done interrupt is enabled(EMDI is set)
|
9 |
TIMEOUT_INT |
R |
0 |
This bit is only set when Rx Timeout interrupt is enabled(ETOI is set)
|
8 |
RXFIFO_INT |
R |
0 |
This bit is only set when Received Data Available Interrupt interrupt is enabled(ERBI is set)
|
7 |
RXFIFO_ERR |
R |
0 |
Uart_rx_error, depending on the FIFO control register (FCR) bit[0]
|
6 |
TX_NOT_FULL |
R |
1 |
TXFIFO not full indicator |
5 |
TX_EMPTY |
R |
1 |
TXFIFO empty indicator |
4 |
BREAK_INT |
R |
Break Interrupt (BI) indicator
|
|
3 |
FRM_ERR |
R |
Framing Error (FE) indicator
|
|
2 |
PAR_ERR |
R |
Parity Error (PE) indicator
|
|
1 |
OVR_ERR |
R |
Overrun Error (OE) indicator
|
|
0 |
DRDY |
R |
|
REG_UART_MSR
Name: UART modem status register
Size: 32
Address offset: 018h
Read/write access: R
It contains information about the four incoming modem control lines on the device
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
R_DCD |
R |
Complement of the DCD input or equals to Out2 in loopback mode. |
|
6 |
R_RI |
R |
Complement of the RI input or equals to Out1 in loopback mode. |
|
5 |
R_DSR |
R |
Complement of the DSR input or equals to DTR in loopback mode. |
|
4 |
R_CTS |
R |
Complement of the CTS input or equals to RTS in loopback mode. |
|
3 |
D_DCD |
R |
|
|
2 |
TERI |
R |
|
|
1 |
D_DSR |
R |
|
|
0 |
D_CTS |
R |
|
REG_UART_SCR
Name: UART scratch pad register
Size: 32
Address offset: 01Ch
Read/write access: R/W
It is used to store information of TX
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:27 |
RSVD |
R |
- |
Reserved |
26:16 |
XFACTOR_ADJ |
R/W |
0x0 |
One factor of Baud rate calculation for TX path |
15:13 |
RSVD |
R |
- |
Reserved |
12:8 |
DBG_SEL |
R/W |
0x0 |
Debug port selection |
7 |
SCRATCH_7 |
R/W |
0x0 |
Clear rx break signal interrupt status |
6:0 |
SCRATCH_6_0 |
R/W |
0x30 |
|
REG_UART_STS
Name: UART STS register
Size: 32
Address offset: 020h
Read/write access: R/W
Indicate the information of TX baud rate
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23:4 |
XFACTOR |
R/W |
0x1047 |
Factor of Baud rate calculation for Tx path |
3:0 |
RSVD |
R |
- |
Reserved |
REG_UART_RBR_OR_UART_THR
Name: UART receiver buffer register/UART transmitter holding register
Size: 32
Address offset: 024h
Read/write access: R/W
The buffers of received data / The buffers of transmitted data
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
DATABIT |
R/W |
0x0 |
UART_RBR’s Rx data bits or UART_THR’s Tx data bit[7:0] Note Bit[0] is the least significant bit. It is the first bit serially received/transmitted. |
REG_UART_MISCR
Name: UART MISC control register
Size: 32
Address offset: 028h
Read/write access: R/W
Provide DMA and IrDA related information
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RSVD |
R |
- |
Reserved |
30 |
CLR_DUMMY_FLAG |
R/W |
0x0 |
Indicate the clearing of dummy data |
29:22 |
DUMMY_DATA |
R/W |
0x0 |
Store dummy data, when UART is DMA flow controller, dummy data is padded for last RXDMA burst request. |
21 |
RXDMA_OWNER |
R/W |
0x0 |
|
20 |
IRDA_RX_INV |
R/W |
0x0 |
Irda_rx_i reverse input enable |
19 |
IRDA_TX_INV |
R/W |
0x0 |
Irda_tx_o reverse output enable |
18:11 |
RXDMA_BURSTSIZE |
R/W |
0x4 |
RXDMA burstsize, maximum value is half of rxfifo depth. |
10:3 |
TXDMA_BURSTSIZE |
R/W |
0x4 |
TXDMA burstsize, maximum value is 16. |
2 |
RXDMA_EN |
R/W |
0x0 |
RXDMA enable, valid when dma_mode in FCR is 1’b1 |
1 |
TXDMA_EN |
R/W |
0x0 |
TXDMA enable, valid when dma_mode in FCR is 1’b1 |
0 |
IRDA_ENABLE |
R/W |
0x0 |
|
REG_UART_SIR_TX_PWC0
Name: UART IRDA SIR TX pulse width control 0 register
Size: 32
Address offset: 02Ch
Read/write access: R/W
Indicates the shift value of SIR TX pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
UPPERBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
30:16 |
UPPERBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s right edge |
15 |
LOWBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
14:0 |
LOWBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s left edge |
REG_UART_SIR_RX_PFC
Name: UART IRDA SIR Rx pulse filter control register
Size: 32
Address offset: 030h
Read/write access: R/W
Indicates the threshold of SIR Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
R_SIR_RX_FILTER_THRS |
R/W |
0x0 |
The threshold of SIR Rx filter, Rx pulse is valid only when Rx pulse width is larger than the threshold. |
0 |
R_SIR_RX_FILTER_EN |
R/W |
0x0 |
IrDA SIR Rx filter enable |
REG_UART_BAUD_MON
Name: UART baud monitor register
Size: 32
Address offset: 034h
Read/write access: R/W
Monitor the baud rate of Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
TOGGLE_MON_EN |
R/W |
0x0 |
Toggle monitor enable |
30 |
MON_DATA_VLD |
R |
Indicate valid monitoring data |
|
29:24 |
FALLING_THRESH |
R/W |
0x7 |
Indicate the threshold of Rx data rising edge |
23:12 |
MIN_LOW_PERIOD |
R |
Minimum space of consecutive logic ‘0’ of Rx data |
|
11:0 |
MIN_FALL_SPACE |
R |
Minimum space of adjacent falling edge of Rx data |
REG_UART_DBGR
Name: UART debug register
Size: 32
Address offset: 03Ch
Read/write access: R
Debug
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DBG_UART |
R |
The output value of debug port, depending on dbg_sel value in SCR[2:0] |
REG_UART_RX_PATH_CTRL
Name: UART Rx path control register
Size: 32
Address offset: 040h
Read/write access: R/W
Monitor the Rx baud rate error and Rx baudrate factor setting
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
R_RXTO_THRS |
R/W |
0x40 |
Indicate the timeout threshold of Rx path, unit in one-bit time |
15:14 |
RSVD |
R |
- |
Reserved |
13:3 |
RXBAUD_ADJ_10_0 |
R/W |
0x0 |
One factor of Baud rate calculation for Rx path, similar with xfactor_adj |
2 |
R_RST_NEWRX_N |
R/W |
0x0 |
Reset new Rx path, low active |
1:0 |
RSVD |
R |
- |
Reserved |
REG_UART_MON_BAUD_CTRL
Name: UART monitor baud rate control register
Size: 32
Address offset: 044h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29 |
R_UPD_OSC_IN_XTAL |
R/W |
0x0 |
Update parameter r_cycnum_perbit_osc (during the update of parameter r_cycnum_perbit_xtal) enable |
28:9 |
R_CYCNUM_PERBIT_OSC |
R/W |
0x0 |
Indicate the average OSC clock cycle number of one bit, for Rx path OSC clk Note SW sets the initial value, HW updates it depending on the monitor result. |
8:1 |
R_BIT_NUM_THRES |
R/W |
0x0 |
Indicate the bit number threshold of one monitor period, max value is 127 |
0 |
R_MON_BAUD_EN |
R/W |
0x0 |
Monitor Rx baud enable |
REG_UART_MON_BAUD_STS
Name: UART monitor baud rate status register
Size: 32
Address offset: 048h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:29 |
RSVD |
R |
- |
Reserved |
28:21 |
RO_MON_TOTAL_BIT |
R |
0x0 |
Indicate the number of bits actually monitored |
20 |
RO_MON_RDY |
R |
0x0 |
Indicate the finish of calculation of actual cycle number per bit, it’s cleared when r_mon_baud_en is 0 |
19:0 |
R_CYCNUM_PERBIT_XTAL |
R/W |
0x0 |
Indicate the fractional xtal clock cycle number of one bit, for Rx path xtal clk Note SW sets the initial value, HW updates it depending on the monitor result. |
REG_UART_MON_CYC_NUM
Name: UART monitored cycle number register
Size: 32
Address offset: 04Ch
Read/write access: R
Monitored clock cycle number of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
RO_MON_TOTAL_CYCLE |
R |
Indicate the number of clock cycle actually monitored |
REG_UART_RX_BYTE_CNT
Name: UART Rx data byte count register
Size: 32
Address offset: 050h
Read/write access: R/W
Count the number of data read from rxfifo (byte)
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
CLR_RX_BYTE_CNT |
R/W |
Write 1 to clear ro_rx_byte_cnt |
|
15:0 |
RO_RX_BYTE_CNT |
R |
Count the byte number of data read from rxfifo |
REG_UART_FCR
Name: UART FIFO control register
Size: 32
Address offset: 054h
Read/write access: R/W
FIFO control
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:6 |
RECVTRG |
R/W |
0x3 |
Define the 16-entries Receiver FIFO Interrupt trigger level (0~15 bytes)
|
5:4 |
RSVD |
R |
- |
Reserved |
3 |
DMA_MODE |
R/W |
0x0 |
Support dma mode (cooperate with DW DDMA in the data path) |
2 |
XMIT_CLR |
R/W |
0x0 |
Clear xmitckt |
1 |
RECV_CLR |
R/W |
0x0 |
Clear receiving |
0 |
FIFO_EN |
R/W |
0x1 |
Error report of RCVR FIFO field enable, only valid when the LSR bit[7] is set to 1. |
REG_UART_ICR
Name: UART interrupt clear register
Size: 32
Address offset: 058h
Read/write access: R/W
Interrupt clear
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
RETICF |
R/W |
0x0 |
Rxfifo empty timeout Interrupt Clear Flag |
4 |
RXNDICF |
R/W |
0x0 |
Rx noise Detected Interrupt Flag |
3 |
MDICF |
R/W |
0x0 |
Monitor Done Interrupt Flag |
2 |
MICF |
R/W |
0x0 |
Modem Interrupt Clear Flag |
1 |
TOICF |
R/W |
0x0 |
Timeout Interrupt Clear Flag |
0 |
RLSICF |
R/W |
0x0 |
Receiver Line Statue Interrupt Clear Flag Writing 1 to this bit clears PARITY_ERR, OVERRUN_ERR, FRAMING_ERR, BREAK_ERR_INT and RXFIFO_ERR in the USART_LSR register. |
REG_UART_RXDBCR
Name: UART RX debounce control register
Size: 32
Address offset: 05Ch
Read/write access: R/W
Added in MP version, not existed in Test chip version
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
DBNC_CYC |
R/W |
0xF |
Debounce cycles in unit of sclk |
0 |
DBNC_FEN |
R/W |
0x0 |
UART RX debounce enable |
REG_UART_TH_RETI
Name: UART rxfifo empty interrupt timeout threshold
Size: 32
Address offset: 060h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
TH_RETI |
R/W |
0x0 |
Set rxfifo empty timeout interrupt, when rxfifo is empty for longer than TH_RETI. Timeout counter works in uart_rclk. |
REG_UART_DUMMY
Name: UART Dummy Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Rsvd for hw |
Base Address:
UART0_REG : 0x401C3000
UART1_REG : 0x401C4000
UART2_REG : 0x401C5000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1 |
|
004h |
R/W |
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0. |
|
008h |
R |
Interrupt source indication |
|
00Ch |
R/W |
Set the general communication parameters |
|
010h |
R/W |
It is used to perform handshaking actions with the attached device. |
|
014h |
R |
Indicate the current state of communication and errors |
|
018h |
R |
It contains information about the four incoming modem control lines on the device |
|
01Ch |
R/W |
It is used to store information of TX |
|
020h |
R/W |
Indicate the information of TX baud rate |
|
024h |
R/W |
The buffers of received data / The buffers of transmitted data |
|
028h |
R/W |
Provide DMA and IrDA related information |
|
02Ch |
R/W |
Indicates the shift value of SIR TX pulse |
|
030h |
R/W |
Indicates the threshold of SIR Rx pulse |
|
034h |
R/W |
Monitor the baud rate of Rx pulse |
|
03Ch |
R |
Debug |
|
040h |
R/W |
Monitor the Rx baud rate error and Rx baudrate factor setting |
|
044h |
R/W |
Monitor the baud rate of Rx path |
|
048h |
R/W |
Monitor the baud rate of Rx path |
|
04Ch |
R |
Monitored clock cycle number of Rx path |
|
050h |
R/W |
Count the number of data read from rxfifo (byte) |
|
054h |
R/W |
FIFO control |
|
058h |
R/W |
Interrupt clear |
|
05Ch |
R/W |
Added in MP version, not existed in Test chip version |
|
060h |
R/W |
||
064h |
R/W |
||
068h |
R |
||
06Ch |
R/W |
||
0F0h |
R |
REG_UART_DLL
Name: UART divisor length register
Size: 32
Address offset: 000h
Read/write access: R/W
The low 8 bits of divisor coefficient only valid when the DLAB bit of LCR bit[7] = 1
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
BAUD |
R/W |
0x0 |
The low 8 bits of divisor coefficient (not used) |
REG_UART_IER
Name: UART interrupt enable register
Size: 32
Address offset: 004h
Read/write access: R/W
Generate enable and disable interrupt by the UART, only valid when the DLAB bit of LCR bit[7] = 0.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
ERETI |
R/W |
0x0 |
RXFIFO_EMPTY_TIMEOUT interrupt enable |
6 |
ERXNDI |
R/W |
0x0 |
Rx noise detected interrupt enable |
5 |
ETOI |
R/W |
0x0 |
Rx timeout interrupt enable |
4 |
EMDI |
R/W |
0x0 |
Rx path monitor done interrupt enable |
3 |
EDSSI |
R/W |
0x0 |
Modem Status Interrupt (EDSSI) (modem status transition) enable |
2 |
ELSI |
R/W |
0x0 |
Receiver Line Status Interrupt (ELSI) (receiver line status) enable |
1 |
ETBEI |
R/W |
0x0 |
Transmitter FIFO Empty interrupt (ETBEI) (Tx FIFO empty) enable |
0 |
ERBI |
R/W |
0x0 |
Received Data Available Interrupt (ERBFI) (Rx trigger) enable |
REG_UART_IIR
Name: UART interrupt identification register
Size: 32
Address offset: 008h
Read/write access: R
Interrupt source indication
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
INT_PEND |
R |
0x1 |
|
REG_UART_LCR
Name: UART line control register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Set the general communication parameters
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DLAB |
R/W |
0x0 |
Divisor Latch Access bit, and control the accessibility of the DLL, DLM and IER registers
Note THR/RBR don’t care the value of dlab bit. |
6 |
BRCTL |
R/W |
0x0 |
Break Control bit
|
5 |
STKP |
R/W |
0x0 |
Stick Parity bit
|
4 |
EPS |
R/W |
0x0 |
Even Parity selection
|
3 |
PEN |
R/W |
0x0 |
Parity Enable
|
2 |
STB |
R/W |
0x0 |
Stop bits length selection
Note The receiver always checks the first stop bit only. |
1 |
RSVD |
R |
- |
Reserved |
0 |
WLS0 |
R/W |
0x1 |
Word length selection
|
REG_UART_MCR
Name: UART modem control register
Size: 32
Address offset: 010h
Read/write access: R/W
It is used to perform handshaking actions with the attached device.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
AFE |
R/W |
0x0 |
Auto flow control enable |
4 |
LOOP_EN |
R/W |
0x0 |
LoopBack mode
|
3 |
OUT2 |
R/W |
0x0 |
Auxiliary output 2 Bit[3] affects the OUT2_ output in a manner identical to that described above set to 0 In loopback mode, connected to Data Carrier Detect (DCD). |
2 |
OUT1 |
R/W |
0x0 |
Auxiliary output 1 Bit3 affects the OUT1_ output in a manner identical to that described above set to 0 In loopback mode, connected to Ring Indicator (RI) |
1 |
RTS |
R/W |
0x0 |
Request to Send (RTS) signal control
This bit controls the RTS_ output. Bit[1] affects the RTS_ output in a manner identical to that described above set to 0. |
0 |
DTR |
R/W |
0x0 |
This bit controls the DTR output |
REG_UART_LSR
Name: UART line status register
Size: 32
Address offset: 014h
Read/write access: R
Indicate the current state of communication and errors
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
RE_TIMEOUT_INT |
R |
0 |
This bit is only set when rxfifo empty timeout interrupt is enabled(ERETI is set)
|
12 |
RXND_INT |
R |
0 |
This bit is only set when RX debouncer has detected noise
|
11 |
MODEM_INT |
R |
0 |
This bit is only set when Modem status pending
|
10 |
MONITOR_DONE_INT |
R |
0 |
This bit is only set when Rx Path Monitor Done interrupt is enabled(EMDI is set)
|
9 |
TIMEOUT_INT |
R |
0 |
This bit is only set when Rx Timeout interrupt is enabled(ETOI is set)
|
8 |
RXFIFO_INT |
R |
0 |
This bit is only set when Received Data Available Interrupt interrupt is enabled(ERBI is set)
|
7 |
RXFIFO_ERR |
R |
0 |
Uart_rx_error, depending on the FIFO control register (FCR) bit[0]
|
6 |
TX_NOT_FULL |
R |
1 |
TXFIFO not full indicator |
5 |
TX_EMPTY |
R |
1 |
TXFIFO empty indicator |
4 |
BREAK_INT |
R |
Break Interrupt (BI) indicator
|
|
3 |
FRM_ERR |
R |
Framing Error (FE) indicator
|
|
2 |
PAR_ERR |
R |
Parity Error (PE) indicator
|
|
1 |
OVR_ERR |
R |
Overrun Error (OE) indicator
|
|
0 |
DRDY |
R |
|
REG_UART_MSR
Name: UART modem status register
Size: 32
Address offset: 018h
Read/write access: R
It contains information about the four incoming modem control lines on the device
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
R_DCD |
R |
Complement of the DCD input or equals to Out2 in loopback mode. |
|
6 |
R_RI |
R |
Complement of the RI input or equals to Out1 in loopback mode. |
|
5 |
R_DSR |
R |
Complement of the DSR input or equals to DTR in loopback mode. |
|
4 |
R_CTS |
R |
Complement of the CTS input or equals to RTS in loopback mode. |
|
3 |
D_DCD |
R |
|
|
2 |
TERI |
R |
|
|
1 |
D_DSR |
R |
|
|
0 |
D_CTS |
R |
|
REG_UART_SCR
Name: UART scratch pad register
Size: 32
Address offset: 01Ch
Read/write access: R/W
It is used to store information of TX
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:27 |
RSVD |
R |
- |
Reserved |
26:16 |
XFACTOR_ADJ |
R/W |
0x0 |
One factor of Baud rate calculation for TX path |
15:13 |
RSVD |
R |
- |
Reserved |
12:8 |
DBG_SEL |
R/W |
0x0 |
Debug port selection |
7 |
SCRATCH_7 |
R/W |
0x0 |
Clear rx break signal interrupt status |
6:0 |
SCRATCH_6_0 |
R/W |
0x30 |
|
REG_UART_STS
Name: UART STS register
Size: 32
Address offset: 020h
Read/write access: R/W
Indicate the information of TX baud rate
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23:4 |
XFACTOR |
R/W |
0x1047 |
Factor of Baud rate calculation for Tx path |
3:0 |
RSVD |
R |
- |
Reserved |
REG_UART_RBR_OR_UART_THR
Name: UART receiver buffer register/UART transmitter holding register
Size: 32
Address offset: 024h
Read/write access: R/W
The buffers of received data / The buffers of transmitted data
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
DATABIT |
R/W |
0x0 |
UART_RBR’s Rx data bits or UART_THR’s Tx data bit[7:0] Note Bit[0] is the least significant bit. It is the first bit serially received/transmitted. |
REG_UART_MISCR
Name: UART MISC control register
Size: 32
Address offset: 028h
Read/write access: R/W
Provide DMA and IrDA related information
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29:22 |
DUMMY_DATA |
R/W |
0x0 |
Store dummy data, when UART is DMA flow controller, dummy data is padded for last RXDMA burst request. |
21 |
RXDMA_OWNER |
R/W |
0x0 |
|
20 |
IRDA_RX_INV |
R/W |
0x0 |
Irda_rx_i reverse input enable |
19 |
IRDA_TX_INV |
R/W |
0x0 |
Irda_tx_o reverse output enable |
18:11 |
RXDMA_BURSTSIZE |
R/W |
0x4 |
RXDMA burstsize, maximum value is half of rxfifo depth. |
10:3 |
TXDMA_BURSTSIZE |
R/W |
0x4 |
TXDMA burstsize, maximum value is 16. |
2 |
RXDMA_EN |
R/W |
0x0 |
RXDMA enable, valid when dma_mode in FCR is 1’b1 |
1 |
TXDMA_EN |
R/W |
0x0 |
TXDMA enable, valid when dma_mode in FCR is 1’b1 |
0 |
IRDA_ENABLE |
R/W |
0x0 |
|
REG_UART_SIR_TX_PWC0
Name: UART IRDA SIR TX pulse width control 0 register
Size: 32
Address offset: 02Ch
Read/write access: R/W
Indicates the shift value of SIR TX pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
UPPERBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
30:16 |
UPPERBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s right edge |
15 |
LOWBOUND_SHIFTRIGHT |
R/W |
0x0 |
|
14:0 |
LOWBOUND_SHIFTVAL |
R/W |
0x0 |
The shift value of SIR TX pulse’s left edge |
REG_UART_SIR_RX_PFC
Name: UART IRDA SIR Rx pulse filter control register
Size: 32
Address offset: 030h
Read/write access: R/W
Indicates the threshold of SIR Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
R_SIR_RX_FILTER_THRS |
R/W |
0x0 |
The threshold of SIR Rx filter, Rx pulse is valid only when Rx pulse width is larger than the threshold. |
0 |
R_SIR_RX_FILTER_EN |
R/W |
0x0 |
IrDA SIR Rx filter enable |
REG_UART_BAUD_MON
Name: UART baud monitor register
Size: 32
Address offset: 034h
Read/write access: R/W
Monitor the baud rate of Rx pulse
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
TOGGLE_MON_EN |
R/W |
0x0 |
Toggle monitor enable |
30 |
MON_DATA_VLD |
R |
Indicate valid monitoring data |
|
29:24 |
FALLING_THRESH |
R/W |
0x7 |
Indicate the threshold of Rx data rising edge |
23:12 |
MIN_LOW_PERIOD |
R |
Minimum space of consecutive logic ‘0’ of Rx data |
|
11:0 |
MIN_FALL_SPACE |
R |
Minimum space of adjacent falling edge of Rx data |
REG_UART_DBGR
Name: UART debug register
Size: 32
Address offset: 03Ch
Read/write access: R
Debug
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DBG_UART |
R |
The output value of debug port, depending on dbg_sel value in SCR[2:0] |
REG_UART_RX_PATH_CTRL
Name: UART Rx path control register
Size: 32
Address offset: 040h
Read/write access: R/W
Monitor the Rx baud rate error and Rx baudrate factor setting
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13:3 |
RXBAUD_ADJ_10_0 |
R/W |
0x0 |
One factor of Baud rate calculation for Rx path, similar with xfactor_adj |
2 |
R_RST_NEWRX_N |
R/W |
0x0 |
Reset new Rx path, low active |
1:0 |
RSVD |
R |
- |
Reserved |
REG_UART_MON_BAUD_CTRL
Name: UART monitor baud rate control register
Size: 32
Address offset: 044h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:30 |
RSVD |
R |
- |
Reserved |
29 |
R_UPD_OSC_IN_XTAL |
R/W |
0x0 |
Update parameter r_cycnum_perbit_osc (during the update of parameter r_cycnum_perbit_xtal) enable |
28:9 |
R_CYCNUM_PERBIT_OSC |
R/W |
0x0 |
Indicate the average OSC clock cycle number of one bit, for Rx path OSC clk Note SW sets the initial value, HW updates it depending on the monitor result. |
8:1 |
R_BIT_NUM_THRES |
R/W |
0x0 |
Indicate the bit number threshold of one monitor period, max value is 127 |
0 |
R_MON_BAUD_EN |
R/W |
0x0 |
Monitor Rx baud enable |
REG_UART_MON_BAUD_STS
Name: UART monitor baud rate status register
Size: 32
Address offset: 048h
Read/write access: R/W
Monitor the baud rate of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:29 |
RSVD |
R |
- |
Reserved |
28:21 |
RO_MON_TOTAL_BIT |
R |
0x0 |
Indicate the number of bits actually monitored |
20 |
RO_MON_RDY |
R |
0x0 |
Indicate the finish of calculation of actual cycle number per bit, it’s cleared when r_mon_baud_en is 0 |
19:0 |
R_CYCNUM_PERBIT_XTAL |
R/W |
0x0 |
Indicate the fractional xtal clock cycle number of one bit, for Rx path xtal clk Note SW sets the initial value, HW updates it depending on the monitor result. |
REG_UART_MON_CYC_NUM
Name: UART monitored cycle number register
Size: 32
Address offset: 04Ch
Read/write access: R
Monitored clock cycle number of Rx path
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
RO_MON_TOTAL_CYCLE |
R |
Indicate the number of clock cycle actually monitored |
REG_UART_RX_BYTE_CNT
Name: UART Rx data byte count register
Size: 32
Address offset: 050h
Read/write access: R/W
Count the number of data read from rxfifo (byte)
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
CLR_RX_BYTE_CNT |
R/W |
Write 1 to clear ro_rx_byte_cnt |
|
15:0 |
RO_RX_BYTE_CNT |
R |
Count the byte number of data read from rxfifo |
REG_UART_FCR
Name: UART FIFO control register
Size: 32
Address offset: 054h
Read/write access: R/W
FIFO control
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:6 |
RECVTRG |
R/W |
0x3 |
Define the Receiver FIFO Interrupt trigger level
|
5:4 |
RSVD |
R |
- |
Reserved |
3 |
DMA_MODE |
R/W |
0x0 |
Support dma mode (cooperate with DW DDMA in the data path) |
2 |
XMIT_CLR |
R/W |
0x0 |
Clear xmitckt |
1 |
RECV_CLR |
R/W |
0x0 |
Clear receiving |
0 |
FIFO_EN |
R/W |
0x1 |
Error report of RCVR FIFO field enable, only valid when the LSR bit[7] is set to 1. |
REG_UART_ICR
Name: UART interrupt clear register
Size: 32
Address offset: 058h
Read/write access: R/W
Interrupt clear
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5 |
RETICF |
R/W |
0x0 |
Rxfifo empty timeout Interrupt Clear Flag |
4 |
RXNDICF |
R/W |
0x0 |
Rx noise Detected Interrupt Flag |
3 |
MDICF |
R/W |
0x0 |
Monitor Done Interrupt Flag |
2 |
MICF |
R/W |
0x0 |
Modem Interrupt Clear Flag |
1 |
TOICF |
R/W |
0x0 |
Timeout Interrupt Clear Flag |
0 |
RLSICF |
R/W |
0x0 |
Receiver Line Statue Interrupt Clear Flag Writing 1 to this bit clears PARITY_ERR, OVERRUN_ERR, FRAMING_ERR, BREAK_ERR_INT and RXFIFO_ERR in the USART_LSR register. |
REG_UART_RXDBCR
Name: UART RX debounce control register
Size: 32
Address offset: 05Ch
Read/write access: R/W
Added in MP version, not existed in Test chip version
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:1 |
DBNC_CYC |
R/W |
0xF |
Debounce cycles in unit of sclk |
0 |
DBNC_FEN |
R/W |
0x0 |
UART RX debounce enable |
REG_UART_RXTO_THRS
Name: UART rx timeout threshold
Size: 32
Address offset: 060h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:28 |
RSVD |
R |
- |
Reserved |
27:0 |
R_RXTO_THRS |
R/W |
0x40 |
Indicate the timeout threshold of Rx path, unit in one-bit time. Set rxfifo empty timeout interrupt, when ERETI=1 and rxfifo is empty for longer than R_RXTO_THRS, unit in one-bit time |
REG_UART_RXDMA_MAX_LEN
Name: UART rxdma max length register
Size: 32
Address offset: 064h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:22 |
RSVD |
R |
- |
Reserved |
21:0 |
RXDMA_MAX_LEN |
R/W |
0x0 |
If uart is rxdma flow controller, rxdma_last will be asserted when rxdma transmitted bytes equal RXDMA_MAX_LEN |
REG_UART_RXDMA_REMAIN_LEN
Name: UART rxdma remain length register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:22 |
RSVD |
R |
- |
Reserved |
21:0 |
RXDMA_REMAIN_LEN |
R |
0x0 |
Rxdma transmitted remain bytes , RXDMA_REMAIN_LEN will be set value of RXDMA_MAX_LEN when DMA transmission is completed(rxdma_last=1) or rxdma_en is disabled. |
REG_UART_CLR_FLAG
Name: UART clear flag register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_DUMMY_FLAG |
R/W |
0x0 |
Indicate the clearing of dummy data |
REG_UART_DUMMY
Name: UART Dummy Register
Size: 32
Address offset: 0F0h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Rsvd for hw |