17. DMA request multiplexer (DMAMUX)

17.1 Introduction

A peripheral indicates a request for DMA transfer by setting its DMA request signal. The DMA request is pending until served by the DMA controller that generates a DMA acknowledge signal, and the corresponding DMA request signal is deasserted.

In this document, the set of control signals required for the DMA request/acknowledge protocol is not explicitly shown or described, and it is referred to as DMA request line.

The DMAMUX request multiplexer enables routing a DMA request line between the peripherals and the DMA controllers of the product. The routing function is ensured by a programmable multi-channel DMA request line multiplexer. Each channel selects a unique DMA request line, unconditionally or synchronously with events from its DMAMUX synchronization inputs. The DMAMUX may also be used as a DMA request generator from programmable events on its input trigger signals.

The number of DMAMUX instances and their main characteristics are specified in Section 17.3.1.

The assignment of DMAMUX request multiplexer inputs to the DMA request lines from peripherals and to the DMAMUX request generator outputs, the assignment of DMAMUX request multiplexer outputs to DMA controller channels, and the assignment of DMAMUX synchronizations and trigger inputs to internal and external signals depend upon product implementation. They are detailed in Section 17.3.2.

17.2 DMAMUX main features

17.3 DMAMUX implementation

17.3.1 DMAMUX instantiation

DMAMUX1 and DMAMUX2 are instantiated with the hardware configuration parameters listed in the following table.

Table 101. DMAMUX1 and DMAMUX2 instantiation

FeatureDMAMUX1DMAMUX2
Number of DMAMUX output request channels168
Number of DMAMUX request generator channels88
Number of DMAMUX request trigger inputs88
Number of DMAMUX synchronization inputs88
Number of DMAMUX peripheral request inputs10832

17.3.2 DMAMUX1 mapping

The mapping of resources to DMAMUX1 is hardwired.

DMAMUX1 is used with DMA1 and DMA2

Table 102. DMAMUX1: assignment of multiplexer inputs to resources

DMA request MUX inputResourceDMA request MUX inputResourceDMA request MUX inputResource
1dmamux1_req_gen044USART2_TX87SAI1_A
2dmamux1_req_gen145USART3_RX88SAI1_B
3dmamux1_req_gen246USART3_TX89SAI2_A
4dmamux1_req_gen347TIM8_CH190SAI2_B
5dmamux1_req_gen448TIM8_CH291-
6dmamux1_req_gen549TIM8_CH392-
7dmamux1_req_gen650TIM8_CH493SPDIFRX_DT
8dmamux1_req_gen751TIM8_UP94SPDIFRX_CS
9ADC152TIM8_TRIG95-
10ADC253TIM8_COM96-
11TIM1_CH154-97-
12TIM1_CH255TIM5_CH198-
13TIM1_CH356TIM5_CH299-
14TIM1_CH457TIM5_CH3100-
15TIM1_UP58TIM5_CH4101DFSDM1_FLT0
16TIM1_TRIG59TIM5_UP102DFSDM1_FLT1
17TIM1_COM60TIM5_TRIG103-
18TIM2_CH161SPI3_RX104-
19TIM2_CH262SPI3_TX105TIM15_CH1
20TIM2_CH363UART4_RX106TIM15_UP
21TIM2_CH464UART4_TX107TIM15_TRIG
22TIM2_UP65UART5_RX108TIM15_COM
23TIM3_CH166UART5_TX109TIM16_CH1
24TIM3_CH267-110TIM16_UP
25TIM3_CH368-111TIM17_CH1
26TIM3_CH469TIM6_UP112TIM17_UP
27TIM3_UP70TIM7_UP113-
28TIM3_TRIG71USART6_RX114-
29TIM4_CH172USART6_TX115I2C5_RX
30TIM4_CH273I2C3_RX116I2C5_TX
31TIM4_CH374I2C3_TX117Reserved
32TIM4_UP75I2C4_RX118Reserved
33I2C1_RX76I2C4_TX119Reserved
34I2C1_TX77-120Reserved
35I2C2_RX78-121Reserved
36I2C2_TX79UART7_RX122Reserved

