Skip to main content
mahmoud boroumand
Associate III
August 10, 2017
Solved

5.5 output gpio

  • August 10, 2017
  • 3 replies
  • 857 views
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.
    Best answer by Tomas DRESLER
    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
    August 10, 2017
    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
    August 10, 2017
    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
    August 10, 2017
    Posted on August 10, 2017 at 12:52

    Do you have any idea about that?