Skip to main content
Associate III
Nov 3, 2026 3:58 PM UTC
Solved

STM32G474VET6 ADC2_IN5 PC4 impedance issue

Problem with input impedance on ADC2_IN5 / PC4 / pin 30 (100pin)

I have a high speed buffer video signal from a CCD device for high speed conversion - 5 signals going to ADC1,2,3,4,5

(Our first prototype based on STM32G474RET6 used ADC1->4 - no problems with a smaller part )

 

Upgraded to a 100 pin part - connecting the signal to ADC2_IN5 now overloads the video signal and pulls it down - same signal behaves properly when routed to ADC1,3,4,5. No pin stacking, no input multiplexing - always converting on the same channel:

VIDEO1 - ADC3_IN3 - PE13 p44 WORKS

VIDEO2 - ADC5_IN2 - PA9 p70 WORKS

VIDEO3 – ADC4_IN4 - PB14 p53 WORKS

VIDEO4 – ADC1_IN1 - PA0 p20 WORKS

VIDEO5 – ADC2_IN5 – PC4 p30 - PROBLEMS

 

Signal is driver with a high speed op-amp with 50 ohm matching.

DC part of the signal attenuated as well as the AC part.

Spam4teaBest answer
Associate III
Nov 4, 2026 10:07 AM UTC

turns out its the code - was using switching an alternative function on/off (SPI MISO) a different port and wrong port param on the call!

16 replies

mƎALLEm
ST Technical Moderator
Nov 3, 2026 4:09 PM UTC

Hello,

You need to give more details about the issue. 

How to write your question to maximize your chances to find a solution

Your schematics + probing each of ADC input screenshots + found results vs expected results

VIDEO5 – ADC2_IN5 – PC4 p30 - PROBLEMS

→ You need to be factual and describe the problem and its symptoms. 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Spam4teaAuthor
Associate III
Nov 3, 2026 4:48 PM UTC

See images - I have also tried driving the signal harder by passing R20 - no real improvement

mƎALLEm
ST Technical Moderator
Nov 3, 2026 5:03 PM UTC

Thank you for updating your post by adding the screenshots.

But the legend is missing in the screenshots. Need to highlight the problem and describe it in details.

What is the part number used for U10?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
waclawek.jan
Super User
Nov 3, 2026 7:38 PM UTC

Is the signal attenuated when the mcu is held in reset (e.g. by holding NRST pin down)?

Is this on a single prototype or multiple boards?

PC4 was available at the 64-pin version, can you try to route the signal there onto PC4? Alternatively, can you try it with a Nucleo board?

I am aiming at possible shorts on your board.

JW

Spam4teaAuthor
Associate III
Nov 4, 2026 9:21 AM UTC

I have injected 3v directly into the pin bypassing all traces this morning - 74mA - i have 3 pcbs doing this.

AScha.3
Super User
Nov 4, 2026 9:51 AM UTC

So 74mA*3v3 → about 0.2W going to… ? Can you look at it with a thermal imaging camera ? (my way to find the victim.)

And ist about 45 ohms to gnd , so if cpu not damaged by ESD , could be short to pin that drives lo out.

+

check -without power- resistance with DMM  to all surrounding pins and parts, to find/exclude shorts.

If you feel a post has answered your question, please click on " Best Answer ".
Spam4teaAuthorBest answer
Associate III
Nov 4, 2026 10:07 AM UTC

turns out its the code - was using switching an alternative function on/off (SPI MISO) a different port and wrong port param on the call!

waclawek.jan
Super User
Nov 4, 2026 10:09 AM UTC

Thanks for coming back with the solution. Please select your post as solution so that the thread is marked as solved.

However, I wonder, how PC4 is related to SPI MISO, since there’s no such functionality on that pin.

JW

Spam4teaAuthor
Associate III
Nov 4, 2026 10:14 AM UTC

it must have been from switching code from SPI3 to SPI1 after a PCB change for the SPI1 bootloader option - human error. I am taking tristate control of the MISO pin as part of a LVDS chain system (Linux based master)

Spam4teaAuthor
Associate III
Nov 4, 2026 10:16 AM UTC

how do i set this as solved / solution?

mƎALLEm
ST Technical Moderator
Nov 4, 2026 10:19 AM UTC

how do i set this as solved / solution?

1- Need to find which post that gave you the solution.

2- Click Best answer on that post:

PS: I marked your previous post as Best Answer.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
waclawek.jan
Super User
Nov 4, 2026 10:47 AM UTC

Thanks ​@mƎALLEm , I keep forgetting the name of this option and its position :-)

 

JW