cancel
Showing results for 
Search instead for 
Did you mean: 

What's the difference Update Event and Global interrupt?

TMATS.1
Associate II

I want to use ADC with DMA using Timer Trigger.

I want to start ADC with DMA per Timer trigger.

But, TRGO(Update Event) does not work properly.

Global Interrupt works properly.

3 REPLIES 3

> I want to use ADC with DMA using Timer Trigger.

Which STM32? Which ADC? Which Timer Trigger?

> Global Interrupt works properly.

What do you mean by Global Interrupt in this context? How do you set it up?

JW

TMATS.1
Associate II

​Thank you for your reply.

I use the following environment.

・STM32F767ZI(Nucleo-144)

・ADC2 and 3

・TIM2

Global interrupt is red circle part in attachment file.

I don't use CubeMX but I guess this is just a way to tell CubeMX to generate NVIC_EnableIRQ(TIM2_IRQn) call. In other words, this has nothing to do with ADC.

As as I don't use CubeMX I can't tell you how to click your required trigger. Normally, you would read the ADC chapter in RM0410, select the appropriate trigger input according to table External trigger for regular channels (or its counterpart for injected channels, if you want to convert injected channels) - for TIM2 I see TIM2_CH2 or TIM2_TRGO there - and set EXTEN and EXTSEL fields accordingly in the respective ADC's ADC_CR2. Then you would go to TIM2, if you selected TIM2_CH2 you'd set that channel for PWM (except you don't need to set pin for it in the AF matrix of GPIO - although you can do that); if you selected TIM2_TRGO you would then set the appropriate TRGO in TIMx_CR2.MMS.

JW