Author Topic: Are these USB series resistors important?  (Read 40916 times)

0 Members and 1 Guest are viewing this topic.

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Are these USB series resistors important?
« on: February 08, 2015, 07:28:56 pm »
This diagram is from the datasheet of the LPC11U35  (USB full speed)



I tried it with and without the series 33 ohm resistors and the signals looks just the same and so is the functionality. How important is it to have those series resistors?

I am not interested in formal USB compliance, just want to thing to work reliably.
 

Offline paulie

  • Frequent Contributor
  • **
  • !
  • Posts: 849
  • Country: us
Re: Are these USB series resistors important?
« Reply #1 on: February 08, 2015, 07:44:37 pm »
In stripping down your Arm-Mini design I came to pretty much the same conclusion: excess baggage. In many cases I found 90% of circuitry superfluous. A lot of so called engineering these days would best be described as religious ritual. For example the impedance of those resistors is inconsequential compared to the relative drive characteristics of the MCU. Almost exactly the same situation with some AVR designs like USBASP. For super high speed USB with special low impedance dedicated devices it's a different story.

There are some who argue the zeners are required even for 3.3v circuits thereby demonstrating almost complete lack of understanding of how these really work.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 5424
  • Country: dk
Re: Are these USB series resistors important?
« Reply #2 on: February 08, 2015, 08:05:17 pm »
This diagram is from the datasheet of the LPC11U35  (USB full speed)



I tried it with and without the series 33 ohm resistors and the signals looks just the same and so is the functionality. How important is it to have those series resistors?

I am not interested in formal USB compliance, just want to thing to work reliably.


together with the resistance of the output drivers it forms a series termination of the ~100R differential twisted pair
probably not terrible critical, but is it worth the risk to save two resistors?

 

Offline DanielS

  • Frequent Contributor
  • **
  • Posts: 798
Re: Are these USB series resistors important?
« Reply #3 on: February 08, 2015, 08:15:12 pm »
I am not interested in formal USB compliance, just want to thing to work reliably.
If you want stuff to work reliably, you usually have to stick with reference designs. If the reference design includes 33 ohms resistors, it most likely means the chip's IO driver requires them for proper cable impedance termination. Without these resistors, you might be compromising signal integrity on the USB cable and this may translate into fussy behavior based on specific cable build quality and length - it might work fine using a cheap 2' cable but be unusable on a quality 6' cable.

If you want to test your luck, you could put the resistors on your PCB design and then use a solder bridge to see if you can get away without one. Or you could put both of the SMD resistors' pads on the same net to have a trace between pads and cut that trace if you find out you really need the resistors.
 

Online free_electron

  • Super Contributor
  • ***
  • Posts: 8753
  • Country: us
    • SiliconValleyGarage
Re: Are these USB series resistors important?
« Reply #4 on: February 08, 2015, 08:17:47 pm »
There are multiple reasons for those two resistors

1) it is bloody hard to meet the impedance on the board in terms of track width and clearance to meet the usb spec. putting these resistor directly at the pin allows for an easier way to do the pcb layout. if your stackup allows you to easily create the 90 ohms differential you don't need them. fact is most stackups with standard pre-preg material on a 4 or 6 layer board are in the 60 to 75 ohm...
tack on 22 or 33 ohm and you are there.

2) these resistor limit current for an esd strike. integrating these resistors is a no-go becasue of 1 above and because they cannot handle a lot of power nor standoff voltage in integrated form.

go read this if you want to know why and how to do it properly ( as opposed to believing in ritual )
 http://www.usb.org/developers/docs/hs_usb_pdg_r1_0.pdf
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 
The following users thanked this post: zapzapouch

Online free_electron

  • Super Contributor
  • ***
  • Posts: 8753
  • Country: us
    • SiliconValleyGarage
Re: Are these USB series resistors important?
« Reply #5 on: February 08, 2015, 08:19:06 pm »
I am not interested in formal USB compliance, just want to thing to work reliably.
If you want stuff to work reliably, you usually have to stick with reference designs. If the reference design includes 33 ohms resistors, it most likely means the chip's IO driver requires them for proper cable impedance termination. Without these resistors, you might be compromising signal integrity on the USB cable and this may translate into fussy behavior based on specific cable build quality and length - it might work fine using a cheap 2' cable but be unusable on a quality 6' cable.

If you want to test your luck, you could put the resistors on your PCB design and then use a solder bridge to see if you can get away without one. Or you could put both of the SMD resistors' pads on the same net to have a trace between pads and cut that trace if you find out you really need the resistors.

the problem is that this 'test' involves you pulling eye-patterns... most hobbyists don't have  a scope fast enough to pull that off nor do they have access to the test criteria.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline paulie

  • Frequent Contributor
  • **
  • !
  • Posts: 849
  • Country: us
Re: Are these USB series resistors important?
« Reply #6 on: February 08, 2015, 08:31:59 pm »
If you want to test your luck, you could put the resistors on your PCB design and then use a solder bridge to see if you can get away without