Table 102. DMAMUX1: assignment of multiplexer inputs to resources (continued)

DMA request MUX inputResourceDMA request MUX inputResourceDMA request MUX inputResource
37SPI1_RX80UART7_TX123Reserved
38SPI1_TX81UART8_RX124Reserved
39SPI2_RX82UART8_TX125Reserved
40SPI2_TX83SPI4_RX126Reserved
41USART1_RX84SPI4_TX127Reserved
42USART1_TX85SPI5_RX--
43USART2_RX86SPI5_TX--

Table 103. DMAMUX1: assignment of trigger inputs to resources

Trigger inputResourceTrigger inputResource
0dmamux1_evt05LPTIMER2_OUT
1dmamux1_evt16LPTIMER3_OUT
2dmamux1_evt27EXTI0
3LPTIMER1_OUT8TIM12_TRGO

Table 104. DMAMUX1: assignment of synchronization inputs to resources

Sync. inputResourceSync. inputResource
0dmamux1_evt05LPTIMER2_OUT
1dmamux1_evt16LPTIMER3_OUT
2dmamux1_evt27EXTI0
3LPTIMER1_OUT8TIM12_TRGO

17.3.3 DMAMUX2 mapping

The mapping of resources to DMAMUX2 is hardwired.

DMAMUX2 is used with DMA3: DMAMUX2 channels 0 to 7 are connected to DMA3 channels 0 to 7.

Table 105. DMAMUX2: assignment of multiplexer inputs to resources

DMA request MUX inputResourceDMA request MUX inputResource
1dmamux2_req_gen033Reserved
2dmamux2_req_gen134Reserved
3dmamux2_req_gen235Reserved
4dmamux2_req_gen336Reserved
5dmamux2_req_gen437Reserved
6dmamux2_req_gen538Reserved
Table 105. DMAMUX2: assignment of multiplexer inputs to resources (continued)
DMA request MUX inputResourceDMA request MUX inputResource
7dmamux2_req_gen639Reserved
8dmamux2_req_gen740Reserved
9ADC141Reserved
10ADC242Reserved
11I2C3_RX43Reserved
12I2C3_TX44Reserved
13SPI4_RX45Reserved
14SPI4_TX46Reserved
15USART1_RX47Reserved
16USART1_TX48Reserved
17USART2_RX49Reserved
18USART2_TX50Reserved
19I2C4_RX51Reserved
20I2C4_TX52Reserved
21I2C5_RX53Reserved
22I2C5_TX54Reserved
23SPI5_RX55Reserved
24SPI5_TX56Reserved
25TIM15_CH157Reserved
26TIM15_UP58Reserved
27TIM15_TRIG59Reserved
28TIM15_COM60Reserved
29TIM16_CH161Reserved
30TIM16_UP62Reserved
31TIM17_CH163Reserved
32TIM17_UP64Reserved
Table 106. DMAMUX2: assignment of trigger inputs to resources
Trigger inputResourceTrigger inputResource
0dmamux2_evt04Reserved
1dmamux2_evt15Reserved
2dmamux2_evt26Reserved
3Reserved7TIM12_TRGO

Table 107. DMAMUX2: assignment of synchronization inputs to resources

Sync inputResourceSync inputResource
0dmamux2_evt04Reserved
1dmamux2_evt15Reserved
2dmamux2_evt26Reserved
3Reserved7TIM12_TRGO

17.4 DMAMUX functional description

17.4.1 DMAMUX block diagram

Figure 117 shows the DMAMUX block diagram.

Figure 117. DMAMUX block diagram

Figure 117: DMAMUX block diagram. The diagram shows the internal structure of the DMAMUX, including the AHB slave interface, Request generator, Request multiplexer, and Sync block. It details the flow of DMA requests from peripherals (dmamux_req_inx) through the Request generator (containing registers like DMAMUX_RGnCR) to the Request multiplexer (containing registers like DMAMUX_CmCR) and finally to the Sync block. The Sync block outputs DMA requests to DMA controllers (dmamux_req_outx) and DMA channel events (dmamux_evtx). The diagram also shows the 32-bit AHB bus, dmamux_hclk, and various control registers and interfaces.

