77

How should I route USB Connector shield on PCB? Should it be connected to GND plane right where USB is placed, or should the shield be isolated from GND, or should it be connected to ground through ESD protection chip, high resistance resistor or fuse?

PS. Should I put the shield connections on schematic, or just route it on PCB?

Passerby
  • 72,580
  • 7
  • 90
  • 202
Andrzej H
  • 975
  • 1
  • 8
  • 7
  • 1
    I've seen all three, in commercial products. :/ Yes, put it in the schematic. Why not? :) – endolith Sep 24 '10 at 21:49
  • 2
    The answers gave some good references for connecting to the circuit. I'd tend to think of the shield as an extension to the Faraday cage and make sure it connects as tightly as possible/sensible to the surrounding cage (enclosure). That way the electronics will be inside the shield in the device (enclosure), cable (shield) and host (enclosure) end without gaps. Does this seem sensible? – XTL Oct 19 '10 at 06:12
  • 2
    Only remaining concern are ground loops. – Vorac Aug 01 '12 at 10:40

13 Answers13

32

For the shield to be effective, it requires as low impedance connection as possible to your shield ground. I think those recommending resistors, or not connecting it to ground at all, or strictly talking about your digital logic ground, and assuming you have a separate shield ground. If you have a metal enclosure, this will be your shield ground. At some point, your digital ground must connect to your shield ground. For EMI reasons, this single point should be close to your I/O area. This means it's best to place your USB connector with any other I/O connectors around one section of the board and locate your shield to logic ground point at that location. There are some exceptions to the single point, rule, if you have a solid metal enclosure without any apertures, for example, multiple connection points can be helpful. In any case, at shield to circuit ground connection, some may recommend using a resistor or capacitor (or both) but rarely is there a reasonable reason to do this. You want a low inductance connection between the two to provide a path for common mode noise. Why divert noise though parasitic capacitance (e.g. radiate it out into the environment)? The only reason usually given for such tactics is to prevent ground loops, but you're talking about USB, ground loops most likely won't be an issue for most USB applications. Granted, such tactics will prevent ground loops, but they will also rend your shielding all but ineffective.

bt2
  • 3,784
  • 2
  • 25
  • 28
  • Do you have sources or recommendations on further reading? – bjoekeldude Feb 18 '21 at 17:14
  • Can you expand on this “ You want a low inductance connection between the two to provide a path for common mode noise.” a little? If I understand what you wrote, you’re talking about connecting chassis to gnd — it how does a low inductance connection achieve a path for common mode noise ? – jrive Apr 07 '22 at 23:41
29

Herny Ott discusses this in his book, "Electromagnetic Compatibility Engineering". You need to look at it from the bigger picture. IE, what is the shield doing?

For low frequency signals, the shield is used to protect the signal being transfered. You want to avoid power line/AM/FM radio signals to couple into your signal because it will interfere with normal operations. Therefore you must not tie the GND on both ends. Ground loops will cause small noises to couple into your signal, therefore the ground loop must be broken. This does not mean that you leave the shield hanging. You should tie the shield of the cable, to your enclosure, and if needed (as in the case of coax), you can tie the ground of your circuit to this same point. You want to use single point grounding as much as possible for low frequency for the above reasons.

However, for high frequency signals, the opposite is true. They are usually digital signals at very high frequencies. Even if some noise did get coupled, the digital nature of the electronics as well as filtering should easily maintain normal operations. You want to reduce the emissions of the data signals, NOT protect it from radiation. For this reason, the lowest impedance path should be connected to shield at BOTH ends. Yes, there will be ground loops, and noise will get coupled in, but it won't matter. In the case of high frequency, multipoint ground is prefered.

7

Check to see if the manufacturer of your USB chip specs out what you should use. I'm pretty sure Cypress recommends a 1M resistor and 4.7nf cap connecting the shield to ground. The two shield holes should be connected with a very large trace (I believe they suggested 100 mils?)

