Electrical – MCU Input Protection

circuit-protectioninputmicrocontroller

I am working on a simple protection circuit for an I/O pin on an MCU. The device will be 3v battery powered. The MCU's I/O pin has a voltage tolerance of (GND – .6V) to (Vdd + .6V).

  1. Pull-to-ground Digital Input (Pulse Signals)
  2. Digital 24Vdc Input (from a thermostat)
  3. High-Frequency 24V Counter
  4. Pull-to-ground Serial Input (1200 baud – 9600 baud rates)

On the MCU will be an internal setting that will be used to decide what type of signal to look for and process, so this input circuit will just need to make sure that the MCU's I/O pin is protected no matter the input type (listed above).

Here is another one of my posts explaining my first attempts. The below circuit is a modification of the one recommended by @Jeroen3.

schematic

simulate this circuit – Schematic created using CircuitLab

So far the simulations look pretty good. Here is a voltage sweep of 0V-24V:

enter image description here

Frequency responses also look pretty good.

Does anyone have any experience with a similar circuit, suggestions, or can spot possible issues?

Best Answer

Your circuit is way over-designed. Try something simpler, like this plain diode limiter

enter image description here

The 5-ms-like bursts are NOT high-frequency by any means. If you can afford 10k series resistor (R1), the above circuit will serve all your cases.

If you don't like having +4 V on MCU input, reduce the reference 3.3V voltage to 2.5V rail. Or use Schottky diodes. The capacitor C1, if placed in close proximity to the diodes, will also protect your inputs from any ESD.