How to terminate D+/D- of USB 2.0? - Page 1
Forum section: electronics / beginners

author: Bambur
author_rank: Regular Contributor
timestamp: April 07, 2011, 11:43:48 am
content: I am designing a PCB with PIC18F2553 and looking for a proper way to terminate USB D+/D- lines. Could someone suggest a solution for this problem? Thanks!

author: neoone
author_rank: Regular Contributor
timestamp: April 07, 2011, 11:50:39 am
content: It will probably work without any termination likehere.

author: metalphreak
author_rank: Frequent Contributor
timestamp: April 07, 2011, 02:21:11 pm
content: I've used a direct connection on both the PIC18F2550 and 18F4550 without any issues (~100 boards in use).I don't think microchip specifies anything in their documents either. I think everything is handled internally in the chip. I have seen on other (non PIC) products where they use an inline resistor for protection though.

author: DavidDLC
author_rank: Frequent Contributor
timestamp: April 07, 2011, 04:44:39 pm
content: Just try to have the traces as short as possible and with ground planes around them, also try not to cross any other fast changing signal traces on the other side of the board (if you have two layer board).

author: Bambur
author_rank: Regular Contributor
timestamp: April 08, 2011, 11:08:12 am
content: Thanks for the replies to everyone!Indeed, I have noticed that cheap PIC development boards do not have any terminating resistors on the D+/D- lines, but I can see those on professional boards, however. Hence, I am not so convinced that those are not needed really. I will try to research this subject further and post an update when I find something. More opinions are welcome of course.

author: johnmx
author_rank: Frequent Contributor
timestamp: April 09, 2011, 12:05:40 am
content: You can use ESD protection diodes. I use the PRTR5V0U2X:http://www.nxp.com/documents/data_sheet/PRTR5V0U2X.pdf

author: scrat
author_rank: Frequent Contributor
timestamp: April 11, 2011, 01:49:13 pm
content: Devices like PIC18f2550 are already terminated on the chip for full speed (see p.378 of the datasheet).The datasheet for the PIC18F2553 is quite short, and doesn't report series impedance on the USB lines (I don't know why it is completely different from most others).

author: Bambur
author_rank: Regular Contributor
timestamp: April 14, 2011, 01:12:42 pm
content: Quote from: scrat on April 11, 2011, 01:49:13 pmThanks! Indeed, the datasheet for PIC18F2455/2550/4455/4550 lists the driver output impedance.TABLE 28-4: USB MODULE SPECIFICATIONSD320 ZOUT Driver Output Impedance 28 — 44 ?Why is there such a large range of impedance? Is it supply voltage Vdd dependent?It seems to me it is a good idea to add a series resistor to D+ and D- lines to (over)match each line to 45 ? as USB specifies.

author: scrat
author_rank: Frequent Contributor
timestamp: April 14, 2011, 01:53:33 pm
content: That's what I was saying: there is no relative data for the device you were considering (PIC18F2553).I guess the 28-44 range is compliant with the USB specs, otherwise they should have recommended a series resistance. FWIK, parameters spreading and its variability with Vdd/temperature is quite common in integrated devices (I expect it being especially high for low resistance values), usually the thing that remains accurate is the matching ratio between the single transistors inside the same IC, which is the way they ensure precise gains.

author: Clear as mud
author_rank: Regular Contributor
timestamp: March 22, 2014, 01:53:20 pm
content: Thank you for this topic. I was running around like a Chicken Little, thinking the sky was falling because I hadn't provided termination resistors on my PIC18F24K50 development board, but it's right there in thedatasheet, on page 475. It saysQuoteSo, I suppose this means I should take out the filter beads that I already put on the USB data lines?Also, what about ESD protection diodes? Still recommended, I suppose.I think the 28-44 ohm range you were wondering about comes from the USB specification itself. SeeFairchild Application Note 5052, where it saysQuote

author: Clear as mud
author_rank: Regular Contributor
timestamp: March 22, 2014, 04:28:08 pm
content: Oh, duh. The filter beads are on the power and ground, not the data lines. So, that answers that question. I actually misrepresented this design, in that it was my girlfriend's design, not mine. So that's why I didn't realize what the filter beads were connected to.So, this seems to be the correct way to implement the USB hardware: data lines straight from USB connector to PIC microcontroller, with no passive components at all in between because it is already in the USB module in the PIC. Filter beads on power and ground, Possibly a capacitor on the connector shell to ground, or possibly a resistor or a solid connection, based on whatever reduces EMI the most. And some ESD protection diodes on the data lines. That's what I'm going to do.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: March 22, 2014, 08:54:30 pm
content: Although you could use a common mode choke if you still want some filtering. Make sure to use a high bandwidth "data" type, otherwise you'll probably lose as much  signal as noise!Tim