cancel
Showing results for 
Search instead for 
Did you mean: 

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

transistor
Associate II

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
transistor
Associate II

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

View solution in original post

5 REPLIES 5
TDK
Super User

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".
 
 

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

gbm
Principal

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

@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

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.
transistor
Associate II

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