Copyright
c
2016, SiFive Inc. All rights reserved.
39
Receive Control Register (
rxctrl
)
The read-write
rxctrl
register controls the operation of the receive channel. The
rxen
bit controls
whether the Rx channel is active. When cleared, the state of the
rxd
pin is ignored, and no
characters will be enqueued into the Rx FIFO.
The
rxcnt
field specifies the threshold at which the Rx FIFO watermark interrupt triggers.
The
rxctrl
register is reset to
0
.
R
eserve
d
31
19
rxcnt
18
16
R
eserve
d
15
1
rxen
0
Figure 12.4: Format of
rxctrl
register.
Interrupt Registers (
ip
and
ie
)
The
ip
register is a read-only register indicating the pending interrupt conditions, and the read-
write
ie
register controls which UART interrupts are enabled.
ie
is reset to
0
.
The
txwm
condition becomes raised when the number of entries in the transmit FIFO is strictly less
than the count specified by the
txcnt
field of the
txctrl
register. The pending bit is cleared when
sufficient entries have been enqueued to exceed the watermark.
The
rxwm
condition becomes raised when the number of entries in the receive FIFO is strictly
greater than the count specified by the
rxcnt
field of the
rxctrl
register. The pending bit is
cleared when sufficient entries have been dequeued to fall below the watermark.
0
31
2
rxwm
1
txwm
0
Figure 12.5: Format of
ie
and
ip
registers.
Baud Rate Divisor Register (
div
)
The read-write
div
register specifies the divisor used by baud rate generation for both Tx and Rx
channels. The relationship between the input clock and baud rate is given by the following formula:
f
baud
=
f
in
div
+ 1
0
31
16
div
15
0
Figure 12.6: Format of
div
register.
Summary of Contents for E300
Page 1: ...SiFive E300 Platform Reference Manual Version 1 0 1 c SiFive Inc ...
Page 2: ...2 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 4: ...ii SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 12: ...4 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 14: ...6 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 22: ...14 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 32: ...24 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 40: ...32 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 56: ...48 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 60: ...52 SiFive E300 Platform Reference Manual Version 1 0 1 ...