GD32F10x User Manual
434
register is set, or if the RBNEIE is set.
If a noise error (NERR), parity error (PERR), frame error (FERR) or overrun error (ORERR)
is generated during a receiving process, then NERR, PERR, FERR or ORERR will be set at
same time with RBNE. If DMA is disabled, the software needs to check whether the RBNE
interrupt is caused by noise error, parity error, framing error or overflow error when the RBNE
interrupt occurs.
16.3.5.
Use DMA for data buffer access
To reduce the burden of the processor, DMA can be used to access the transmitting and
receiving data buffer. The DENT bit in USART_CTL2 is used to enable the DMA transmission,
and the DENR bit in USART_CTL2 is used to enable the DMA reception.
When DMA is used for USART transmission, DMA transfers data from internal SRAM to the
transmit data buffer of the USART. The configuration step is shown in
Configuration step when using DMA for USART transmission
Figure 16-5. Configuration step when using DMA for USART transmission
Set the address of USART_DATA as
the DMA destination address
Set the address of data in internal
sram as the DMA source address
Set the number of data as the DMA
transfer number
Set other configurations of DMA,
interrupt enable, priority, etc
Clear the TC bit in USART_STAT
Enable the DMA channel for USART
Wait the TC bit to be set
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...