Skip to main content
Graduate
May 30, 2025
Solved

EOC strange behavoir on ADC STM32H563VGT6

  • May 30, 2025
  • 1 reply
  • 344 views

Hi,
I don't understand the behavior of EOC bit of ADC_ISR register at the end of conversion process.
My micro code is STM32H563VGT6.
I start from example "ADC_SingleConversion_TriggerSW_Init".
As the example I have to convert a single channel, single conversion mode.
This the problem:
after I start the conversion, the bit EOC and EOS go high togheter. 
But EOC then goes low, with no reset by software and any read of the register ADC_DR.
The DMA is not active.
Then when I loop with this condition:
while ( ! LL_ADC_IsActiveFlag_EOC() )
I stuck in the loop.
Why this behavior?
Thank you.

    This topic has been closed for replies.
    Best answer by TDK

    EOC is cleared when the debugger reads the DR register.

    1 reply

    TDKAnswer
    Super User
    May 30, 2025

    EOC is cleared when the debugger reads the DR register.