What's the difference Update Event and Global interrupt?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 10:46 PM
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.
- Labels:
-
ADC
-
DMA
-
STM32F7 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 11:37 PM
> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 11:48 PM
​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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 3:30 PM
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
