AnsweredAssumed Answered

STM32F407 Capture Compare Trigger for injected ADC conversion

Question asked by daniel on Feb 17, 2017
Latest reply on Feb 18, 2017 by KIC8462852 EPIC204278916


I'm using STM32F407 and i want to trigger an injected ADC1 measurement by Timer 1, Capture Compare Channel 4.


Timer 1, Channel 4 is configured as Output Channel with a timebase of 50us. So each 50us, I got a CC4 interrupt, which calls the defined callback.

What I don't understand is the following:

The injected ADC measurement isn't triggered, if the OutputCompare (OCMode) of Channel 4 is set to Frozen (OC4M Bits in Reg. TIM_CCMR2 set to 000). However, If I do set OC4M bits to 011 (Toggle), the injected ADC measurement is triggered correctly. But the CC4IF is set in both cases, which in my opinion should be the trigger event for injected ADC conversion. So do you have any idea what's wrong?