I don’treally understand why do you want measure conversion time it is deterministic.I guess you are looking for TIM_ITConfig(TIM1, TIM_IT_Update, ENABLE).
From wantI remember you want to create pwm signal based on analog value. Use one of CCmode flags to fire ADC at the end of pwm cycle then compute duty either by theend of conversion or at tim update event and use other CC register to generatepwm signal. There is going to be a bit of cycles lost for calculations. If youwant to make it precise use CYCCNT register to measure execution time andadjust CC accordingly. Personally I would use adc continuous mode and stop worryingabout triggering etc for the sake of simplicity.
My next target is the follow. I want to be able to see in oscilloscope the ADC Time conversion
1.- Start the ADC conversion, and toggle one pin (I think watching the TIM1 ISR (I cant at this moment)).2.- Toggle this pin another time when the conversion finishes (Watching ADC ISR, I can do this).3.- Get the time with the oscilloscope. By this way i will have the ADC TiME conversion. My boss told me that he wants to see it in my oscilloscope.