Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A ESD USB Shield Connection & Filtering

Your question is impossible to answer without carefully looking at the layout and schematic. However, from gut feel and experience, this smells like poor grounding design. Common mistakes: Not a...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
#3: Post edited by user avatar Olin Lathrop‭ · 2020-12-17T16:08:24Z (over 3 years ago)
  • Your question is impossible to answer without carefully looking at the layout and schematic.
  • However, from gut feel and experience, this smells like poor grounding design. Common mistakes:<ol>
  • <p><li>Not a single board-wide master ground plane.
  • <p><li>Too many large islands in the ground plane. The metric of how broken up a ground plane is, is the longest dimension of any hole, not the number of holes. Lots of little holes with ground plane flowing around them is better than the same area in a single hole. That's even worse if that large hole is long and thin (large maximum dimension relative to its area).
  • <p><li>Bypass caps not right up against the power and ground pins they are connected to.
  • <p><li>The ground return of a bypass cap running across the master ground plane instead of locally connecting to the ground pin of the part it is bypassing. Bypass caps shunt high frequency currents generated by the chip they are bypassing. If you run that current across the ground plane, you don't have a ground plane anymore but a center-fed patch antenna.
  • Maybe you don't care about the small amount of extra radiation, but antennas always work both ways. A better antenna also makes the circuit more susceptible to incoming radiation, like that broad band EMP of a static discharge.
  • <p><li>Sensitive or high-impedance traces not properly handled. A good example is the reset line of a CMOS microcontroller. One little glitch can really ruin your day. You want to make sure that the line is held solidly high during normal operation. This means a decent pullup, possibly with a small cap to ground. If the line has to run across the board, like possibly to a programming header, then consider what it runs next to and what cross-talk it might pick up. In noise situations, a <i>little</i> filtering close to the micro might be in order. That might interfere with programming though. You have to look at this issue carefully.
  • </ol>
  • <hr>
  • <blockquote> Your no 4 is fascinating. So, do you say that the cap should be connected to the ground pin of the part, and this later not connected to the the master ground, or do you say that the cap should be connected very close to the ground pin of the part, while this later may be connected to the master ground.</blockquote>
  • The latter. The chip still needs to be connected to ground solidly.
  • The bypass cap also needs to be connected solidly between the chip's power and ground pins. The point I was making is that the current thru the bypass cap should not run across the ground plane. Keep the nasty high frequency currents local and with a small loop area.
  • A good way to achieve this is to place and route the bypass cap connections so there with as short and straight traces as reasonably possible. Then put a via close to the ground pin so that the pin is connected to the board-wide ground. Since this via is a single-point connection, the loop current thru the chip and the bypass cap don't flow thru the via. The via is for the lower frequency power supply return current (after the bypass cap has shunted the high frequency current), and the general return currents from signals and the like.
  • Your question is impossible to answer without carefully looking at the layout and schematic.
  • However, from gut feel and experience, this smells like poor grounding design. Common mistakes:<ol>
  • <p><li>Not a single board-wide master ground plane.
  • <p><li>Too many large islands in the ground plane. The metric of how broken up a ground plane is, is the longest dimension of any hole, not the number of holes. Lots of little holes with ground plane flowing around them is better than the same area in a single hole. That's even worse if that large hole is long and thin (large maximum dimension relative to its area).
  • <p><li>Bypass caps not right up against the power and ground pins they are connected to.
  • <p><li>The ground return of a bypass cap running across the master ground plane instead of locally connecting to the ground pin of the part it is bypassing. Bypass caps shunt high frequency currents generated by the chip they are bypassing. If you run that current across the ground plane, you don't have a ground plane anymore but a center-fed patch antenna.
  • Maybe you don't care about the small amount of extra radiation, but antennas always work both ways. A better antenna also makes the circuit more susceptible to incoming radiation, like that broad band EMP of a static discharge.
  • <p><li>Sensitive or high-impedance traces not properly handled. A good example is the reset line of a CMOS microcontroller. One little glitch can really ruin your day. You want to make sure that the line is held solidly high during normal operation. This means a decent pullup, possibly with a small cap to ground. If the line has to run across the board, like possibly to a programming header, then consider what it runs next to and what cross-talk it might pick up. In noise situations, a <i>little</i> filtering close to the micro might be in order. That might interfere with programming though. You have to look at this issue carefully.
  • </ol>
  • <hr>
  • <blockquote>Curious that you mention bypass caps in the context of ESD, since a discharge is a extreme spike event, unlike the average EMI. To what extent do they help against ESD, aren't they generally far too slow, compared to TVS diodes etc?</blockquote>
  • Proper bypass capacitors are fast. Their impedance at high frequency is more important than their bulk storage properties. This is why relatively small values like 100 nF work well for bypassing, although they would be useless as bulk capacitance back at the supply, even though that would put them between the exact same two nets.
  • In the frequency domain, chips look like high frequency current sources between their power and ground pins. The purpose of a bypass cap is to shunt that current to keep it local and the loop small. When done right with proper layout (see #4 above), this keeps the high frequency currents off the much larger loop from the power supply, thru the chip, and back.
  • I once specified a particular model of 100 pF cap for bypassing a RF chip. After digging thru a bunch of ceramic capacitor datasheets, I found this cap to have lower impedance at the RF frequency than others, even though most of those others had significantly higher capacitance.
  • All real-world capacitors stop acting like capacitors above some frequency. Since bypass caps deal with high frequencies, they need to still work like capacitors at those frequencies. In our real world with real engineering tradeoffs, that usually means small ceramic caps up to 1 &micro;F, and often lower. The 100 &micro;F to multiple mF caps on the power supply are to store significant energy. They would be useless, however, for bypassing.
  • Take a look at a datasheet for a 100 &micro;F electrolytic and a 1 &micro;F ceramic. Compare the impedance versus frequency graphs. The 100 &micro;F starts out with 100 times lower impedance, but quickly hits its minimum point with the impedance going back up after that. Note that the 1 &micro;F ceramic keeps going lower in impedance, inversely proportional to the frequency over a much wider frequency range. The result is that the 1 &micro;F has lower impedance to those frequencies that a bypass capacitor needs to address.
  • <hr>
  • <blockquote> Your no 4 is fascinating. So, do you say that the cap should be connected to the ground pin of the part, and this later not connected to the the master ground, or do you say that the cap should be connected very close to the ground pin of the part, while this later may be connected to the master ground.</blockquote>
  • The latter. The chip still needs to be connected to ground solidly.
  • The bypass cap also needs to be connected solidly between the chip's power and ground pins. The point I was making is that the current thru the bypass cap should not run across the ground plane. Keep the nasty high frequency currents local and with a small loop area.
  • A good way to achieve this is to place and route the bypass cap connections with as short and straight traces as reasonably possible. Then put a via close to the ground pin so that the pin is connected to the board-wide ground. Since this via is a single-point connection, the loop current thru the chip and the bypass cap don't flow thru the via. The via is for the lower frequency power supply return current (after the bypass cap has shunted the high frequency current), and the general return currents from signals and the like.
#2: Post edited by user avatar Olin Lathrop‭ · 2020-12-17T15:49:31Z (over 3 years ago)
  • Your question is impossible to answer without carefully looking at the layout and schematic.
  • However, from gut feel and experience, this smells like poor grounding design. Common mistakes:<ol>
  • <p><li>Not a single board-wide master ground plane.
  • <p><li>Too many large islands in the ground plane. The metric of how broken up a ground plane is, is the longest dimension of any hole, not the number of holes. Lots of little holes with ground plane flowing around them is better than the same area in a single hole. That's even worse if that large hole is long and thin (large maximum dimension relative to its area).
  • <p><li>Bypass caps not right up against the power and ground pins they are connected to.
  • <p><li>The ground return of a bypass cap running across the master ground plane instead of locally connecting to the ground pin of the part it is bypassing. Bypass caps shunt high frequency currents generated by the chip they are bypassing. If you run that current across the ground plane, you don't have a ground plane anymore but a center-fed patch antenna.
  • Maybe you don't care about the small amount of extra radiation, but antennas always work both ways. A better antenna also makes the circuit more susceptible to incoming radiation, like that broad band EMP of a static discharge.
  • <p><li>Sensitive or high-impedance traces not properly handled. A good example is the reset line of a CMOS microcontroller. One little glitch can really ruin your day. You want to make sure that the line is held solidly high during normal operation. This means a decent pullup, possibly with a small cap to ground. If the line has to run across the board, like possibly to a programming header, then consider what it runs next to and what cross-talk it might pick up. In noise situations, a <i>little</i> filtering close to the micro might be in order. That might interfere with programming though. You have to look at this issue carefully.
  • </ol>
  • Your question is impossible to answer without carefully looking at the layout and schematic.
  • However, from gut feel and experience, this smells like poor grounding design. Common mistakes:<ol>
  • <p><li>Not a single board-wide master ground plane.
  • <p><li>Too many large islands in the ground plane. The metric of how broken up a ground plane is, is the longest dimension of any hole, not the number of holes. Lots of little holes with ground plane flowing around them is better than the same area in a single hole. That's even worse if that large hole is long and thin (large maximum dimension relative to its area).
  • <p><li>Bypass caps not right up against the power and ground pins they are connected to.
  • <p><li>The ground return of a bypass cap running across the master ground plane instead of locally connecting to the ground pin of the part it is bypassing. Bypass caps shunt high frequency currents generated by the chip they are bypassing. If you run that current across the ground plane, you don't have a ground plane anymore but a center-fed patch antenna.
  • Maybe you don't care about the small amount of extra radiation, but antennas always work both ways. A better antenna also makes the circuit more susceptible to incoming radiation, like that broad band EMP of a static discharge.
  • <p><li>Sensitive or high-impedance traces not properly handled. A good example is the reset line of a CMOS microcontroller. One little glitch can really ruin your day. You want to make sure that the line is held solidly high during normal operation. This means a decent pullup, possibly with a small cap to ground. If the line has to run across the board, like possibly to a programming header, then consider what it runs next to and what cross-talk it might pick up. In noise situations, a <i>little</i> filtering close to the micro might be in order. That might interfere with programming though. You have to look at this issue carefully.
  • </ol>
  • <hr>
  • <blockquote> Your no 4 is fascinating. So, do you say that the cap should be connected to the ground pin of the part, and this later not connected to the the master ground, or do you say that the cap should be connected very close to the ground pin of the part, while this later may be connected to the master ground.</blockquote>
  • The latter. The chip still needs to be connected to ground solidly.
  • The bypass cap also needs to be connected solidly between the chip's power and ground pins. The point I was making is that the current thru the bypass cap should not run across the ground plane. Keep the nasty high frequency currents local and with a small loop area.
  • A good way to achieve this is to place and route the bypass cap connections so there with as short and straight traces as reasonably possible. Then put a via close to the ground pin so that the pin is connected to the board-wide ground. Since this via is a single-point connection, the loop current thru the chip and the bypass cap don't flow thru the via. The via is for the lower frequency power supply return current (after the bypass cap has shunted the high frequency current), and the general return currents from signals and the like.
#1: Initial revision by user avatar Olin Lathrop‭ · 2020-12-16T15:31:35Z (over 3 years ago)
Your question is impossible to answer without carefully looking at the layout and schematic.

However, from gut feel and experience, this smells like poor grounding design.  Common mistakes:<ol>

<p><li>Not a single board-wide master ground plane.

<p><li>Too many large islands in the ground plane.  The metric of how broken up a ground plane is, is the longest dimension of any hole, not the number of holes.  Lots of little holes with ground plane flowing around them is better than the same area in a single hole.  That's even worse if that large hole is long and thin (large maximum dimension relative to its area).

<p><li>Bypass caps not right up against the power and ground pins they are connected to.

<p><li>The ground return of a bypass cap running across the master ground plane instead of locally connecting to the ground pin of the part it is bypassing.  Bypass caps shunt high frequency currents generated by the chip they are bypassing.  If you run that current across the ground plane, you don't have a ground plane anymore but a center-fed patch antenna.

Maybe you don't care about the small amount of extra radiation, but antennas always work both ways.  A better antenna also makes the circuit more susceptible to incoming radiation, like that broad band EMP of a static discharge.

<p><li>Sensitive or high-impedance traces not properly handled.  A good example is the reset line of a CMOS microcontroller.  One little glitch can really ruin your day.  You want to make sure that the line is held solidly high during normal operation.  This means a decent pullup, possibly with a small cap to ground.  If the line has to run across the board, like possibly to a programming header, then consider what it runs next to and what cross-talk it might pick up.  In noise situations, a <i>little</i> filtering close to the micro might be in order.  That might interfere with programming though.  You have to look at this issue carefully.

</ol>