Skip to main content
zli.2
Associate
October 21, 2022
Question

GPIO is disturbed by the alternate function

hello everyone,

i work on stm32g071 to build a application , but i configure the PA9 for uart TX and the PA8 for the normal input that pull up by 3.3v. When start send data by the PA9 , PA8 is disturbed。But PA9 is not configured, the PA8 level is normal

This topic has been closed for replies.

4 replies

gbm
Super User
October 21, 2022

Shorts on the board? Too high current drawn from PA9?

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
zli.2
zli.2Author
Associate
October 21, 2022

No short,but i don`t test the cuurent on the PA9. So , if the current too high ,What should i do?

ONadr.1
Senior III
October 21, 2022

You can use tranzistor, or some digital buffer. It depends on current, frequency, cost etc....

waclawek.jan
Super User
October 21, 2022

This is the USBC-PD dead-battery gotcha. Have a look at SYSCFG1_CFGR1.UCPDx_STROBE.

JW