Skip to main content
Associate II
Mar 16, 2026 7:57 PM UTC
Solved

STM32G070CBT6 0.7V on input pin PD0 with external 10k pullup.

Hello i use STM32G070CBT6 with PD0 and others pins.

PD0 as input pin with no internal pull-up/down with extrenal 10k pullup gives only 0.7V, when i set the pin to output and set state to high there is 3.3V.

Where is the problem?

 

transistorBest answer
Associate II
Mar 17, 2026 7:59 PM UTC

I used deactive dead battery pull-up. Thanks for help.

5 replies

TDK
Mar 16, 2026 8:09 PM UTC

What else is PD0 connected to externally? Show your schematic. Likely something externally is pulling it down. Enable the internal pullup/pulldown to quantify the change in the output level.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
Mar 16, 2026 8:13 PM UTC
 
 

PD1 and PD2 are connected in the same way and they work right.

gbm
Super User
Mar 16, 2026 8:20 PM UTC

PD0 is one of UCPD pins. Either connect PD1 to GND or disable the default operation in software. The topic was discussed many times.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Andrew Neil
Super User
Mar 16, 2026 9:45 PM UTC
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.
transistorAuthorBest answer
Associate II
Mar 17, 2026 7:59 PM UTC

I used deactive dead battery pull-up. Thanks for help.