Associate
October 12, 2017
Question
Nucleo F410RB ADC dilema
- October 12, 2017
- 2 replies
- 685 views
Posted on October 12, 2017 at 08:50
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.