The diagram illustrates the DMAMUX architecture. It consists of several key components:

The diagram also shows the flow of signals like dmamux_reqx and dmamux_req_genx between the Request generator and Request multiplexer.

Figure 117: DMAMUX block diagram. The diagram shows the internal structure of the DMAMUX, including the AHB slave interface, Request generator, Request multiplexer, and Sync block. It details the flow of DMA requests from peripherals (dmamux_req_inx) through the Request generator (containing registers like DMAMUX_RGnCR) to the Request multiplexer (containing registers like DMAMUX_CmCR) and finally to the Sync block. The Sync block outputs DMA requests to DMA controllers (dmamux_req_outx) and DMA channel events (dmamux_evtx). The diagram also shows the 32-bit AHB bus, dmamux_hclk, and various control registers and interfaces.

DMAMUX features two main sub-blocks: the request line multiplexer and the request line generator.

The implementation assigns:

17.4.2 DMAMUX signals

Table 108 lists the DMAMUX signals.

Table 108. DMAMUX signals

Signal nameDescription
dmamux_hclkDMAMUX AHB clock
dmamux_req_inxDMAMUX DMA request line inputs from peripherals
dmamux_trgxDMAMUX DMA request triggers inputs (to request generator sub-block)
dmamux_req_genxDMAMUX request generator sub-block channels outputs
dmamux_reqxDMAMUX request multiplexer sub-block inputs (from peripheral requests and request generator channels)
dmamux_syncxDMAMUX synchronization inputs (to request multiplexer sub-block)
dmamux_req_outxDMAMUX requests outputs (to DMA controllers)
dmamux_evtxDMAMUX events outputs
dmamux_ovr_itDMAMUX overrun interrupts

17.4.3 DMAMUX channels

A DMAMUX channel is a request multiplexer channel that can include, depending upon the selected input of the request multiplexer, an additional DMAMUX request generator channel.

A DMAMUX request multiplexer channel is connected and dedicated to a single channel of DMA controller(s).

Channel configuration procedure

Follow the sequence below to configure a DMAMUX x channel and the related DMA channel y:

  1. 1. Set and configure completely the DMA channel y, except enabling the channel y.
  2. 2. Set and configure completely the related DMAMUX y channel.
  3. 3. Last, activate the DMA channel y by setting the EN bit in the DMA y channel register.

17.4.4 DMAMUX request line multiplexer

The DMAMUX request multiplexer with its multiple channels ensures the actual routing of DMA request/acknowledge control signals, named DMA request lines.

Each DMA request line is connected in parallel to all the channels of the DMAMUX request line multiplexer.

A DMA request is sourced either from the peripherals, or from the DMAMUX request generator.

The DMAMUX request line multiplexer channel x selects the DMA request line number as configured by the DMAREQ_ID field in the DMAMUX_CxCR register.

Note: The null value in the field DMAREQ_ID corresponds to no DMA request line selected.

Caution: A same non-null DMAREQ_ID cannot be programmed to different x and y DMAMUX request multiplexer channels (via DMAMUX_CxCR and DMAMUX_CyCR), except when the application guarantees that the two connected DMA channels are not simultaneously active.

On top of the DMA request selection, the synchronization mode and/or the event generation may be configured and enabled, if required.

Synchronization mode and channel event generation

Each DMAMUX request line multiplexer channel x can be individually synchronized by setting the synchronization enable (SE) bit in the DMAMUX_CxCR register.

DMAMUX has multiple synchronization inputs. The synchronization inputs are connected in parallel to all the channels of the request multiplexer.

The synchronization input is selected via the SYNC_ID field in the DMAMUX_CxCR register of a given channel x.

