Skip to main content
Associate
September 17, 2025
Solved

Input pin in pull up mode is being in high impedance state

  • September 17, 2025
  • 5 replies
  • 646 views

I have set PA3 pin as input with pull up mode. But testing this pin by multimeter I get high impendance state (0.5V) on it. Must be 3.3V (logical 1). I use stm32F417ZGT6. 

Best answer by waclawek.jan

Note, that the internal pullup is nominally 40kOhm, so it won't provide enough current to overcome an external 10kOhm pulldown to a valid logic 1 state.

Actually, if VDD is around 3V, a 40kOhm/10kOhm divider you have should result in cca 0.6V, matching your observation.

JW

5 replies

Andrew Neil
Super User
September 17, 2025

welcome to the forum.

Please see  How to write your question to maximize your chances to find a solution for best results.

In particular, Please give details of your hardware.

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.
Associate
September 18, 2025

Schematic of PA3 port connecting

PA3.png

TDK
Super User
September 17, 2025

The attached code initialized PA3 as input with pullup. No problems there. Nothing special about PA3.

The issue is likely with your hardware. It's also possible you're not measuring the actual pin. Show a picture of your setup, schematic, and what you're actually measuring.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
September 18, 2025

Schematic of PA3 port connecting

PA3.png

waclawek.jan
waclawek.janBest answer
Super User
September 18, 2025

Note, that the internal pullup is nominally 40kOhm, so it won't provide enough current to overcome an external 10kOhm pulldown to a valid logic 1 state.

Actually, if VDD is around 3V, a 40kOhm/10kOhm divider you have should result in cca 0.6V, matching your observation.

JW

Associate
September 18, 2025

What I should to do to have logical 1 on PA3 input with pull up mode?

Associate II
September 18, 2025

> What I should to do to have logical 1 on PA3 input with pull up mode?

Remove your external resistors...

Associate
September 18, 2025

I see... maybe... My mentor something about this possible necessity was mentioned too. But for this need to dismount resistor from pcb. For this need access to soldering iron. So, it's complicated. Maybe some other ways?

Andrew Neil
Super User
September 18, 2025

@Vladyslav8989 wrote:

My mentor something about this possible necessity was mentioned too.


Time to go back to this Mentor again, then - and clarify that.

Maybe show them this thread?

 

BTW: Note that everyone can see every post - there's no need to repeat posts with the same information for different people.

You can mention multiple people in one post with '@'

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.
waclawek.jan
Super User
September 18, 2025

No.