cancel
Showing results for 
Search instead for 
Did you mean: 

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

jbg
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Super User

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

View solution in original post

6 REPLIES 6
KnarfB
Super User

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

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

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

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

 

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gbm
Principal

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