![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 434](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800434.webp)
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
Содержание 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 ...