Skip to main content
HTess.1
Associate III
May 5, 2022
Solved

DMAMUX Synchronization events (stm32h747)

The DMAMUX1 can trigger DMA requests through synchronization and within the tab of synchronization possibilities there is TIM12_TRGO (input 7). So here is my question do the bits MMS[2:0] in register TIM12_CR2 configure this TRGO (it is written that it is for slave timers, for timer1 there is a separate MMS register for the ADC)?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
May 5, 2022

> do the bits MMS[2:0] in register TIM12_CR2 configure this TRGO

Most probably yes.

ST notoriously cannot describe the interconnections between internal modules properly. There are many more modules triggered by various TIMx_TRGO and TIMx_TRGO2, e.g. HRTIM, DFSDM; OTOH, ADC can be triggered by both TIM1_TRGO and TIM1_TRGO2 - so giving a "target" for TRGO/TRGO2 at the description of MSM is nonsense (and that it's given historically is no excuse).

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
May 5, 2022

> do the bits MMS[2:0] in register TIM12_CR2 configure this TRGO

Most probably yes.

ST notoriously cannot describe the interconnections between internal modules properly. There are many more modules triggered by various TIMx_TRGO and TIMx_TRGO2, e.g. HRTIM, DFSDM; OTOH, ADC can be triggered by both TIM1_TRGO and TIM1_TRGO2 - so giving a "target" for TRGO/TRGO2 at the description of MSM is nonsense (and that it's given historically is no excuse).

JW

HTess.1
HTess.1Author
Associate III
May 5, 2022

Thank you for explaining, some parts of the RM0399 are not very beginner-friendly.

I tried and it works.