![Maxim Integrated MAX32660 Скачать руководство пользователя страница 87](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484087.webp)
MAX32660 User Guide
Maxim Integrated
Page 87 of 195
8.6
Flushing the UART FIFOs
The FIFOs can be flushed independently by setting
.rxflush
to 1 for the RX FIFO and
.txflush.
to 1
for the TX FIFO. The TX FIFO and RX FIFO are automatically flushed if the UART is disabled by clearing the
.enable
field (
.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
.flowctl=1. The polarity of the CTS/RTS signals are configured with register bit
.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
.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
.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
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]
R/W
UARTn Control 0 Register
[0x0004]
R/W
UARTn Control 1 Register
[0x0008]
RO
UARTn Status Register
[0x000C]
R/W
UARTn Interrupt Enable Register
[0x0010]
R/1
UARTn Interrupt Flag Register
[0x0014]
R/W
UARTn Baud Rate Integer Register
[0x0018]
R/W
UARTn Baud Rate Decimal Register
[0x001C]
R/W
UARTn FIFO Read/Write Register
[0x0020]
R/W
UARTn DMA Configuration Register
[0x0024]
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.
Содержание MAX32660
Страница 4: ...MAX32660 User Guide Maxim Integrated Page 4 of 195 8 UART 84 9 Real Time Clock RTC 96 10 Timers 105...
Страница 7: ...MAX32660 User Guide Maxim Integrated Page 7 of 195 15 Trademarks 195 16 Revision History 195...
Страница 14: ...MAX32660 User Guide Maxim Integrated Page 14 of 195 Figure 2 1 MAX32660 High Level Block Diagram...