2022-09-02 12:03 PM
It's not clear from the datasheet under what conditions pins are 5V tolerant, or what the pins can tolerate when configured as output. I'd like to know 2 things:
Does "Input voltage on FT_xx pins except FT_c" apply in these cases? If not, which limit does apply?
MCU: STM32G070CBT6
VDD: 3.3V
2022-09-02 12:13 PM
I did find this article, which helped clarify that my AF1 pins (PC6, PC7) are okay up to 5V. It also states that the pins are only 5V tolerant when configured as an input, which would seem to indicate that I'm violating the pin's max Vin in case 1. above. However, it still does not answer what the actual maximum voltage for a FT pin configured as output (push pull) is.
2022-09-02 01:29 PM
Look at the IO Cell diagram, I'm pretty sure they only mean Push-Pull Output, and that the Open Drain, pull-up to 5V is the expected/anticipated use case, perhaps for I2C
2022-09-02 02:17 PM
I'm not familiar enough with the HW design to be confident, but I'll pass that on to an EE. I was thinking that too, but then I received a response to the contrary on my comment: https://community.st.com/s/article/what-is-the-maximum-input-voltage-that-can-be-applied-to-my-stm32-gpio
2022-09-03 12:10 AM
Slightly simplifying: when actively driving output to 1, it's shorted to Vdd. You don't want to short external 5 V to Vdd. You may safely pull the OD-configured output to 5 V via a resistor. In few of my projects I output the 1..2 MHz 5 V logic clock signal from STM32 using OD output with 1k5 pullup. It's not perfect but definitely usable.