2026-03-16 12:57 PM - last edited on 2026-03-16 2:46 PM by Andrew Neil
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?
Solved! Go to Solution.
2026-03-17 12:59 PM
I used deactive dead battery pull-up. Thanks for help.
2026-03-16 1:09 PM
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.
2026-03-16 1:13 PM
2026-03-16 1:20 PM
PD0 is one of UCPD pins. Either connect PD1 to GND or disable the default operation in software. The topic was discussed many times.
2026-03-16 2:45 PM
@gbm wrote:The topic was discussed many times.
Indeed.
@transistor - some examples:
https://community.st.com/t5/stm32-mcus-products/stm32g071-portd-pullups/m-p/881555
https://community.st.com/t5/stm32-mcus-products/stm32g0b0-writing-to-pd1-affects-pd0/m-p/699254
2026-03-17 12:59 PM