Author Topic: Advice routing a differential pair  (Read 776 times)

0 Members and 1 Guest are viewing this topic.

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 175
  • Country: it
Advice routing a differential pair
« on: April 21, 2024, 04:46:37 pm »
I have this conundrum: USB to serial converter max 2 M baud, D+ and D- on the connector and on the chip have swapped position and so I have following options

1) turn around, as I did here, is it better to match lengths as I did here (even at the cost of having some tracts going in opposite direction), or I couldn't care less?

2) use a couple vias

3) put the IC on the bottom side (I'll do it only if I must).

« Last Edit: April 21, 2024, 05:25:58 pm by uliano »
 

Offline TrickyNekro

  • Frequent Contributor
  • **
  • Posts: 263
  • Country: gr
  • Drinking Frappé on the way to Isomnia!
    • Youtube channel, electronics and more ;-)
Re: Advice routing a differential pair
« Reply #1 on: April 21, 2024, 05:29:36 pm »
If you can put your IC a bit higher to have straight lines going to it.

At these speeds and and distances the difference between the length of the traces is negligible.

The speed of the Serial port is not important, what is important is the speed of the USB connection, which
I would assume that it is full speed and not high speed.

At the end, if you are so concerned with trace length matching, then put the IC pependicular to the connector and
not parallel, like it is now.

I would be much more concerned to have ESD protection, if it is not provided by the converter IC,
termination resistors if not provided by the IC and a common mode choke for the lines if you have to pass
emissions test ( not always needed but it helps with conducted ).
If you are an engineer and you are not tired...
You are doing it wrong!
 
The following users thanked this post: uliano

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11600
  • Country: ch
Re: Advice routing a differential pair
« Reply #2 on: April 21, 2024, 05:53:18 pm »
You could do a simpler routing like in the sketch below in green. The yellow shows how you could route length matching if you really want to, but it won’t matter at this scale. TrickyNekro’s recommendation to add ESD protection is extremely good advice.
 
The following users thanked this post: uliano

Offline wraper

  • Supporter
  • ****
  • Posts: 16883
  • Country: lv
Re: Advice routing a differential pair
« Reply #3 on: April 21, 2024, 05:55:04 pm »
Rotate IC by 90o and don't bother with routing traces between the pads. Or keep rotation as is and run D- with minimum length around D+ pin and wiggle D+ trace for length match. Not that it really matters for LS/FS USB modes to begin with, you could not bother with length match and it still would work fine.
« Last Edit: April 21, 2024, 06:01:17 pm by wraper »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11277
  • Country: us
    • Personal site
Re: Advice routing a differential pair
« Reply #4 on: April 21, 2024, 06:34:40 pm »
Don't bother with length matching and differential stuff for USB 2.0. On a short distance like this it does not make any difference. For LS/FS is so does not matter that you can route one of the traces around the perimeter of the board and you will not see a difference.
Alex
 
The following users thanked this post: uliano

Offline JustMeHere

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: us
Re: Advice routing a differential pair
« Reply #5 on: April 21, 2024, 06:46:31 pm »
Don't worry about the length match.  It's more important to keep the traces as close together as possible.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11600
  • Country: ch
Re: Advice routing a differential pair
« Reply #6 on: April 21, 2024, 06:50:45 pm »
Don't worry about the length match.  It's more important to keep the traces as close together as possible.
Um, no.

Though it is completely irrelevant for such a short distance of USB 1.1/2.0 Full Speed (which is what a serial bridge chip will use), what you need for longer runs is proper impedance, which means calculating a specific trace width and spacing for a given thickness of dielectric (prepreg) to the ground layer below. Properly configured, the PCB layout software will then run the USB differential pair as an impedance-controlled pair, keeping their distance exactly right as you route it.
 

Offline MathWizard

  • Super Contributor
  • ***
  • Posts: 1441
  • Country: ca
Re: Advice routing a differential pair
« Reply #7 on: April 21, 2024, 07:01:52 pm »
I haven't  tired USB from a microcontroller on a breadboard or protoboard yet, but I guess that won't be very fast speed, so it should be ok, well I'll know soon enough.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11600
  • Country: ch
Re: Advice routing a differential pair
« Reply #8 on: April 21, 2024, 07:13:31 pm »
I haven't  tired USB from a microcontroller on a breadboard or protoboard yet, but I guess that won't be very fast speed, so it should be ok, well I'll know soon enough.
It’ll be 12Mbps regardless of what serial baud rate you use. So some care is needed.
 

Offline JustMeHere

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: us
Re: Advice routing a differential pair
« Reply #9 on: April 21, 2024, 07:19:01 pm »
Don't worry about the length match.  It's more important to keep the traces as close together as possible.
Um, no.

Though it is completely irrelevant for such a short distance of USB 1.1/2.0 Full Speed (which is what a serial bridge chip will use), what you need for longer runs is proper impedance, which means calculating a specific trace width and spacing for a given thickness of dielectric (prepreg) to the ground layer below. Properly configured, the PCB layout software will then run the USB differential pair as an impedance-controlled pair, keeping their distance exactly right as you route it.

Are you saying that increasing loop area doesn't slow down propagation and doesn't increase EMI?
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11600
  • Country: ch
