AnsweredAssumed Answered

Nucleo F410RB ADC dilema

Question asked by nico 2010 on Oct 12, 2017
Latest reply on Oct 13, 2017 by KIC8462852 EPIC204278916

Hello,

I'm newbie with STM32 microcontrollers.

I want to read ADC in regular mode conversion but triggered by TIM1 Capture Compare event with a period of 100us.

Despite the fact that TIM1 Capture Compare on channel 2 has an event (interruption) at every 100us - tested by toggling LD2 on board - ADC does not trigger.

Instead, if I use injected mode conversion ADC trigger and it achieve values.

I checked "stm32f4xx_hal_adc.c" to see if is any reference about start conversion with external trigger/timer trigger but I didn't find something.

What can I have to do to make the project work?

In attachment is CubeMX project settings and main.c file.

Attachments

Outcomes