Skip to main content
Associate
December 20, 2023
Solved

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

  • December 20, 2023
  • 3 replies
  • 5177 views

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 .. 

Best answer by KnarfB

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

3 replies

KnarfB
KnarfBBest answer
Super User
December 20, 2023

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
Principal
December 20, 2023

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
July 31, 2025

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

KnarfB
Super User
July 31, 2025

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
Principal
August 5, 2025

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