Author Topic: Protecting Inputs and Outputs in Digital Electronics  (Read 20653 times)

0 Members and 1 Guest are viewing this topic.

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #25 on: June 28, 2016, 06:50:59 pm »
A nice gotcha with RS485 is the common mode range, particularly if there is a long cable in play with significant current flow, a 60M cable with a 6A DC supply doing remote battery charging for example had me because the screen formed the return and could put the data link outside the common mode range due the IR drop (How we laughed, the other end was 30M underwater).

If you're using RS485, do take a close look at the datasheet.  Notice the CM range is outside the supply rails -- receivers have internal divider resistors to sense the line.  If you are adding TVS diodes to such an input, don't make the mistake of using unidirectional, say 5.0V parts!  6-12V bidirectional is better.  Too low a clamp voltage and you ruin the CM range, making things worse!

Most receivers also boast a modest ESD rating themselves, so external protection isn't necessary in many cases.  When it is, it's usually because of surge, or excessive ground offset; in which case, a fully isolated receiver may be a better idea.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #26 on: June 28, 2016, 07:57:53 pm »
Yep, but this was shifting the ground voltage to be outside the +12 -> -7 range that RS485 does, we swore copiously.

Ended up that we could finesse it with a pair of L pads inside the plug, halved the signal level but put the signal within the common mode range, and at 9600bps level was not a problem.

Regards, Dan.
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7377
  • Country: nl
  • Current job: ATEX product design
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #27 on: June 28, 2016, 09:32:56 pm »
Yep, but this was shifting the ground voltage to be outside the +12 -> -7 range that RS485 does, we swore copiously.

Ended up that we could finesse it with a pair of L pads inside the plug, halved the signal level but put the signal within the common mode range, and at 9600bps level was not a problem.

Regards, Dan.
That means you had more than 7V voltage drop on the cable. Almost no matter how you look at it: that is a lot. It is not the electronics problem, but the electrical guy deciding on the cable.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #28 on: June 29, 2016, 09:57:59 am »
Actually it was more of a need to re use an existing cable design, and the reworked electronics had a charger that actually worked properly.....
Sometimes when you are redoing an existing system you have to work within some constraints.

The fact they changed the max cable length from 20M to 100M did not exactly help matters.....

Regards, Dan.
 

Offline Gavin Melville

  • Contributor
  • Posts: 28
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #29 on: July 02, 2016, 10:01:45 am »
I work with simply awful noise in industrial environments. If it's only 4kv transients on DC supply rails I'm having a good day.   In the end all interfacing is via light. Opto isolators work well, but my standard goto interface is 1mm low cost fibre, which between perfect isolation and low bandwidth keeps noise where it should be.   Is it expensive, of course. 

TVS type diodes need careful design. The turn on is just too slow, often msec.  Even small ones start clamping after 10usec.

I did get caught recently - LT makes a nice transient stopper, lt4363.  Good idea, but if there are so many transients it never turns on then it isn't much use. Perhaps better on well behaved noise.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #30 on: July 02, 2016, 09:00:55 pm »
TVS type diodes need careful design. The turn on is just too slow, often msec.  Even small ones start clamping after 10usec.

Surely you mean thyristor type..?

Avalanche TVS diodes break down essentially instantaneously (sub 1ns), so that lead inductance dominates their performance.

TVS diodes in forward bias are either "normal" or "fast" recovery; I'm not sure what.  (I've never seen it in a datasheet, and I don't see any info over a selection of SPICE models, except for bog-standard zeners where they all are given the same token value "TT=50.1n").  In any case, forward and reverse recovery won't be more than a few microseconds, even for the highest voltage devices; you just can't make silicon worse than that.

So they're certainly good for surge, no matter how you use them.  As long as they're used right, because of that inductance thing, which is especially dominant for fast transients (EFT and ESD).

In contrast, thyristor type TVS turn on when the voltage is changing rapidly, or at a peak voltage (they still clamp like regular avalanche TVSs).  Turn-on takes some us, but clamping voltage is quite low, even at high currents.  They're good for clamping surges on signal lines and (non mains) AC power lines (since, they'll remain on if supplied by DC).

Quote
I did get caught recently - LT makes a nice transient stopper, lt4363.  Good idea, but if there are so many transients it never turns on then it isn't much use. Perhaps better on well behaved noise.

Hmm, with response on the order of 5us, it would only be just barely helpful with IEC 61000-4-5 surge (8/20us), but quite suitable for telecoms surge (10/1000us) and load dump.  Which is likely the intended application.  It's useless for anything faster, including ESD and EFT.

Its internal design likely uses a charge pump, so that the turn-on charging / recovery time is rather slow (ms?).  It would be a poor choice for extremely intensive environments.

Have you considered using a Big Fuckin' Inductor(tm)?  If you've got that much density of surges, it sounds like you're inside a switching converter!  Might as well harness what you can...  An inductor is big and pricey, but won't ever fail.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #31 on: July 02, 2016, 10:48:39 pm »
Another question, I will have to expose 12 bidirectional I/O to the outside world, 3.3v in, and 1.8-12.5v out, wondering if there are any good approaches for this, each pins direction will need to be independent and should ideally survive short to ground or short to 32v, (while being capable of 30mA)
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #32 on: July 02, 2016, 11:36:52 pm »
Not too hard, but sounds interesting if you need particular capabilities (why is it 1.8-12.5, is it analog output? adjustable digital '1'?), or a lot of them while packing it into a tight space!

Got any budget for the design?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #33 on: July 03, 2016, 12:47:18 am »
Digital 1 at that voltage. 0 is ground, in essence I am making a diagnostic tool, which will involve talking to devices in the 1.8-5v families while being able to kick out 9-12.5v high voltage programming pulses on 6 of those pins to cover all use cases, budget is ~ $60 for the base hardware for that function, lets say $110 cap, excluding voltage regulators, as it will be used by others in the feild, it will have to survive but not necessarily work when shorted to 32v or ground on any given I/o, each pin should have 12-35mA sink/source to be safe

So essentially level shifting and protection
« Last Edit: July 03, 2016, 01:02:42 am by Rerouter »
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #34 on: January 29, 2017, 01:24:28 pm »
I am still puzzled about the ESD protection for non-edge programming/debugging/expansion connectors.

From my perspective, every interface on the PCB board should be protected for ESD protection.
Also all the non-edge connectors that don't reside on the edge but in the middle of the PCB board.

Such as programming and debugging connectors (JTAG, ISP).

And peripheral expansion connectors (SPI, I2C).

And connectors that directly interface with the main processor (Feature connectors).

Eventually the PCB board will be mounted in a box, where only the edge connectors come out.

But even then, one needs to open the box in the field once in a while, to connect a cable to the non-edge connector on the inside, and can touch the connector with his finger during that operation (meaning that ESD risk is also here present).

Maybe these non-edge internal connectors don't need the same level of ESD protection as the edge connectors, but at least some basic protection would be helpful.

Would a TVS diode work on all of these connectors (JTAG, ISP, SPI, I2C, Feature connector)?

Or would that interfer with the JTAG/ISP/SPI/I2C signals/bandwidth/protocol?

What solution would work best to have good ESD protection, and at the same time don't interfer with the signals/bandwidth/protocol?

I am looking for a solution that provides ESD protection to non-edge connectors, whereby the programming/debugging/expansion features still work the same as before without ESD protection.

Could any expert out here please advice? I am working towards a dead-line on a project, and need this input asap.

N.B: I have heard stories from some people, that ESD protection on a non-edge connector in the middle of a PCB board, is not very wise, as that would mean that the spike is disposed through the ground plane, and has to travel all the way from the inside of the PCB board to the outside. Basically meaning that it would harm more with actual ESD protection, than without, in the event of a spike. Is that really true? I would like to have a better understanding about this explanation with spikes being disposed through the ground plane.
« Last Edit: January 29, 2017, 01:30:06 pm by pascal_sweden »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #35 on: January 29, 2017, 02:27:33 pm »
From my perspective, every interface on the PCB board should be protected for ESD protection.
Also all the non-edge connectors that don't reside on the edge but in the middle of the PCB board.

Meh. ESD is a risk item.

Getting field failures from ESD strikes in the middle of the board?  Tell the end users not to stick their grubby ape-fingers on it without basic ESD precautions! ;)

Once it's in the box, protected from access by errant appendages, the protection components are no longer necessary.

PCs haven't seemed to have much trouble with this -- amateur builders are comfortable following ESD precautions.  (Well... whether or not they're necessarily even doing the right thing, but it helps that modern semiconductors are fairly robust, too.)

Quote
Would a TVS diode work on all of these connectors (JTAG, ISP, SPI, I2C, Feature connector)?