When a channel is in this synchronization mode, the selected input DMA request line is propagated to the multiplexer channel output, once a programmable rising/falling edge is detected on the selected input synchronization signal, via the SPOL[1:0] field of the DMAMUX_CxCR register.

Additionally, internally to the DMAMUX request multiplexer, there is a programmable DMA request counter, which can be used for the channel request output generation, and for an event generation. An event generation on the channel x output is enabled through the EGE bit (event generation enable) of the DMAMUX_CxCR register.

As shown in Figure 119, upon the detected edge of the synchronization input, the pending selected input DMA request line is connected to the DMAMUX multiplexer channel x output.

Note: If a synchronization event occurs while there is no pending selected input DMA request line, it is discarded. The following asserted input request lines is not connected to the DMAMUX multiplexer channel output until a synchronization event occurs again.

From this point on, each time the connected DMAMUX request is served by the DMA controller (a served request is deasserted), the DMAMUX request counter is decremented. At its underrun, the DMA request counter is automatically loaded with the value in the NBREQ field of the DMAMUX_CxCR register and the input DMA request line is disconnected from the multiplexer channel x output.

Thus, the number of DMA requests transferred to the multiplexer channel x output following a detected synchronization event, is equal to the value in the NBREQ field, plus one.

Note: The NBREQ field value can be written by software only when both synchronization enable bit (SE) and event generation enable bit (EGE) of the corresponding multiplexer channel x are disabled.

Figure 118. Synchronization mode of the DMAMUX request line multiplexer channel

Timing diagram illustrating the synchronization mode of the DMAMUX request line multiplexer channel. Signal waveforms shown: Selected dmamux_reqx, dmamux_syncx, dmamux_req_outx, DMA request counter, and dmamux_evtx. The sequence shows a synchronization event enabling the DMA request line to be transferred to the output. The DMA request counter counts down from 4 to 0 upon serviced requests, triggers a counter underrun event on dmamux_evtx at 0, disconnects the input DMA request line, and auto-reloads to NBREQ (4).

Example: DMAMUX_CCRx configured with: NBREQ=4, SE=1, EGE=1, SPOL=01 (rising edge)

MSv41974V1

Timing diagram illustrating the synchronization mode of the DMAMUX request line multiplexer channel. Signal waveforms shown: Selected dmamux_reqx, dmamux_syncx, dmamux_req_outx, DMA request counter, and dmamux_evtx. The sequence shows a synchronization event enabling the DMA request line to be transferred to the output. The DMA request counter counts down from 4 to 0 upon serviced requests, triggers a counter underrun event on dmamux_evtx at 0, disconnects the input DMA request line, and auto-reloads to NBREQ (4).

Figure 119. Event generation of the DMA request line multiplexer channel

Timing diagram illustrating event generation of the DMA request line multiplexer channel with SE=0, EGE=1, and NBREQ=3. Signals include Selected dmamux_reqx, dmamux_req_outx, DMA request counter (cycling 3, 2, 1, 0, 3, 2, 1, 0, 3, 2, 1, 0), SE, EGE, and dmamux_evtx. Pulses on dmamux_evtx occur each time the counter reaches zero and auto-reloads with the NBREQ value (3).

Example with: DMAMUX_CCRx configured with: NBREQ=3, SE=0, EGE=1

MSv41975V1

Timing diagram illustrating event generation of the DMA request line multiplexer channel with SE=0, EGE=1, and NBREQ=3. Signals include Selected dmamux_reqx, dmamux_req_outx, DMA request counter (cycling 3, 2, 1, 0, 3, 2, 1, 0, 3, 2, 1, 0), SE, EGE, and dmamux_evtx. Pulses on dmamux_evtx occur each time the counter reaches zero and auto-reloads with the NBREQ value (3).

If EGE is enabled, the multiplexer channel generates a channel event, as a pulse of one AHB clock cycle, when its DMA request counter is automatically reloaded with the value of the programmed NBREQ field, as shown in Figure 118 and Figure 119.

Synchronization overrun and interrupt

