GD32F10x User Manual
435
After all of the data frames are transmitted, the TC bit in USART_STAT is set. An interrupt
occurs if the TCIE bit in USART_CTL0 is set.
When DMA is used for USART reception, DMA transfers data from the receive data buffer of
the USART to the internal sram. The configuration step is shown in
Configuration step when using DMA for USART reception
. If the ERRIE bit in
USART_CTL2 is set, interrupts can be generated by the Error status bits (FERR, ORERR
and NERR) in USART_STAT.
Figure 16-6. Configuration step when using DMA for USART reception
Set the address of USART_DATA as
the DMA source address
Set the address of the buffer in
internal sram as the DM A destination
address
Set the number of data as the DMA
transfer number
Set other configurations of DMA,
interrupt enable, priority, etc
Enable the DMA channel for USART
When the number of the data received by USART reaches the DMA transfer number, an end
of transfer interrupt can be generated in the DMA module.
16.3.6.
Hardware flow control
The hardware flow control function is realized by the nCTS and nRTS pins. The RTS flow
control is enabled by writing ‘1’ to the RTSEN bit in USART_CTL2 and the CTS flow control
is enabled by writing ‘1’ to the CTSEN bit in USART_CTL2.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...