GD32F10x User Manual
192
The DMA transmission is disabled by clearing the CHEN bit in the DMA_CHxCTL register.
If the DMA transmission is not completed when the CHEN bit is cleared, two situations
may be occurred when restart this DMA channel:
–
If no register configuration operations of the channel occurs before restart the DMA
channel, the DMA will continue to complete the rest of the transmission.
–
If any register configuration operations occur, the DMA will restart a new
transmission.
If the DMA transmission has been finished when clearing the CHEN bit, enable the DMA
channel without any register configuration operation will not launch any DMA transfer.
9.4.2.
Peripheral handshake
To ensure a well-organized and efficient data transfer, a handshake mechanism is introduced
between the DMA and peripherals, including a request signal and a acknowledge signal:
Request signal asserted by peripheral to DMA controller, indicating that the peripheral is
ready to transmit or receive data
Acknowledge signal responded by DMA to peripheral, indicating that the DMA controller
has initiated an AHB command to access the peripheral
Figure 9-2. Handshake mechanism
shows how the handshake mechanism works between
the DMA controller and peripherals.
Figure 9-2. Handshake mechanism
DMA
Acknowledge
Peripheral
request
Peripheral is ready to transmit
or receive data, and assert the
request signal to DMA
Peripheral request
Peripheral
request
DMA acknowledge
Wait the DMA bus idle and
other higher priority channels
to have been processed
The corresponding channel has
the highest priority and the DMA
controller sents an AHB command
to access the peripheral
Peripheral releases the
request signal when it receives
the acknowledge signal
The DMA controller deasserts
the acknowledge signal when
it receives low request signal
Peripheral launches
the next request
9.4.3.
Arbitration
When two or more requests are received at the same time, the arbiter determines which
request is served based on the priorities of channels. There are two-stage priorities, including
the software priority and the hardware priority. The arbiter determines which channel is
selected to respond according to the following priority rules:
Software priority: Four levels, including low, medium, high and ultra high by configuring
the PRIO bits in the DMA_CHxCTL register.
Содержание 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 ...