Author Topic: Implementation for 5V tolerance on 3.3V MCU GPIO?  (Read 4529 times)

0 Members and 1 Guest are viewing this topic.

Offline bxhTopic starter

  • Contributor
  • Posts: 32
  • Country: gb
Implementation for 5V tolerance on 3.3V MCU GPIO?
« on: January 08, 2016, 02:24:42 am »
I've seen several IO pins on some devices which are 5V tolerant, and never really thought too much about it until now..

I have a rough understanding of how diodes are commonly used to protect IO pins from over/undervoltage, but how is 5V tolerance actually implemented without having too much of an effect on the capabilities of the IO pins?

If for some reason I wanted to make one of the 3.3V GPIO pins (on a development board let's say) 5V tolerant using external components, how could/should I achieve it?
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 18111
  • Country: 00
Re: Implementation for 5V tolerance on 3.3V MCU GPIO?
« Reply #1 on: January 08, 2016, 02:32:09 am »
Put a resistor in front of the clamping diode to limit the current that can pass through that diode to something it can handle.

If the pin needs high-current output capability then you need an extra MOSFET to bypass the resistor when the pin is in output mode.
« Last Edit: January 08, 2016, 02:35:03 am by Fungus »
 

Offline station240

  • Supporter
  • ****
  • Posts: 967
  • Country: au
Re: Implementation for 5V tolerance on 3.3V MCU GPIO?
« Reply #2 on: January 08, 2016, 05:50:33 am »
I did find this page on how to interface the RPi with 5V IO devices.
http://tansi.info/rp/interfacing5v.html
Pretty much sums up the various circuits I'd use anyway.
Of note are the sparkfun level converters, remember their stuff is opens source hardware, so you can use it in your own designs.

If you're going to make an entire 8 bit port 5V tolerant, there are proper level converter chips that would be more practical to solder in.
 

Offline chicken

  • Frequent Contributor
  • **
  • Posts: 262
  • Country: us
  • Rusty Coder
Re: Implementation for 5V tolerance on 3.3V MCU GPIO?
« Reply #3 on: January 08, 2016, 06:27:35 am »
Here's an app note from TI that discusses  several options to implement level conversion for 3.3V MCUs:
http://www.ti.com/lit/an/slaa148/slaa148.pdf
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->