Skip to main content
Nicholas Yunker_2
Senior
February 16, 2022
Solved

5V Tolerant GPIO pins (STM32F030K6T6)

  • February 16, 2022
  • 4 replies
  • 10627 views

I am interfacing a 5V PWM signal with an STM32F030K6T6 MCU using PB0. According to the datasheet this pin is 5V Tolerant. In the past, regardless of a pin's "tolerance" to 5V I have always used a level shifter to change this 5V signal to a 3.3V signal before it gets to the MCU; "Just to be safe". This application I am trying to limit the number of parts on the PCB for both size and cost reasons. Testing on a Nucleo board seems to work and the MCU seems to tolerate this well, but for long term use in the field is it better to run this signal through a level shifter or does it not matter since the pin is "5V Tolerant"?

Best answer by Peter BENSCH

As long as you operate the GPIO as a digital input and switch off its pull-up and pull-down, it can process 5V signals.

Does it answer your question?

Regards

/Peter

4 replies

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
February 16, 2022

As long as you operate the GPIO as a digital input and switch off its pull-up and pull-down, it can process 5V signals.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Visitor II
September 27, 2023

I am totally confused. According to DS5792 Rev 13, page 89, note 1:

FT = Five-volt tolerant. In order to sustain a voltage higher than VDD+0.3 the internal pull-up/pull-down resistors must be disabled.

This is opposite to what you said.

Visitor II
September 27, 2023

Sorry, you were right by "switch off", which means disable.

TDK
February 16, 2022

The chip needs to be powered in order to be 5V tolerant, but if you can guarantee the chip won't see 5V unless it's powered, there are no issues.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Nicholas Yunker_2
Senior
February 16, 2022

Yes, this answers my question. I am not using any internal pull up or pull down resistor on this pin. It is only being setup as a GPIO Input in external interrupt mode:

0693W00000JQ4AmQAL.png0693W00000JQ4AhQAL.png

Nicholas Yunker_2
Senior
February 16, 2022

the 5V signal won't damage the MCU over time?

Peter BENSCH
Technical Moderator
February 16, 2022

No.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Uwe Bonnes
Chief
February 16, 2022

As long as the device is powered while 5 V applies!