Skip to main content
mahmoud boroumand
Associate III
Aug 10, 2017 9:39 AM UTC
Solved

5.5 output gpio

Posted on August 10, 2017 at 11:39

hello 

Can i change  3,3 v Gpio output in stm32f1 to 5V ?

    This topic has been closed for replies.
    Tomas DRESLER
    Tomas DRESLERBest answer
    Associate II
    Aug 10, 2017 12:50 PM UTC
    Posted on August 10, 2017 at 12:50

    Hi Mahmoud,

     once the STM32 is supplied from 3V3, it will not generate bigger voltage on its GPIO ring.

    However, pins marked as FT (5V-tolerant) may be configured as open-drain and, if you use external pull up resistor to 5V rail, you can switch between 5V and zero. This solution has one drawback, the log. 1 output impedance is determined by the resistor size and GPIO current capability. Further the speed of toggling is reduced.

    3 replies

    Tilen MAJERLE
    ST Employee
    Aug 10, 2017 10:38 AM UTC
    Posted on August 10, 2017 at 12:38

    Hello

    Bromand.Mahmoud

    ‌,

    you cannot set output to 5V directly from STM32 using push-pull option.

    Best regards,

    Tilen.

    Tomas DRESLER
    Tomas DRESLERBest answer
    Associate II
    Aug 10, 2017 12:50 PM UTC
    Posted on August 10, 2017 at 12:50

    Hi Mahmoud,

     once the STM32 is supplied from 3V3, it will not generate bigger voltage on its GPIO ring.

    However, pins marked as FT (5V-tolerant) may be configured as open-drain and, if you use external pull up resistor to 5V rail, you can switch between 5V and zero. This solution has one drawback, the log. 1 output impedance is determined by the resistor size and GPIO current capability. Further the speed of toggling is reduced.

    mahmoud boroumand
    Associate III
    Aug 10, 2017 10:52 AM UTC
    Posted on August 10, 2017 at 12:52

    Do you have any idea about that?