That's exactly what I did on one of the boards zapta sent me. Then ran it over the coals with a variety of PCs and cables. For one particularly tricky ASUS and my longest and shortest unshielded cables it worked fine so the resistors were left out of the remaining builds.

These "rituals" do serve a purpose in military, medical, etc applications but in many cases more for insurance and liability reasons than religious. This is HOBBY world guys, much as you might like to pretend otherwise.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 5424
  • Country: dk
Re: Are these USB series resistors important?
« Reply #7 on: February 08, 2015, 08:54:53 pm »
There are multiple reasons for those two resistors

1) it is bloody hard to meet the impedance on the board in terms of track width and clearance to meet the usb spec. putting these resistor directly at the pin allows for an easier way to do the pcb layout. if your stackup allows you to easily create the 90 ohms differential you don't need them. fact is most stackups with standard pre-preg material on a 4 or 6 layer board are in the 60 to 75 ohm...
tack on 22 or 33 ohm and you are there.


sticking a series resistor at the end of a transmission line does not change the impedance

but 2x33R + 2x impedance of an output  makes a roughly  ~100R termination



 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #8 on: February 08, 2015, 09:18:42 pm »
together with the resistance of the output drivers it forms a series termination of the ~100R differential twisted pair
probably not terrible critical, but is it worth the risk to save two resistors?

It's an exercise in keeping things simple.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Are these USB series resistors important?
« Reply #9 on: February 09, 2015, 07:00:57 am »
Find a way to induce noise on the USB cable, without those resistors I will think your differential information would be too degraded in the other end depending on the distance and noise picked up by the cable.

For example, if the cable runs in parallel near an AC power cable, without the proper termination your communication distance might degrade.

At least that's my understanding but I'm a noob at this.
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 24142
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Are these USB series resistors important?
« Reply #10 on: February 09, 2015, 10:41:51 am »
In stripping down your Arm-Mini design I came to pretty much the same conclusion: excess baggage. In many cases I found 90% of circuitry superfluous. A lot of so called engineering these days would best be described as religious ritual.

Translation: I don't understand why X is there, therefore there is no reason to have X there.

A very unimpressive example of the Dunning-Krueger effect.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline senso

  • Frequent Contributor
  • **
  • Posts: 953
  • Country: pt
    • My AVR tutorials
Re: Are these USB series resistors important?
« Reply #11 on: February 09, 2015, 12:35:55 pm »
But also using the "its a HOBBY" argument, a pair of resistors will cost you next to nothing, and you are paying PnP time to place them, soldering those is a 15 seconds job, and the space occupied in a pcb is irrelevant.
 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #12 on: February 09, 2015, 01:04:46 pm »
But also using the "its a HOBBY" argument, a pair of resistors will cost you next to nothing, and you are paying PnP time to place them, soldering those is a 15 seconds job, and the space occupied in a pcb is irrelevant.

It adds another SKU. Trying to keep the design simple. Only 2 resistor values.
 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #13 on: February 09, 2015, 01:11:45 pm »
1) it is bloody hard to meet the impedance on the board in terms of track width and clearance to meet the usb spec. putting these resistor directly at the pin allows for an easier way to do the pcb layout. if your stackup allows you to easily create the 90 ohms differential you don't need them. fact is most stackups with standard pre-preg material on a 4 or 6 layer board are in the 60 to 75 ohm...
tack on 22 or 33 ohm and you are there.

2) these resistor limit current for an esd strike. integrating these resistors is a no-go becasue of 1 above and because they cannot handle a lot of power nor standoff voltage in integrated form.

go read this if you want to know why and how to do it properly ( as opposed to believing in ritual )
 http://www.usb.org/developers/docs/hs_usb_pdg_r1_0.pdf

That intel document seems to focus on high speed USB (480mpbs), my board is full speed only (12mpbs). Does it matter than much in the lower speeds?
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Are these USB series resistors important?
« Reply #14 on: February 09, 2015, 01:12:49 pm »
Anyway, a proper design is by default 90% crap by the new proposed definition of "proper"  8)

So also leave out proper ESD protection and rely on the small on-chip diodes only.
« Last Edit: February 09, 2015, 01:18:14 pm by Pjotr »
 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #15 on: February 09, 2015, 03:11:01 pm »
So also leave out proper ESD protection and rely on the small on-chip diodes only.

Thanks for the suggestion.
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 24142
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Are these USB series resistors important?
« Reply #16 on: February 09, 2015, 03:21:38 pm »
Anyway, a proper design is by default 90% crap by the new proposed definition of "proper"  8)

So also leave out proper ESD protection and rely on the small on-chip diodes only.

Good joke! :)
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #17 on: February 09, 2015, 03:22:52 pm »
Anyway, a proper design is by default 90% crap by the new proposed definition of "proper"  8)

So also leave out proper ESD protection and rely on the small on-chip diodes only.

Good joke! :)

I expect mature communication here.
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Are these USB series resistors important?
« Reply #18 on: February 09, 2015, 03:53:43 pm »
Hi Zapta,

Leaving out the series resistors will probably not corrupt USB 1.1 but they are there also for EMC reasons (slew limiting) sometimes. A QAD design that works in a particular occasion is not always a good design.

There is a load of good application notes about USB implementation available on the www. So why not doing it the standard right way and as advised by the manufacturer, instead of making short cuts?
 

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: Are these USB series resistors important?
« Reply #19 on: February 09, 2015, 04:06:42 pm »
I am not interested in formal USB compliance, just want to thing to work reliably.

Definitely leave them in.

I and many others have been bitten by "hobby" designs that take shortcuts, and then spend a lot of time and effort tracking down why my board resets when the fridge turns on (or other common equipment). Turns out for the cost of a few SMDs, the problem is easily fixed, but the amount of frustration caused was ridiculous. The designer says similar thing "wanted to save money/keep it simple/didn't think it was needed".

Typically, the Chinese take these shortcuts, most of the time they get away with it, many times users get bitten.

Beginners, or even professionals, trying to develop embedded code can find it tricky at the best of times, having the CPU reset randomly does not help!

I would therefore argue for more protection on USB, rather than less. Best practice is not to connect shield directly to ground, but use an RC pair.

I also use a buffer chip like USBUF01W6, which has series resistors and 1.5k pull up built in and claims to have ample ESD protection , so replaces at least 3 components with 1. There are several other similar chips, although downside is that they are usually a quite small component if you are doing DIY.

In general, negative experience due to unreliability tends to create more of a bad rep, than simplicity can create a good rep.
Bob
"All you said is just a bunch of opinions."
 
The following users thanked this post: zapzapouch

Online free_electron

  • Super Contributor
  • ***
  • Posts: 8753
  • Country: us
    • SiliconValleyGarage
Re: Are these USB series resistors important?
« Reply #20 on: February 09, 2015, 04:16:28 pm »
Oh it's one of them 'hobby' things eh ?
Why don't you just forget about all of the rules and simy wire it up with a bunch of recycled power cords. After all, those work reliably with 10 to 15 ampere at 220 volt so surely that measly few milliamps at 3 volt of usb will be no problem

:palm:  hopeless. We are all doomed. Nobody takes pride in what they do anymore.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 
The following users thanked this post: zapzapouch

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #21 on: February 09, 2015, 04:39:59 pm »
I also use a buffer chip like USBUF01W6, which has series resistors and 1.5k pull up built in and claims to have ample ESD protection , so replaces at least 3 components with 1. There are several other similar chips, although downside is that they are usually a quite small component if you are doing DIY.

That's USBUF01W6 looks interesting except that I need to switch the 1.5k resistor. Do you know of a similar device with an open ended 1.5k resistor or even better a switched 1.5k resistor?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Are these USB series resistors important?
« Reply #22 on: February 09, 2015, 05:23:42 pm »
Hi Zapta,

Leaving out the series resistors will probably not corrupt USB 1.1 but they are there also for EMC reasons (slew limiting) sometimes. A QAD design that works in a particular occasion is not always a good design.

There is a load of good application notes about USB implementation available on the www. So why not doing it the standard right way and as advised by the manufacturer, instead of making short cuts?

Actually very little to do with EMC; that's why the shield is there, and why it's supposed to be grounded as directly as possible to the circuit ground plane.

Although the bulk of a USB packet (at 1.1 Full Speed) is balanced, the signals are essentially equivalent to 74HC CMOS drivers, and the line status / negotiation signals are explicitly unbalanced (both lines high/low, one open, etc.).  Which is a good reason not to route it as full differential -- it isn't!  Likewise, common mode chokes on the data pair won't save you much trouble.

I'm still waiting to hear what Zapta's oscilloscope bandwidth is.

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

Offline senso

  • Frequent Contributor
  • **
  • Posts: 953
  • Country: pt
    • My AVR tutorials
Re: Are these USB series resistors important?
« Reply #23 on: February 09, 2015, 06:36:01 pm »
I also use a buffer chip like USBUF01W6, which has series resistors and 1.5k pull up built in and claims to have ample ESD protection , so replaces at least 3 components with 1. There are several other similar chips, although downside is that they are usually a quite small component if you are doing DIY.

That's USBUF01W6 looks interesting except that I need to switch the 1.5k resistor. Do you know of a similar device with an open ended 1.5k resistor or even better a switched 1.5k resistor?

If the only thing really using the 3.3v then you can just use and IO pin from the micro to the 3.3v pin in the package, needs to be tested, but it might work.
 

Offline zaptaTopic starter

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
Re: Are these USB series resistors important?
« Reply #24 on: February 09, 2015, 07:43:29 pm »
I'm still waiting to hear what Zapta's oscilloscope bandwidth is.

It's an old 60Mhz tektronix DSO, similar to that batch of Military DSO's Dave scored a few months ago. I used one probe with standard earth crocodile, and look at D+ and at D- while communicating with an Apple Macbook Air notebook.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf