esd protectionpcb designtvs diodeelectronicsfailure analysis

ESD Protection PCB: Protect Exposed Pins From Static

The Boss Factory9 min read

A board can pass every bench test and still fail the first time someone plugs in a cable or touches a button. The honest answer is to protect the pins that leave the enclosure or meet a person, not to scatter protection diodes across every net.

Why exposed connections fail in service

A static discharge is a short, fast event with high voltage and limited total energy. Its danger comes from the rise time and current density at a tiny semiconductor structure, not from the amount of energy alone. A finger, a cable shield, a metal panel, or an unpowered peripheral can put that event directly onto a GPIO, serial line, analog input, reset pin, or power entry.

The failure path is usually easy to draw after the damage occurs:

  1. The discharge enters through a connector, switch, test pad, or accessible metal part.
  2. The trace carries the pulse toward the first input structure.
  3. The pin's internal protection network conducts, often through a path that was not designed to absorb repeated external events.
  4. The input oxide, junction, bond wire, or nearby supply structure is damaged or partially degraded.
  5. The board either fails immediately or develops an intermittent fault that appears after more handling.

A partially damaged input is especially hard to diagnose. It may still read a logic level at room temperature, then leak enough current to upset an ADC, hold a bus low, trigger a reset, or fail only while another device is connected.

Connections that leave the enclosure or are touched during use are where protection earns its cost. That includes user buttons with long external wires, programming headers left accessible, USB and network connectors, sensor leads, motor-control terminals, and any conductive fastener connected to a signal.

An internal-only circuit is different. If a pin stays inside a closed enclosure, has no cable leaving the assembly, and is not exposed during normal service, adding a dedicated ESD part to it usually fixes a problem the design does not have. Good grounding, short return paths, controlled assembly handling, and the chip's built-in input structures may be enough. Do not confuse factory handling precautions with a requirement for a diode on every internal net.

What a protection diode actually does

A protection diode is not supposed to conduct during normal operation. It has a reverse standoff range that remains above the highest expected signal voltage. When a transient pushes the node beyond the diode's specified breakdown or clamping region, the diode conducts and diverts current into a lower-impedance return path.

A TVS diode is made for this transient duty. Its datasheet normally gives a working standoff voltage, breakdown voltage, clamping voltage at a stated pulse current, and leakage current. Those are different numbers. Select the standoff voltage above the signal's real maximum, then verify that the clamping voltage remains below the protected input's absolute maximum at the relevant pulse current.

The TVS part must also have a short path to the return node. A protection component connected with a long, narrow trace can leave enough inductance between the connector and the diode that the pin sees the first voltage spike anyway. Put the TVS beside the entry point, route the transient current directly to chassis or the intended ground return, and keep the protected trace downstream of that branch.

For a bidirectional signal such as USB data or RS-485, use a protection array specified for the interface. A generic unidirectional diode can clamp one polarity incorrectly or add too much capacitance. For a single-ended GPIO, a unidirectional or bidirectional device may work, depending on the negative excursion, signal range, and the input's absolute maximum ratings.

The protection network is a system, not one part

A TVS diode alone does not guarantee a safe pin. The cable, connector, ground plane, series impedance, enclosure, and source power all determine where the discharge current goes.

A small series resistor is often the cheapest useful addition on a slow GPIO or switch input. It limits current into the pin's internal clamps and, with the pin capacitance, forms a low-pass filter. Its value is limited by input threshold, rise-time requirements, pull-up current, and any communication protocol. It is not a substitute for a TVS at a connector carrying a serious transient.

For a connector with a fast data signal, added capacitance is the trade-off that decides the part. A TVS with excessive capacitance can close an eye diagram, slow an edge, or distort an analog measurement even though it clamps well. Check the interface's maximum data rate and the protection array's capacitance under the specified conditions rather than choosing by package size.

For power entry, protect the supply rail with a device rated for the rail's normal tolerance and expected surge. A 5 V rail that can reach its regulator's permitted maximum needs a different standoff choice from a nominal 5 V logic signal with a tight tolerance. Also check whether the TVS can survive the available supply current during a sustained overvoltage. A part intended for a brief ESD pulse is not automatically a crowbar for a reversed or overvoltage supply.

Interface choiceNormal signal toleranceTransient pathMain failure modeAdded cost per part
Bare exposed GPIONo extra margin beyond the input ratingChip's internal clampsPin leakage, latch-up, or dead inputLowest
Series resistor at GPIOMust preserve logic threshold and edge timeLimits current into internal clampsResistor too large for timing, or pulse energy still reaches the pinLow
Low-capacitance TVS at connectorMust stay below the interface's capacitance and voltage limitsDiverts the pulse before the long tracePoor return layout or excessive capacitanceLow to moderate
TVS plus resistor or common-mode networkMust meet both signal timing and voltage limitsShares current between external and internal pathsWrong topology, added distortion, or unsuitable clamping voltageModerate

We would use the least complicated network that gives a measured current path away from the silicon. For a short, slow button lead, a resistor and sensible layout may be enough. For a cable leaving the enclosure, a connector-side TVS is the default choice. Spending on a more elaborate common-mode filter for an internal button is usually wasted effort.

Layout changes prevent more failures than part swapping

The layout has to make the protected route physically obvious:

  • Place the TVS between the connector pin and the rest of the circuit, not at the far end of the trace beside the microcontroller.
  • Keep the connector-to-TVS trace short and wide enough for the expected pulse path.
  • Give the TVS a short, low-inductance return to the reference plane or designated chassis path.
  • Keep the unprotected section away from sensitive clocks, reset traces, crystal nodes, and analog inputs.
  • Avoid routing an exposed signal through several board layers before it reaches its clamp.
  • Separate dirty cable return current from quiet analog and reference returns where the enclosure and grounding scheme allow it.
  • Check the enclosure material and fasteners. A conductive panel can become the discharge entry point even if the signal connector is recessed.

Grounding needs a deliberate decision. If the product has a shield or chassis reference, a connector shield and a signal TVS may need different return paths. If there is no chassis reference, the discharge may be forced into the digital ground plane and then into the power system. That can still protect the pin while resetting the processor, so test for system-level effects rather than checking only whether the input survived.

Do not rely on a schematic review alone. Inspect the current path in the board editor, then check it on the assembled enclosure. Cable strain can move a connector, a mounting screw can contact a trace, and a painted or coated panel can insulate a shield that the schematic assumes is bonded.

How to test the design before release

Start with the limits from the actual chip and interface datasheets. Record the normal maximum and minimum voltage, absolute maximum pin voltage, input leakage, signal frequency, and the protection device's standoff, clamping, and capacitance values. Do not use the nominal logic voltage as the only selection criterion.

Then test the assembled system in its service configuration. Connect the real cable length, use the real enclosure, and exercise powered and unpowered states. ESD behavior can change when a cable is attached to a second grounded device.

A useful test sequence is:

  1. Verify the signal at the protected pin during normal operation.
  2. Inspect the connector-to-TVS and TVS-to-return paths for unwanted inductance or shared sensitive routes.
  3. Apply the applicable ESD test level with the product assembled, using the required test method for the product class.
  4. Watch for resets, communication errors, ADC shifts, changed leakage, and delayed recovery, not just permanent damage.
  5. Repeat after handling the enclosure and cables in the same way a user will.

If the board fails, measure where the disturbance first appears. Moving the TVS closer to the connector often fixes a layout problem; changing to a higher-rated diode does not. If the signal itself is distorted, reduce capacitance or revise the series impedance before adding more components.

Frequently asked questions

Do all GPIO pins need a TVS diode?

No. Protect GPIO pins that are reachable, connected to external wiring, or exposed through a service interface. An internal-only GPIO in a closed enclosure usually does not need a dedicated TVS if its layout and handling controls are sound.

Can a TVS diode replace the microcontroller's internal ESD protection?

No. It reduces the pulse that reaches the pin, while the internal structure remains the last line of defense. The external device must be selected and routed so its clamping voltage and leakage stay within the pin's specified limits.

Where should a TVS diode go on a cable input?

Place it immediately after the connector, with the shortest practical path to the intended return, and route the protected signal from that point toward the circuit. Putting it beside the microcontroller leaves the cable and most of the trace unprotected.

The Boss Factory builds this kind of work to order in Custom Electronics & Smart Systems and Design & Product Development; request it here.

Have a project in mind?

Tell us what you want built — we reply within 24–48 hours.

Request a quote
ESD Protection PCB: Protect Exposed Pins From Static | The Boss Factory