Skip to main content
Associate
Dec 20, 2023 5:31 AM UTC
Solved

STM 32 series microcontroller which gives 5V digital output ...

Hello all, I want to ask you that is any microcontroller in STM32 series which gives the 5V digital output .. I'm using STM32F746ZGT6, that gives 3.3V as digital output.. I want 5V digital output from microcontroller.. if somebody know then please suggest me .. 

This topic has been closed for replies.
KnarfB
KnarfBBest answer
Super User
Dec 20, 2023 6:54 AM UTC

There is none, because max. supply voltage is 3.6V. You may use a 5V tolerant output as open-drain and externally connect a pull-up resistor to 5V, or some kind of level converter. See AN4899 Application note "STM32 microcontroller GPIO hardware settings..." for details and examples. In many cases, 5V output is not needed

hth

KnarfB

6 replies

KnarfB
KnarfBBest answer
Super User
Dec 20, 2023 6:54 AM UTC

There is none, because max. supply voltage is 3.6V. You may use a 5V tolerant output as open-drain and externally connect a pull-up resistor to 5V, or some kind of level converter. See AN4899 Application note "STM32 microcontroller GPIO hardware settings..." for details and examples. In many cases, 5V output is not needed

hth

KnarfB

gbm
Super User
Dec 20, 2023 11:19 AM UTC

You may use open drain with external pullup if the output signal frequency is up to 1..3 MHz. Beyond that either use some level translator or maybe check and decide it's not needed. It's really rarely needed, for example it's not needed for interfacing with 5 V  LCD display. :)

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Explorer
Jul 31, 2025 2:41 PM UTC

Hi. Can you explain a little why a level translator is not needed for a 5V LCD? 

KnarfB
Super User
Jul 31, 2025 3:18 PM UTC

Here is a nice diagram showing what input levels Vi... are accepted in various logic families:  https://www.jsykora.info/2014/05/logic-voltage-levels/

More info in the MCU data sheet and the Application note AN4899 "STM32 microcontroller GPIO hardware settings and low-power consumption"

Of course, the devil is in the details and you should check the LCD data sheet too, before going to mass production.  

hth

KnarfB

 

gbm
Super User
Aug 5, 2025 5:36 AM UTC

According to the HD44780 data sheet, its input levels are TTL compatible when powered from 5 V. This means that logic high is recognized above 2.4 V. STM32 outputs at least 3.0 V for logic high when powered from 3.3 V.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice