cancel
Showing results for 
Search instead for 
Did you mean: 

ADC do not generate interrupts

Vyacheslav Azarov
Associate III
Posted on February 29, 2016 at 18:27

Hello,

I programmed ADC strictly through HAL. Dual injected simultaneously mode, three conversions, triggered by HRTIM. Initialization was generated CubeMX. Was been started through sequence

HAL_ADCEx_InjectedStart_IT(&hadc2);

HAL_ADCEx_InjectedStart_IT(&hadc1);

As result, ADC works but interrupt do not generated and ADC1_2_IRQHandler() do not called. I tried change settings but unsuccessfully. What to do? I'm at an impasse!

Thanks in advance.

#interrupts #interrupts
1 REPLY 1
Vyacheslav Azarov
Associate III
Posted on March 01, 2016 at 21:10

Excuse me. Problem already solved. Option of HRTIM must be

TimerCfg.PreloadEnable = HRTIM_PRELOAD_DISABLED;

In case other values interrupts and triggers do not generated.

But why?