Re: Advice routing a differential pair
« Reply #10 on: April 21, 2024, 07:24:02 pm »
Don't worry about the length match.  It's more important to keep the traces as close together as possible.
Um, no.

Though it is completely irrelevant for such a short distance of USB 1.1/2.0 Full Speed (which is what a serial bridge chip will use), what you need for longer runs is proper impedance, which means calculating a specific trace width and spacing for a given thickness of dielectric (prepreg) to the ground layer below. Properly configured, the PCB layout software will then run the USB differential pair as an impedance-controlled pair, keeping their distance exactly right as you route it.

Are you saying that increasing loop area doesn't slow down propagation and doesn't increase EMI?
Did you see me say any of that? Nope.

But “as close as possible” is incorrect. And so is running the two traces separately, which I never said. That would be very much not impedance-controlled, of course.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11277
  • Country: us
    • Personal site
Re: Advice routing a differential pair
« Reply #11 on: April 21, 2024, 07:26:18 pm »
Are you saying that increasing loop area doesn't slow down propagation and doesn't increase EMI?
It does, but you won't see a practical difference at FS speeds. It is really hard to screw up USB FS. You really need to go out of your way.

Every time a talk about impedance matching for USB 2.0 comes up, I remember that in old PC cases USB connectors were on the rear panels that went to the motherboard via ribbon cable and standard 0.1" connectors. In conditions like this bother with impedance matching 1/2" of PCB traces is just not necessary.

This is like audiophiles with oxygen free copper power cables that they plug into their 1930s aluminum wiring.
Alex
 

Offline JustMeHere

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: us
Re: Advice routing a differential pair
« Reply #12 on: April 21, 2024, 07:43:52 pm »
Are you saying that increasing loop area doesn't slow down propagation and doesn't increase EMI?
It does, but you won't see a practical difference at FS speeds. It is really hard to screw up USB FS. You really need to go out of your way.

Every time a talk about impedance matching for USB 2.0 comes up, I remember that in old PC cases USB connectors were on the rear panels that went to the motherboard via ribbon cable and standard 0.1" connectors. In conditions like this bother with impedance matching 1/2" of PCB traces is just not necessary.

This is like audiophiles with oxygen free copper power cables that they plug into their 1930s aluminum wiring.
I get it.  This is too small to care.  But the extra bump added to help match distances in the OP isn't doing as much good as it could be doing bad.  It really just shouldn't be there.
 

Offline JustMeHere

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: us
Re: Advice routing a differential pair
« Reply #13 on: April 22, 2024, 02:07:38 am »
Don't worry about the length match.  It's more important to keep the traces as close together as possible.
Um, no.

Though it is completely irrelevant for such a short distance of USB 1.1/2.0 Full Speed (which is what a serial bridge chip will use), what you need for longer runs is proper impedance, which means calculating a specific trace width and spacing for a given thickness of dielectric (prepreg) to the ground layer below. Properly configured, the PCB layout software will then run the USB differential pair as an impedance-controlled pair, keeping their distance exactly right as you route it.

Are you saying that increasing loop area doesn't slow down propagation and doesn't increase EMI?
Did you see me say any of that? Nope.

But “as close as possible” is incorrect. And so is running the two traces separately, which I never said. That would be very much not impedance-controlled, of course.

Yes.  Right after you had to show your usual useless negative attitude with that "um no" crap.  Quit trolling it's never appreciated.


 That extra bump in the pair will create more noise than it matches impedance.  Does it matter in this case? Probably not. Should it have been added: no.. 

« Last Edit: April 22, 2024, 02:31:28 am by JustMeHere »
 

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 175
  • Country: it
Re: Advice routing a differential pair
« Reply #14 on: April 22, 2024, 02:40:27 am »
Lots of take home here, thanks.

Even if in this particular case length doesn't matter, for the sake of exercise I took the advice of some and came up with this, which is at least much more aesthetically pleasing.

About ESD, in this specific case I'm not worried at all: it's just a proto board for my own use and I, unfortunaltley for most reasons but luckily for my CMOS devices, I live in a region where 60% humidiy is an extremely dry day. However that could be the occasion to learn something.

What should I have used here? TVS?
« Last Edit: April 22, 2024, 03:58:53 am by uliano »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11277
  • Country: us
    • Personal site
Re: Advice routing a differential pair
« Reply #15 on: April 22, 2024, 03:05:16 am »
And now that you've done the exercise, straighten the trace, so it does not look like it was routed by the same person routing Pi Pico.
« Last Edit: April 22, 2024, 04:21:03 am by ataradov »
Alex
 

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 175
  • Country: it
Re: Advice routing a differential pair
« Reply #16 on: April 22, 2024, 03:54:03 am »
 :-DD

yessir!
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11600
  • Country: ch
Re: Advice routing a differential pair
« Reply #17 on: April 22, 2024, 05:47:37 pm »
Yes.  Right after you had to show your usual useless negative attitude with that "um no" crap.  Quit trolling it's never appreciated.
It’s not “negative attitude” and it’s not trolling, it’s just correcting factually incorrect statements. If you don’t want to be contradicted, then don’t say things that are incorrect.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf