EasyManua.ls Logo

Maxim Integrated MAX32660 - Table 8-2: UART Registers, Offset Addresses and Descriptions; Table 8-3: UART Control 0 Register

Maxim Integrated MAX32660
195 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MAX32660 User Guide
Maxim Integrated Page 87 of 195
8.6 Flushing the UART FIFOs
The FIFOs can be flushed independently by setting UARTn_CTRL0.rxflush to 1 for the RX FIFO and UARTn_CTRL0.txflush. to 1
for the TX FIFO. The TX FIFO and RX FIFO are automatically flushed if the UART is disabled by clearing the
UARTn_CTRL0.enable field (UARTn_CTRL0.enable = 0).
8.7 Hardware Flow Control
When hardware flow control is enabled, the CTS (Clear-to-send) and RTS (Request-to-Send) external signals are directly
managed by hardware without CPU intervention. RTS and CTS are active when flow control is enabled by setting the
register bit UARTn_CTRL0.flowctl=1. The polarity of the CTS/RTS signals are configured with register bit
UARTn_CTRL0.flowpol and can be active low or active high.
In operation, the host UART that wants to transmit data asserts the RTS output pin and waits for the CTS input pin to be
asserted. If CTS is asserted, then the host UART begins transmitting data to the slave UART. If during the transmission the
host UART notices CTS is deasserted, the host UART finishes transmitting the current character and then pauses to wait for
CTS to return to an asserted level before transmitting more data.
If this UART is receiving data, and the RX FIFO reaches the level set in the 6-bit register field UARTn_CTRL1.rts_fifo_lvl, then
the RTS signal of this UART is deasserted, informing the transmitting UART to stop sending data to this UART to prevent
data overflow. Transmission resumes when the level of the RX FIFO drops below UARTn_CTRL1.rts_fifo_lvl, which
automatically asserts RTS.
8.8 UART Registers
The UART0 base peripheral address is 0x4004 2000 and the UART1 base peripheral address is 0x4004 3000. Refer to Table
3-1: APB Peripheral Base Address Map for the addresses of all APB mapped peripherals.
Table 8-2: UART Registers, Offset Addresses and Descriptions
Offset
Register Name
Access
Description
[0x0000]
UARTn_CTRL0
R/W
UARTn Control 0 Register
[0x0004]
UARTn_CTRL1
R/W
UARTn Control 1 Register
[0x0008]
UARTn_STAT
RO
UARTn Status Register
[0x000C]
UARTn_INT_EN
R/W
UARTn Interrupt Enable Register
[0x0010]
UARTn_INT_FL
R/1
UARTn Interrupt Flag Register
[0x0014]
UARTn_BAUD0
R/W
UARTn Baud Rate Integer Register
[0x0018]
UARTn_BAUD1
R/W
UARTn Baud Rate Decimal Register
[0x001C]
UARTn_FIFO
R/W
UARTn FIFO Read/Write Register
[0x0020]
UARTn_DMA
R/W
UARTn DMA Configuration Register
[0x0024]
UARTn_TXFIFO
RO
UARTn TX FIFO Register
8.8.1 UART Register Details
Table 8-3: UART Control 0 Register
UART Control 0 Register
UARTn_CTRL0
[0x0000]
Bits
Name
Access
Reset
Description
31:24
-
R/W
0
Reserved for Future Use
Do not modify this field.

Table of Contents

Related product manuals