ajs410
  • 8,381
  • 5
  • 35
  • 42
  • 5
    A chip datasheet is not a good source for that type of information. Just ask yourself: Would it matter if you used another manufacturers chip? You need to look at the bigger picture - like if you plan to use a Faraday cage type shield around your board etc. – Rolf Ostergaard Nov 07 '13 at 16:23
  • 11
    I disagree. You should ALWAYS read your chip's datasheet to determine what the manufacturer recommends. If you use another manufacturer's chip, read that manufacturer's datasheet. However, in principal, the shielding should be the same for most projects - USB spec recommends that the shield is connected securely to ground at the host, not the device, hence the recommended AC coupling by Cypress. If you know enough about shielding that you're incorporating a Faraday cage around your board, you're probably not asking for help on this stackexchange... – ajs410 Nov 08 '13 at 20:12
  • 2
    If the device is so simple that the USB chip vendor's chip performance drives the overall EMC profile, then sure, what they have tried and suggested may be OK. But those are the most trivial of cases. Usually the USB aspect is a tiny fraction of the overall device, and its EMC performance (or lack thereof) has other drivers. In such case, whatever the USB "chip" vendor proposes doesn't directly apply. The truth is that the USB standard has really screwed things up for everyone with the dual differential and single ended signaling. Those USB problems don't exist with e.g. HDMI or LCD LVDS. – Kuba hasn't forgotten Monica Aug 23 '20 at 21:58
7

Possibly conflicting guidelines:

USB Type-C spec:

The receptacle shell shall be connected to the PCB ground plane.

[But connected through what?]

Cypress Guide to a Successful EZ-USB®FX2LP™ Hardware Design (formerly High-speed USB PCB Layout Recommendations):

  • Connect the SHIELD connection to GND through a resistor. This helps isolate it and reduces EMI and RFI emissions. Keep this resistor close to the USB connector. Some experimentation may be necessary to obtain the correct value.
  • Provide a plane for the USB shield on the signal layer adjacent to the VCC plane that is no larger than the USB header.

Intel EMI Design Guidelines for USB Components:

The principal challenge of full speed device EMI compliance is preventing high frequency energy from coupling to the shield.

Full speed devices use a shielded cable which requires that the connector shell be tied to the ground plane. It is important to note that a ground plane does not behave like an equipotential surface at high frequencies. The location of the connector shell’s termination to the Gnd plane is critical. The connection needs to be made to the quietest area of the ground plane to prevent noise from the ground plane from coupling to the shield...

etc.

Google for "USB guidelines"

endolith
  • 28,494
  • 23
  • 117
  • 181
2

I based a project on a design spec calling for a 33k resistor connecting the USB shield to the ground plane. It was a project for ham radio, so conveniently my circuit board was placed in proximity to a sensitive EMI detector!

In my case I had to remove the 33k resistor and short the USB shield directly to the ground plane of my PCB to clear up the EMI.

Don
  • 29
  • 1
1

The danger of directly connecting your shield to ground is that if two devices have "grounds" at different potentials and there is significant DC current capability from those sources, this connection could serve as a fuse between the two power systems.

Remember that a capacitor is nearly a dead short at its resonant frequency and generally conducts at a fairly broad band around that frequency, so a capacitor between the shield ground and the system ground is often the needed compromise.

I design automotive databus communications and some standards require that only one device connects the shield directly to ground and the rest of the devices must do this through a series RC. An automotive databus is significantly lower speed than USB 2.0, but the risks should be similar. USB 3.0 might be difficult to correctly maintain without solid shield connections, though. That (5 to 10GHz) is out of the scope of my current design experience.

Walt
  • 21
  • 1
1

The shield shouldn't be grounded. It is grounded at the host end, of course.