If a new synchronization event occurs before the request counter underrun (the internal request counter programmed via the NBREQ field of the DMAMUX_CxCR register), the synchronization overrun flag bit SOFx is set in the DMAMUX_CSR register.

The overrun flag SOFx is reset by setting the associated clear synchronization overrun flag bit CSOFx in the DMAMUX_CFR register.

Setting the synchronization overrun flag generates an interrupt if the synchronization overrun interrupt enable bit SOIE is set in the DMAMUX_CxCR register.

17.4.5 DMAMUX request generator

The DMAMUX request generator produces DMA requests following trigger events on its DMA request trigger inputs.

The DMAMUX request generator has multiple channels. DMA request trigger inputs are connected in parallel to all channels.

The outputs of DMAMUX request generator channels are inputs to the DMAMUX request line multiplexer.

Each DMAMUX request generator channel x has an enable bit GE (generator enable) in the corresponding DMAMUX_RGxCR register.

The DMA request trigger input for the DMAMUX request generator channel x is selected through the SIG_ID (trigger signal ID) field in the corresponding DMAMUX_RGxCR register.

Trigger events on a DMA request trigger input can be rising edge, falling edge or either edge. The active edge is selected through the GPOL (generator polarity) field in the corresponding DMAMUX_RGxCR register.

Upon the trigger event, the corresponding generator channel starts generating DMA requests on its output. Each time the DMAMUX generated request is served by the connected DMA controller (a served request is deasserted), a built-in (inside the DMAMUX request generator) DMA request counter is decremented. At its underrun, the request generator channel stops generating DMA requests and the DMA request counter is automatically reloaded to its programmed value upon the next trigger event.

Thus, the number of DMA requests generated after the trigger event is GNBREQ+1.

Note: The GNBREQ field value can be written by software only when the enable GE bit of the corresponding generator channel x is disabled.

There is no hardware write protection.

A trigger event (edge) is detected if the state following the edge remains stable for more than two AHB clock cycles.

Upon writing into DMAMUX_RGxCR register, the trigger events are masked during three AHB clock cycles.

Trigger overrun and interrupt

If a new DMA request trigger event occurs before the DMAMUX request generator counter underrun (the internal counter programmed via the GNBREQ field of the DMAMUX_RGxCR register), and if the request generator channel x was enabled via GE, then the request trigger event overrun flag bit OFx is asserted by the hardware in the DMAMUX_RGSR register.

Note: The request generator channel x must be disabled (DMAMUX_RGxCR.GE = 0) when the usage of the related channel of the DMA controller is completed. Else, upon a new detected trigger event, there is a trigger overrun due to the absence of an acknowledge (that is, no served request) received from the DMA.

The overrun flag OFx is reset by setting the associated clear overrun flag bit COFx in the DMAMUX_RGCFR register.

Setting the DMAMUX request trigger overrun flag generates an interrupt if the DMA request trigger event overrun interrupt enable bit OIE is set in the DMAMUX_RGxCR register.

17.5 DMAMUX interrupts

An interrupt can be generated upon:

For each case, per-channel individual interrupt enable, status, and clear flag register bits are available.

Table 109. DMAMUX interrupts

Interrupt signalInterrupt eventEvent flagClear bitEnable bit
dmamuxovr_itSynchronization event overrun on channel x of the DMAMUX request line multiplexerSOFxCSOFxSOIE
Trigger event overrun on channel x of the DMAMUX request generatorOFxCOFxOIE

17.6 DMAMUX registers

Refer to the table containing register boundary addresses for the DMAMUX base address.
DMAMUX registers may be accessed per byte (8-bit), half-word (16-bit), or word (32-bit).
The address must be aligned with the data size.

17.6.1 DMAMUX request line multiplexer channel x configuration register (DMAMUX_CxCR)

