Skip to main content
CAPOSIENA.Philippe
Associate II
March 18, 2016
Question

ADC analog watch-dog interrupt

  • March 18, 2016
  • 1 reply
  • 413 views
Posted on March 18, 2016 at 15:43

Hello,

i want to use the analog watch-dog 1 interrupt with the STM32F334.

I configure the peripheral with CubeMx.

But the interrupt is never serviced. I must enable the EOC or EOS interrupt to get the Analog watch-dog call-back serviced.

I just use 1 ADC channel in continous mode (no trigger).

If i look at the registers when debugging, the flags for analog watch-dog are correct and the interrupt enable bit is set.

I don't know what to do anymore.

Is there a example ?

Thanks

Philippe
    This topic has been closed for replies.

    1 reply

    Amel NASRI
    ST Technical Moderator
    March 30, 2016
    Posted on March 30, 2016 at 17:56

    Hi Philippe,

    1- Is the IRQ handler enabled in your stm32f3xx_it.c file?

    2- Refer to the example STM32Cube_FW_F3_V1.4.0\Projects\STM32F302R8-Nucleo\Examples\ADC\ADC_AnalogWatchdog. It provides a short description of how to use the ADC peripheral to perform conversions with analog watchdog and out-of-window interruptions enabled.

    You can take this example as start point to make required updates in the project generated with CubeMX for F334.

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.