Skip to main content
carlesls2
Associate III
March 20, 2025
Solved

ADC different channel, same value

  • March 20, 2025
  • 4 replies
  • 1639 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. 

 

 

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

Andrew Neil
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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
TDKBest answer
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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
carlesls2
carlesls2Author
Associate III
March 20, 2025

carlesls2_0-1742475954206.png

Almost the same value...

carlesls2
carlesls2Author
Associate III
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.