Address offset: 0x000 + 0x04 * x (x = 0 to 15 for DMAMUX1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.SYNC_ID[2:0]NBREQ[4:0]SPOL[1:0]SE
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.EGESOIERes.DMA REQ_ID[6]DMAREQ_ID[5:0]
rwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:24 SYNC_ID[2:0]: Synchronization identification

Selects the synchronization input (see Table 104: DMAMUX1: assignment of synchronization inputs to resources and Table 107: DMAMUX2: assignment of synchronization inputs to resources).

Bits 23:19 NBREQ[4:0]: Number of DMA requests minus 1 to forward

Defines the number of DMA requests to forward to the DMA controller after a synchronization event, and/or the number of DMA requests before an output event is generated.
This field must only be written when both SE and EGE bits are low.

Bits 18:17 SPOL[1:0]: Synchronization polarity

Defines the edge polarity of the selected synchronization input:
00: No event (no synchronization, no detection).
01: Rising edge
10: Falling edge
11: Rising and falling edges

Bit 16 SE: Synchronization enable

0: Synchronization disabled
1: Synchronization enabled

Bits 15:10 Reserved, must be kept at reset value.

Bit 9 EGE: Event generation enable

0: Event generation disabled
1: Event generation enabled

Bit 8 SOIE: Synchronization overrun interrupt enable

0: Interrupt disabled
1: Interrupt enabled

Bit 7 Reserved, must be kept at reset value.

Bit 6 DMAREQ_ID[6]: DMA request identification

Selects the input DMA request. See the DMAMUX table about assignments of multiplexer inputs to resources.

For DMAMUX2 this bit is reserved, keep it at reset value.

Bits 5:0 DMAREQ_ID[5:0]: DMA request identification

Selects the input DMA request. See the DMAMUX table about assignments of multiplexer inputs to resources.

17.6.2 DMAMUX request line multiplexer channel x configuration register [alternate] (DMAMUX_CxCR)

Address offset: 0x000 + 0x04 * x (x = 0 to 7 for DMAMUX2)

Reset value: 0x0000 0000

This register must be written by a non-secure or secure write, according to the secure mode of the considered DMAMUX request line multiplexer channel x, depending on the secure mode bit of the connected DMA controller channel y. This assumes that the DMAMUX x channel output is connected to the y channel of the DMA (refer to the DMAMUX mapping implementation section).

This register must be accessed by a privileged or unprivileged read/write, according to the privileged mode of the considered DMAMUX request line multiplexer channel x, depending on the privileged control bit of the connected of the connected DMA controller channel y. This assumes that the DMAMUX x channel output is connected to the y channel of the DMA (refer to the DMAMUX mapping implementation section).

31302928272625242322212019181716
Res.Res.Res.Res.Res.SYNC_ID[2:0]NBREQ[4:0]SPOL[1:0]SE
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.EGESOIERes.DMA REQ_ID[6]DMAREQ_ID[5:0]
rwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:24 SYNC_ID[2:0]: Synchronization identification

Selects the synchronization input (see Table 104: DMAMUX1: assignment of synchronization inputs to resources and Table 107: DMAMUX2: assignment of synchronization inputs to resources).

Bits 23:19 NBREQ[4:0]: Number of DMA requests minus 1 to forward

Defines the number of DMA requests to forward to the DMA controller after a synchronization event, and/or the number of DMA requests before an output event is generated.

This field must only be written when both SE and EGE bits are low.

Bits 18:17 SPOL[1:0]: Synchronization polarity

Defines the edge polarity of the selected synchronization input:

00: No event (no synchronization, no detection).

01: Rising edge

10: Falling edge

11: Rising and falling edges

17.6.3 DMAMUX request line multiplexer interrupt channel status register (DMAMUX_CSR)

Address offset: 0x080

Reset value: 0x0000 0000

Bit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit Number
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
rrrrrrrrrrrrrrrr
Bits 15:0SOF[15:0]: Synchronization overrun event flag
ST logo
ST logo

17.6.4 DMAMUX request line multiplexer interrupt clear flag register (DMAMUX_CFR)

Address offset: 0x084

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
CSOF 15CSOF 14CSOF 13CSOF 12CSOF 11CSOF 10CSOF 9CSOF 8CSOF 7CSOF 6CSOF 5CSOF 4CSOF 3CSOF 2CSOF 1CSOF 0
wwwwwwwwwwwwwwww

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 CSOF[15:0]: Clear synchronization overrun event flag

Writing 1 in each bit clears the corresponding overrun flag SOFx in the DMAMUX_CSR register. For DMAMUX2 bits 15:8 are reserved, keep them at reset value.

17.6.5 DMAMUX request generator channel x configuration register (DMAMUX_RGxCR)

Address offset: 0x100 + 0x04 * x (x = 0 to 7)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.GNBREQ[4:0]GPOL[1:0]GE
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.OIERes.Res.Res.Res.Res.SIG_ID[2:0]
rwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:19 GNBREQ[4:0]: Number of DMA requests to be generated (minus 1)

Defines the number of DMA requests to be generated after a trigger event. The actual number of generated DMA requests is GNBREQ +1.

Note: This field must be written only when GE bit is disabled.

Bits 18:17 GPOL[1:0]: DMA request generator trigger polarity

Defines the edge polarity of the selected trigger input

00: No event, i.e. no trigger detection nor generation.

01: Rising edge

10: Falling edge

11: Rising and falling edges

Bit 16 GE: DMA request generator channel x enable

0: DMA request generator channel x disabled

1: DMA request generator channel x enabled

Bits 15:9 Reserved, must be kept at reset value.

Bit 8 OIE: Trigger overrun interrupt enable

0: Interrupt on a trigger overrun event occurrence is disabled

1: Interrupt on a trigger overrun event occurrence is enabled

Bits 7:3 Reserved, must be kept at reset value.

Bits 2:0 SIG_ID[2:0]: Signal identification

Selects the DMA request trigger input used for the channel x of the DMA request generator

17.6.6 DMAMUX request generator interrupt status register (DMAMUX_RGSR)

Address offset: 0x140

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OF7OF6OF5OF4OF3OF2OF1OF0
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 OF[7:0]: Trigger overrun event flag

The flag is set when a new trigger event occurs on DMA request generator channel x, before the request counter underrun (the internal request counter programmed via the GNBREQ field of the DMAMUX_RGxCR register).

The flag is cleared by writing 1 to the corresponding COFx bit in the DMAMUX_RGCFR register.

17.6.7 DMAMUX request generator interrupt clear flag register (DMAMUX_RGCFR)

Address offset: 0x144

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COF7COF6COF5COF4COF3COF2COF1COF0
wwwwwwww

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 COF[7:0]: Clear trigger overrun event flag

Writing 1 in each bit clears the corresponding overrun flag OFx in the DMAMUX_RGSR register.

17.6.8 DMAMUX size identification register (DMAMUX_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: Size identification

This register identifies an IP size of 1 KB address space.

17.6.9 DMAMUX IP identification register (DMAMUX_IPIDR)

Address offset: 0x3F8

Reset value: 0x0010 0011

This register identifies the IP.

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: IP identification

17.6.10 DMAMUX version register (DMAMUX_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0011

This register identifies the IP version.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: Major IP revision

Bits 3:0 MINREV[3:0]: Minor IP revision

17.6.11 DMAMUX hardware configuration 1 register (DMAMUX_HWCFGR1)

Address offset: 0x3F0

Reset value: 0x0808 6C10 (for DMAMUX1, 0x08082008 for DMAMUX2)

31302928272625242322212019181716
NUM_DMA_REQGEN[7:0]NUM_DMA_TRIG[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
NUM_DMA_PERIPH_REQ[7:0]NUM_DMA_STREAMS[7:0]
rrrrrrrrrrrrrrrr

Bits 31:24 NUM_DMA_REQGEN[7:0]: number of DMA request generator channels

Bits 23:16 NUM_DMA_TRIG[7:0]: number of synchronization inputs

Bits 15:8 NUM_DMA_PERIPH_REQ[7:0]: number of DMA request lines from peripherals

Bits 7:0 NUM_DMA_STREAMS[7:0]: number of DMA request line multiplexer (output) channels

17.6.12 DMAMUX hardware configuration 2 register (DMAMUX_HWCFGR2)

Address offset: 0x3EC

Reset value: 0x0000 0008

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.NUM_DMA_EXT_REQ[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 NUM_DMA_EXT_REQ[7:0]: Number of DMA request trigger inputs

17.6.13 DMAMUX register map

The following table summarizes the DMAMUX registers and reset values. Refer to the register boundary address table for the DMAMUX register base address.

Table 110. DMAMUX register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000DMAMUX_C0CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x004DMAMUX_C1CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x008DMAMUX_C2CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x00CDMAMUX_C3CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x010DMAMUX_C4CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x014DMAMUX_C5CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x018DMAMUX_C6CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x01CDMAMUX_C7CRResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEDMAREQ_ID[6:0](1)
Reset value00000000000000000000
0x020DMAMUX_C8CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x024DMAMUX_C9CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x028DMAMUX_C10CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x02CDMAMUX_C11CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x030DMAMUX_C12CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x034DMAMUX_C13CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x038DMAMUX_C14CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x03CDMAMUX_C15CR(2)ResResResResResSYNC_ID [2:0]NBREQ[4:0]SPOL [1:0]SEResResResResResResEGESOIEResDMAREQ_ID[6:0]
Reset value00000000000000000000
0x040 - 0x07CReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes

Table 110. DMAMUX register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x080DMAMUX_CSR(3)ResResResResResResResResResResResResResResResResSOF15SOF14SOF13SOF12SOF11SOF10SOF9SOF8SOF7SOF6SOF5SOF4SOF3SOF2SOF1SOF0
Reset value000000000000000
0x084DMAMUX_CFR(4)ResResResResResResResResResResResResResResResResCSOF15CSOF14CSOF13CSOF12CSOF11CSOF10CSOF9CSOF8CSOF7CSOF6CSOF5CSOF4CSOF3CSOF2CSOF1CSOF0
Reset value000000000000000
0x088 - 0x0FCReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x100DMAMUX_RG0CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x104DMAMUX_RG1CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x108DMAMUX_RG2CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x10CDMAMUX_RG3CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x110DMAMUX_RG4CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x114DMAMUX_RG5CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x118DMAMUX_RG6CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x11CDMAMUX_RG7CRResResResResResResResResGNBREQ[4:0]GPOL[1:0]GEResResResResResResResOIESIG_ID[3:0]
Reset value000000000000
0x120 - 0x13CReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x140DMAMUX_RGSRResResResResResResResResResResResResResResResResResResResResResResResOF7OF6OF5OF4OF3OF2OF1OF0
Reset value00000000
0x144DMAMUX_RGCFRResResResResResResResResResResResResResResResResResResResResResResResCOF7COF6COF5COF4COF3COF2COF1COF0
Reset value00000000
0x148 - 0x3E8ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x3ECDMAMUX_HWCFGR2NUM_DMA_EXT_REQ
Reset value0000100
0x3F0DMAMUX_HW_CFGR1NUM_DMA_REQGENNUM_DMA_TRIGNUM_DMA_PERIF_REQNUM_DMA_STREAMS
Reset value(5)0000100000001000011011000001000
0x3F4DMAMUX_VERRResResResResResResResResResResResResResResResResResResResResResResResMAJREV[3:0]MINREV[3:0]
Reset value00010001
0x3F8DMAMUX_IPIDRID[31:0]
Reset value00000000000100000000000000010001
0x3FCDMAMUX_SIDRSID[31:0]
Reset value10100011110001011101110100000001

1. For DMAMUX2 bit DMAREQ[6] is reserved, keep it at reset value.

ST logo
ST logo
  1. 2. For DMAMUX1 only.
  2. 3. For DMAMUX2 bits SOF[15:8] are reserved, keep them at reset value.
  3. 4. For DMAMUX2 bits CSOF[15:8] are reserved, keep them at reset value.
  4. 5. For DMAMUX2 see Section 17.6.11.

Refer to Section 2.5 on page 153 for the register boundary addresses.