The memory map for the UART control registers is shown in Table 54. The UART memory map
has been designed to require only naturally aligned 32-bit memory accesses.
Offset
Name
Description
0x00
txdata
Transmit data register
0x04
rxdata
Receive data register
0x08
txctrl
Transmit control register
0x0C
rxctrl
Receive control register
0x10
ie
UART interrupt enable
0x14
ip
UART interrupt pending
0x18
div
Baud rate divisor
Writing to the
txdata
register enqueues the character contained in the
data
field to the transmit
FIFO if the FIFO is able to accept new entries. Reading from
txdata
returns the current value of
the
full
flag and zero in the
data
field. The
full
flag indicates whether the transmit FIFO is
able to accept new entries; when set, writes to
data
are ignored. A RISC‑V
amoor.w
instruction
can be used to both read the
full
status and attempt to enqueue data, with a non-zero return
value indicating the character was not accepted.
Transmit Data Register (
txdata
)
Register Offset
0x0
Bits
Field Name
Attr.
Rst.
Description
[7:0]
data
RW
X
Transmit data
[30:8]
Reserved
31
full
RO
X
Transmit FIFO full
Table 54:
Register offsets within UART memory map
Table 55:
Transmit Data Register
Chapter 17 Universal Asynchronous Receiver/Transmitter
FE310-G003 Manual
© SiFive, Inc.
Page 82
Содержание FE310-G003
Страница 1: ...SiFive FE310 G003 Manual v1p1 SiFive Inc ...