STM32405 ADC on Update Event of Timer 1 or 8
The STM32F405 has three independent AD converters, which can be triggered by a variety of sources.


You already have a working configuration of TIM1 and ADC1 which controls motor 1.
Set up TIM8 channels 1-3 to output the PWM signals for motor 2, and generate the sampling pulse on channel 4.
Set up ADC2 to do an injected conversion sequence of the three BEMF signals from motor 2.
Set the JEXTSEL bits of ADC2-&gt;CR2 to 1110 to use Timer 8 Channel 4 as a trigger for the injected conversion sequence.