Skip to main content
Associate III
February 29, 2016
Question

ADC do not generate interrupts

  • February 29, 2016
  • 1 reply
  • 572 views
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
This topic has been closed for replies.

1 reply

Associate III
March 1, 2016
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?