![ARTERY AT32F435 Series Скачать руководство пользователя страница 153](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592153.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 153
Rev 2.03
9.4.1
DMAMUX functional overview
The DMAMUX consists of a request generator and a request multiplexer.
Each of the DMAMUX generator channel x has a GEN enable bit in the DMA_MUXGxCTR register. The
SIGSEL bit is used to select the trigger input of the DMAMUX generator. Typically, the number of DMA
requests equals G 1. The GPOL bit is used in the DMA_MUXGxCTRL register to select a
trigger event that can be on a rising edge, falling edge or either of them.
Each of the DMAMUX stream x comes from all_req [127: 1].
In flexible mapping mode, the SYNCEN bit in the DMA_MUXSxCTRL register is used to synchronize the
selected DMA request input. In synchronous mode, the SYNCSEL bit in the DMA_MUXSxCTRL register
is used to select synchronized input. The selected DMA request input will be transferred to chx_mux_req
[7: 0] as soon as a valid edge of the synchronized input is detected by the SYNCPOL [1: 0] in the
DMA_MUXSxCTRL register. In addition, when the EVTGEN bit is set in the DMA_MUXCxCTRL register,
the programmable request counter (REQCNT) is used to generate a request output and event output.
Figure 9-6 DMAMUX block diagram
DMAMUX
Stream x
Stream 2
Stream 1
SYNC
...
.
Req_gen1
Req_gen2
Req_gen3
Req_gen4
ADC1
ADC2
ADC3
DAC1
DAC2
DVP
I2S2_EXT
I2S3_EXT
I2C1
I2C2
I2C3
SDIO1
SDIO2
SPI1
SPI2
SPI3
SPI4
TMR1
TMR2
TMR3
TMR4
TMR5
TMR6
TMR7
TMR8
TMR20
USART1
USART2
USART3
UART4
UART5
USART6
UART7
UART8
QSPI1
QSPI2
all req[127:5]
...
.
syncx [x+16:0]
{dmamux_evt[x:1], exint_gpio [15:0]}
1
dmamux_evt[x:0]
2
x
...
.
m
u
x
_
re
q
_
g
e
n
[3
:0
]
chx_mux_req
1
x
....
0
DMAMUX_SEL
REQID
trgx[x+15:0]
EXINT[x+15:0]