2023-12-19 9:31 PM
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 ..
Solved! Go to Solution.
2023-12-19 10:54 PM - edited 2023-12-20 5:49 AM
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
2023-12-19 10:54 PM - edited 2023-12-20 5:49 AM
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
2023-12-20 3:19 AM
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. :)
2025-07-31 7:41 AM - edited 2025-07-31 7:42 AM
Hi. Can you explain a little why a level translator is not needed for a 5V LCD?
2025-07-31 8:18 AM
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
2025-07-31 8:44 AM
Check VOL/VOH (Voltage Out Low / High) for MCU
Check VIL/VIH (Voltage In Low/High) for LCD
3.3V may be sufficiently high to register as being high to the peripheral you're attaching too, and not need to be at Rail levels.
You could also use GPIO outputs on the STM32 side in OD (Open Drain), with pull-up to 5V, for signals that aren't particularly fast, ie couple of MHz
A lot of the industry moved to 3.3V about 3 decades ago, perhaps pick a display which is more compatible?
What display part?
A lot of parts may take a higher voltage which they regulate down, and the interface levels are lower.
2025-08-04 10:36 PM
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.