There's certainly nothing wrong with it, and I've done it before, for all of the above.  The hardest to protect are: anything with really oddball voltage or current requirements (usually only for specialized test equipment, like scope inputs or electrometers, where the protection can be customized anyway), or anything at stupendously high speed (USB2+, PCIe, etc.), which technically shouldn't need ESD protection anyway because of the excellent connector design (USB, IEEE-1394, eSATA, HDMI..), or precautions in use (PCIe is usually for internal board-to-board connections, not hotplugging; though it can be extended on cables, or used for hot-plugging in server situations).

Quote
Or would that interfer with the JTAG/ISP/SPI/I2C signals/bandwidth/protocol?

All of those are slow enough not to worry, and reside within their supply voltage range -- you can use a boring dumb zener, or a diode pair, to handle that no problem.

The capacitance might even help out with RFI, which is a related concern.

Quote
What solution would work best to have good ESD protection, and at the same time don't interfer with the signals/bandwidth/protocol?

I am looking for a solution that provides ESD protection to non-edge connectors, whereby the programming/debugging/expansion features still work the same as before without ESD protection.

Could any expert out here please advice? I am working towards a dead-line on a project, and need this input asap.

N.B: I have heard stories from some people, that ESD protection on a non-edge connector in the middle of a PCB board, is not very wise, as that would mean that the spike is disposed through the ground plane, and has to travel all the way from the inside of the PCB board to the outside. Basically meaning that it would harm more with actual ESD protection, than without, in the event of a spike. Is that really true? I would like to have a better understanding about this explanation with spikes being disposed through the ground plane.

The point of a ground plane is to shunt currents and fields around the components.  As long as the fields couple well with the traces themselves, it's fine: it acts like a Faraday cage.  ESD striking the middle of a board will couple into modest length traces, enough to upset logic values, or trigger the ESD protection circuits of ICs.  A poorly designed board might behave quite badly, like the cheap old hardware that was made with two layers of traces going every which way, and no ground plane: it's no better than a jumble of wires in air, and pretty much every single one will get a substantial fraction of a nearby ESD pulse coupled into it (hundreds of volts worth).

Still, I can't see why adding TVS diodes wouldn't help, assuming the board is designed to at least work on its own, and isn't an intentionally designed pathological case, like say, looping the TVS diode's return path completely around the board before hitting the main ground connection...

So, is this an add-on thing to an existing board?  Or a new design?  If you'd like some review or consultation, I'd be happy to take a look.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Online wraper

  • Supporter
  • ****
  • Posts: 16862
  • Country: lv
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #36 on: January 29, 2017, 02:40:37 pm »
There's certainly nothing wrong with it, and I've done it before, for all of the above.  The hardest to protect are: anything with really oddball voltage or current requirements (usually only for specialized test equipment, like scope inputs or electrometers, where the protection can be customized anyway), or anything at stupendously high speed (USB2+, PCIe, etc.), which technically shouldn't need ESD protection anyway because of the excellent connector design (USB, IEEE-1394, eSATA, HDMI..)
I repaired many hundreds of Raspberry pi2, and there are tons of them with one HDMI line blown out. Likely not because of ESD as such but because of hot plugging and Y caps in SMPS. And probably crappy Chinese HDMI cable which often have connector shell not connected to anything. Low speed USB devices like mouses and keyboards don't require any shield at all, and often there is none.
« Last Edit: January 29, 2017, 02:53:40 pm by wraper »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #37 on: January 29, 2017, 05:03:29 pm »
I repaired many hundreds of Raspberry pi2,

Wait, who the hell would ever pay to have something so cheap repaired? ???

Quote
and there are tons of them with one HDMI line blown out. Likely not because of ESD as such but because of hot plugging and Y caps in SMPS. And probably crappy Chinese HDMI cable which often have connector shell not connected to anything. Low speed USB devices like mouses and keyboards don't require any shield at all, and often there is none.

Good points!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Online wraper

  • Supporter
  • ****
  • Posts: 16862
  • Country: lv
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #38 on: January 29, 2017, 07:30:12 pm »
I repaired many hundreds of Raspberry pi2,

