LS_Universal asynchronous receiver/transmitter (UART)
RM0082
594/844
Doc ID 018672 Rev 1
27.3 Programming
model
27.3.1 Register
map
The UART can be fully configured by programming its registers which can be accessed at
the base address shown in
.
UART registers can be logically arranged in five main groups:
•
Data register
, (listed in
), contains data to be transmitted or received.
•
Error Status/Clear
), contains UART receiver error status and
clearing UART receive error.
•
control and status registers
, CSRs (listed in
), for UART configuration and
control.
•
interrupts and DMA registers
), for interrupts generation and DMA
control.
•
identification registers
(listed in
), namely eight 8 bit RO registers reporting
UART-specific information.
Note:
In addition to reserved locations within the CSRs address space (
), offset
addresses from 0x080 to 0xFDC are reserved for test purposes as well as for future
extensions. All these locations must not be used during normal operation.
Note:
UART must be disabled before any of the CSrs is programmed. When UART is disabled in
the middle of transmission or reception, it completes the current character before stopping.
Table 515.
UART base address
UART
Base Address
UART
0x D000.0000
Table 516.
UART data registers summary
Name
Offset
Width(bit)
Type Reset value
Description
UARTDR
0x000
16
RW
16‘h0
UART data.
Table 517.
UART error status/clear registers summar
y
Name
Offset
Width(bit)
Type
Reset value
Description
UARTRSR/UA
RTECR
0x004
8
RW
8‘h0
Receive status/error clear.
Table 518.
UART control and status register summar
y
Name
Offset
Width(bit)
Type
Reset value
Description
-
0x008 to 0x014
-
-
-
Reserved.
UARTFR
0x018
16
RO
16’h0090
UART flag.
-
0x01C
-
-
-
Reserved.
UARTILPR
0x020
8
RW
8’h0
NA
UARTIBRD
0x024
16
RW
16‘h0
Integer baud rate.