Skip to main content
Graduate II
March 20, 2025
Solved

ADC different channel, same value

  • March 20, 2025
  • 4 replies
  • 689 views

carlesls2_3-1742472404962.png

 

carlesls2_4-1742472418135.png

 

carlesls2_5-1742472436041.png

 

 

I am just wondering how it is possible that 3 adc gave me the very same value, if I change the channel and their rank are different.   

Thanks for all. 

 

 

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

    When converting a single channel in fully configurable mode, rank 1 is the only channel converted.

    Two of your three pictures are the same. The other one configures rank 3 which isn't converted.

    4 replies

    Super User
    March 20, 2025

    @carlesls2 wrote:

    I am just wondering how it is possible that 3 adc gave me the very same value


    Are they all connected to the same thing?

    Please see: How to write your question to maximize your chances to find a solution

    and: How to insert source code - not as images

    TDKAnswer
    Super User
    March 20, 2025

    When converting a single channel in fully configurable mode, rank 1 is the only channel converted.

    Two of your three pictures are the same. The other one configures rank 3 which isn't converted.

    carlesls2Author
    Graduate II
    March 20, 2025

    carlesls2_0-1742475954206.png

    Almost the same value...

    carlesls2Author
    Graduate II
    March 20, 2025

    Merged from separate thread


    I was just wondering... If an adc is burned inside a stm32g051g8,  should all the values that the ADC from different channel be the same or quite similar?

     

    carlesls2_0-1742476828234.png

     

    Thanks for all.