Wait, who the hell would ever pay to have something so cheap repaired? ???
I bought them for cheap and repairs are fast to do (with my throughput optimized process  :)). I can do around 50-60 pieces per day in average. So it pays off well enough.
« Last Edit: January 29, 2017, 07:40:19 pm by wraper »
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #39 on: February 09, 2017, 06:52:44 pm »
N.B: I have heard stories from some people, that ESD protection on a non-edge connector in the middle of a PCB board, is not very wise, as that would mean that the spike is disposed through the ground plane, and has to travel all the way from the inside of the PCB board to the outside. Basically meaning that it would harm more with actual ESD protection, than without, in the event of a spike. Is that really true? I would like to have a better understanding about this explanation with spikes being disposed through the ground plane.

The picture in attachment illustrates the issue with ESD protection for non-edge connectors.

Isn't there any way to solve this problem? I would like to have ESD protection for non-edge connectors, while at the same time not be confronted with the problem as illustrated in the picture.
« Last Edit: February 14, 2017, 12:42:01 am by pascal_sweden »
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #40 on: February 14, 2017, 12:45:07 am »
How to avoid the traveling of a glitch through the entire ground plane when using ESD protection for non-edge connectors in the middle of a PCB board?

Any pointers from experienced PCB board designers?

It's hard to believe for me that there really is no solution for this.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #41 on: February 14, 2017, 08:34:46 am »
Have you read this thread?  You've received many answers already...

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #42 on: February 15, 2017, 01:50:50 pm »
The point of a ground plane is to shunt currents and fields around the components.  As long as the fields couple well with the traces themselves, it's fine: it acts like a Faraday cage.  ESD striking the middle of a board will couple into modest length traces, enough to upset logic values, or trigger the ESD protection circuits of ICs.  A poorly designed board might behave quite badly, like the cheap old hardware that was made with two layers of traces going every which way, and no ground plane: it's no better than a jumble of wires in air, and pretty much every single one will get a substantial fraction of a nearby ESD pulse coupled into it (hundreds of volts worth).

Still, I can't see why adding TVS diodes wouldn't help, assuming the board is designed to at least work on its own, and isn't an intentionally designed pathological case, like say, looping the TVS diode's return path completely around the board before hitting the main ground connection...

This makes me conclude that ESD protection can be added on non-edge connectors, as long as the ground plane architecture meets a good standard?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #43 on: February 15, 2017, 05:04:20 pm »
Fine with me!
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #44 on: February 27, 2017, 07:37:32 pm »
ESD protection on non-edge connectors it will be :)

JTAG, ISP, SPI, I2C, Feature connector that brings out processor pins
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #45 on: March 10, 2017, 02:28:03 pm »
Feedback which I got from my electronic design partner in India:

"Faraday cage is a concept of EMI not ESD. This cage is created by ground stitch as shown in the picture. It'll help other portion components not to get affected from EMI from it's neighboring portion. 

For ESD what best we can do make it 4 layer board and add a ground layer in inner layer bottom of top layer and stitch vias as much as possible so that return path will be less I think so."

See attached picture.
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: no
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #46 on: March 10, 2017, 03:43:25 pm »
I was searching the Internet today, and found out about this Industry Council regarding ESD.

Never heard about them before. But it seems a very good initiative and good source, and I therefore wanted to share here :)

Industry Council on ESD Target Levels:
http://www.esdindustrycouncil.org/ic/en/about

There is a lot of good and free documents there:
http://www.esdindustrycouncil.org/ic/en/documents

Especially White Paper 3 - Part I and Part II:
http://www.esdindustrycouncil.org/ic/en/documents/7-white-paper-3-system-level-esd-part-i-common-misconceptions-and-recommended-basic-approaches

http://www.esdindustrycouncil.org/ic/en/documents/36-white-paper-3-system-level-esd-part-ii-effective-esd-robust-designs

In that White Paper 3 - Part II, they also refer to a good source about EMC from the Ford Motor Company:

"In addition to protection strategies for the individual pins of an ECU, the board level design (especially the layout of ground planes) has significant influence on the system level ESD and EMC properties. Ford has published a good introductory guideline document entitled “EMC Design Guide for Printed Circuit Boards” which is available from www.fordemc.com."

Overview of EMC documents from Ford:
http://www.fordemc.com/docs/Downloads.htm

EMC Design Guide from Ford:
http://www.fordemc.com/docs/download/EMC%20Design%20Guide%20for%20PCB.pdf
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Protecting Inputs and Outputs in Digital Electronics
« Reply #47 on: March 10, 2017, 05:13:36 pm »
ESD is EMI.  It's considerably more powerful than most conventional sources!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf