Skip to main content
Associate
December 16, 2024
Solved

Malfunction of ADC123_IN1 in Nucleo-F756ZG

  • December 16, 2024
  • 1 reply
  • 3049 views

I'm in trouble with the high err rate of ADC123_IN1 in "STM32 Nucleo-144 development board with STM32F756ZG MCU".

I've purchased two of the same thing, and both of them have trouble in ADC123_IN1.

I had tried 4 channels: ADC123_IN1, ADC123_IN4, ADC123_IN8, ADC123_IN2, but only ADC123_IN1 has high err rate.

Could you tell me how to get ADC value accurately.

I attached ADC measurement results just in case. (ADC_measurement_results.PNG)

Best answer by mƎALLEm

Because MDIO is bidirectional and when you you did the measure, it's not forcing the voltage of PA2 but need also to remove SB160. 

So please remove SB13 and redo the test on PA1 and tell what you found.

Apart of forcing the voltage from outside of the pin there is also the impedance that will influence the ADC impedance input.

So please remove all the connections to these pins for a good ADC conversion.

1 reply

mƎALLEm
Technical Moderator
December 23, 2024

Hello,

You need to check first what is connected to each channels? did you check the board schematics? what is the voltage sources? what is the value of the sampling time? 

Please also review this application note AN2834 "How to optimize the ADC accuracy in the STM32 MCUs"

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
RyosukeAuthor
Associate
December 24, 2024

Hello, thank you for your response.

1. I connected ADC123_IN1 directly to GND/3.3V on the development board via wires. Please reference attached file(Situation of Checking.pptx).
2. I had checked the board schematics, but it did not help me solve the problem. The URL of the board schematics is below.(STMhttps://www.st.com/en/evaluation-tools/nucleo-f756zg.html#cad-resources)
3. The voltage is obtained from the development board. Please reference attached file(Situation of Checking.pptx).
4. The value of the sampling time is set like below:
「sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;」

 

I also read the document "How to optimize the ADC accuracy in the STM32 MCUs", and I tried what I can do from the document.

5. I changed sampling time, but the result did not change.

6. in order to minimize the CPU internal noise during ADC sampling, I set interrupt-enable-process and clock-stop-process before ADC sampling. But the result did not go well.

 

If you have any advise, could you please tell me.

mƎALLEm
Technical Moderator
December 24, 2024

"5. I changed sampling time, but the result did not change."

-> what value you set?

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