Leon Heller
  • 38,774
  • 2
  • 60
  • 96
  • 2
    If you leave the device end of the shield floating, I'm pretty sure you just made a huge antenna. – ajs410 Sep 24 '10 at 21:51
  • 1
    Disagree with the effect (giant antenna) and the reasoning (you're not guaranteed that the motherboard manufacturer wouldn't have used the same logic: "It is grounded at the device end, so we won't bother") – Kevin Vermeer Sep 24 '10 at 23:18
  • So you're telling me that what amounts to a six foot wire connected only to the PC isn't going to radiate all kinds of RF EMI? – ajs410 Sep 27 '10 at 16:49
  • 2
    Shields should be connected at one single place to ground, otherwise you will create ground loop. Note app notes referenced in other answers recommend connecting shield through significant resistor (for that exactly reason). I would not go as far to recommend having it not connecting mainly beacouse of hot-plugging reasons. – mazurnification Nov 20 '10 at 17:37
  • 7
    USB uses a 4 conductor cable, one of them being ground, so you're not going to avoid ground loops by leaving the shield unconnected. – bt2 Mar 02 '11 at 00:18
  • I don’t think an antenna would be created if the shield is left unconnected at the device end. There should be any current the on the shield… – jrive Apr 07 '22 at 23:49
  • What if someone connects your device with an unshielded cable? Then your shielding, not being tied to ground, is rendered completely useless, is it not? – Marek Aug 10 '23 at 05:01
0

I have designed several boards and always used FTDI chip (FT245R). The datasheet clearly indicates the shield must be connected to GND. The same GND of chip which is the Ground of PCB!

  • 2
    You could improve this answer a lot by saying where it's mentioned in the datasheet or copying a paragraph or two from it. It's a reasonbly long document and after a quick look the only mention of the shield I could find was a schematic showing it not connected anywhere. – PeterJ Oct 18 '14 at 07:47
  • **No. Incorrect. -1.** The [FT245R datasheet](http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT245R.pdf) unclearly indicates that the shield should not be connected on the slave side. Please turn to figures 7.1, 7.2, 7.3, 7.4, 8.1 in the datasheet. These figures don't show a connection between the shield and signal ground. SHIELD and GND are separate nets. Neither the connectione of the shield is mentioned anywhere in text. – Nick Alexeev Oct 23 '14 at 17:22
  • Besides, the shield connection is probably outside of the scope of the datasheet for something like FT245R. EMI can vary from one design/application/situation to another, so the shielding scheme may vary too. – Nick Alexeev Oct 23 '14 at 17:23
0

Not olny the EMI is the problem. You have to know that any time you connect the cable to the connector you get an ESD discharge puls. This is dangerous for the electronics. So I would never connect the usb shild direct to ground.

Ciril
  • 17
  • 1
0

Well, since it appears we need another answer, I'll put in my vote for grounding it through an ESD protection chip, like the USBLC6. It's worked well for me on several projects - No apparent destruction of components through ESD, and no issues with data integrity. I feel that it would be at least a little suspicious if STmicroelectronics manufactures such a chip, and is aware that a resistor, capacitor, or short to ground would be just as good.

I don't know if this success is because it's the right thing to do, or just dumb luck. Given the wide variety of responses, I'd be tempted to say that no one does.

At work, we tie Ethernet jacks straight to ground. AFAIK, this is the same as the issue at hand, even though the Ethernet cable carries no ground signal. It seems to work, and was decided by someone with more experience than myself.

Kevin Vermeer
  • 19,989
  • 8
  • 57
  • 102
  • 4
    That chip is intended to protect the D+/D- lines, not the shield. – Connor Wolf Oct 18 '14 at 08:24
  • 1
    The use of this chip has to do with USB data and power line ESD protection. It doesn't force you to connect the shield in any particular way, and thus has nothing much to do with the question itself. You still have to decide how to connect the shield! – Kuba hasn't forgotten Monica Aug 23 '20 at 20:08
0

I use a resistor between 10K and 50K. IIRC I saw a value of 33K in an FTDI application note.

I would put all connections on the schematic.

markrages
  • 19,905
  • 7
  • 59
  • 96
jluciani
  • 11,646
  • 1
  • 34
  • 54
0

I think ESD protection chip and thicker tracks with more than 100 mil between shield and ground would be a good choice.

Also more stitching around the shield provides a Faraday cage to the noise.

SamGibson
  • 17,231
  • 5
  • 37
  • 58
0

See EMI and USB which recommends grounding both ends to prevent EMI transmissions at the frequencies used for USB data transmission.

SiegeX
  • 526
  • 2
  • 6
  • 21