Use voltage regulator instead of zener to protect GPIO

gpiovoltage-regulatorzener

I've read several articles about protecting 3.3v GPIOs from unregulated over voltage, all of which involve using a zener diode, a diode for reverse protection and resistors in some fashion. example 1 example 2

What I'm wondering is why I couldn't instead use a voltage regulator and get some of the benefits of thermal overload protection and reverse current protection all built into one IC. To me using a voltage regulator seems to be much more robust way of protecting the GPIOs with just one component and without having to get into logic levers or more complex solutions with many more components.

Here is the voltage regulator I'm considering using knowing that my typical input voltage is <9V and typical current well beneath 100mA.

I'm I thinking about this correctly or is something in my logic flawed?

Thank you

Scott

Best Answer

Assuming you're trying to protect an input (the outside world connects to the LDO input).. it does not provide protection against input voltages below ground. Absolute maximum input voltage is -0.3V.

It might work with a series Schottky diode, say for +/-30V inputs, but you'd have to evaluate whether the few hundred mV loss in voltage was acceptable for normal inputs (what your \$V_{IH}\$ is vs. \$V_{OH}\$) . I don't see where thermal protection would ever come into play, either as an input or as an output. If you exceed the 30V abs. max. input voltage, the part may fail.

You're going to need something like a capacitor in series with a resistor loading the output to keep it from oscillating. That will slow down the response considerably (you may want to add a load resistor to ground as well) and the capacitor could conceivably damage the GPIO under some conditions without a series resistor (if Vdd gets crowbarred).

Once you look at one diode, LDO, 3 resistors and a ceramic capacitor per input, it doesn't look quite as clean.