Author Topic: Resistor on USB D+ and D-  (Read 6853 times)

0 Members and 1 Guest are viewing this topic.

Offline chancsTopic starter

  • Contributor
  • Posts: 24
  • Country: au
Resistor on USB D+ and D-
« on: September 27, 2019, 05:13:04 am »
I wish to use CP2102N as a USB to UART interface chip. And in the datasheet, they did not put any resistors in the USB data line. However, when I look at the Arduino UNO wifi ver2, they put 22Ohm resistors on the D+ and D- line. What is the purpose of these 2 resistors? To limit current in case of high voltage spike?

843506-0
Arduino UNO wifi ver2


843510-1
CP2102N Datasheet
 

Offline chancsTopic starter

  • Contributor
  • Posts: 24
  • Country: au
Re: Resistor on USB D+ and D-
« Reply #1 on: September 27, 2019, 05:51:04 am »
"The Universal Serial Bus function controller in the CP2102N is a USB 2.0 compliant full-speed device with integrated transceiver and
on-chip matching and pull-up resistors." Quote from the datasheet.

They didn't explicitly say impedance matching. But is that what you meant?
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Re: Resistor on USB D+ and D-
« Reply #2 on: September 27, 2019, 06:13:43 am »
These resistors also usually help save the chip from blowing up if 5V shorts to any of the data lines(Like a damaged connector or cable)
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 8218
  • Country: nl
  • Current job: ATEX product design
Re: Resistor on USB D+ and D-
« Reply #3 on: September 27, 2019, 09:12:15 am »
FYI, any Arduino is NOT a good source to learn best design practices. Or OSHW for that matter. They copy stuff from each other, without really understanding what is going on. For example it is possible that you need the resistors for FTDI, say FT232D and they just copy it and use it for the FT232H, which doesnt need it, and then it is copied by a chinese engineer, who replaces it with a CP2102N, because it is 5 cent cheaper than the FT232H... And so on.
The difference is that everyone can tell apart a shoddy shed and a proper house, but it takes a bit of insight to spot bad electronics design.
 

Offline chancsTopic starter

  • Contributor
  • Posts: 24
  • Country: au
Re: Resistor on USB D+ and D-
« Reply #4 on: September 27, 2019, 02:29:09 pm »
FYI, any Arduino is NOT a good source to learn best design practices. Or OSHW for that matter. They copy stuff from each other, without really understanding what is going on. For example it is possible that you need the resistors for FTDI, say FT232D and they just copy it and use it for the FT232H, which doesnt need it, and then it is copied by a chinese engineer, who replaces it with a CP2102N, because it is 5 cent cheaper than the FT232H... And so on.
The difference is that everyone can tell apart a shoddy shed and a proper house, but it takes a bit of insight to spot bad electronics design.

How about dev board schematic provided by the vendor, like this one (https://www.silabs.com/documents/public/schematic-files/CP2102N-MiniEK-schematic.pdf). I suppose vendor knows what they are doing.
 

Offline mbless

  • Regular Contributor
  • *
  • Posts: 227
  • Country: 00
Re: Resistor on USB D+ and D-
« Reply #5 on: September 27, 2019, 02:45:05 pm »
How about dev board schematic provided by the vendor, like this one (https://www.silabs.com/documents/public/schematic-files/CP2102N-MiniEK-schematic.pdf). I suppose vendor knows what they are doing.

That's fine. SiLabs is the chip manufacturer, so they're just applying their datasheet guidelines to the dev board...
« Last Edit: September 27, 2019, 02:50:31 pm by mbless »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9964
  • Country: us
Re: Resistor on USB D+ and D-
« Reply #6 on: September 27, 2019, 02:51:39 pm »
Is it possible that the uC could be misprogrammed and those USB pins defined as outputs?  Would that cause damage to any part of the USB chain?

 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: Resistor on USB D+ and D-
« Reply #7 on: September 27, 2019, 06:19:29 pm »
Adding those 22ohm resistor will not hurt even the chip includes some..
Readers discretion is advised..
 

Online wraper

  • Supporter
  • ****
  • Posts: 17952
  • Country: lv
Re: Resistor on USB D+ and D-
« Reply #8 on: September 27, 2019, 06:29:53 pm »
FYI, any Arduino is NOT a good source to learn best design practices. Or OSHW for that matter. They copy stuff from each other, without really understanding what is going on.
Arduino (original) is awful. They cannot even connect USB ESD protection device(s) properly. In addition to incorrect circuit they also use routing with long loops. For example Arduino UNO with ATmega8u2 is especially horrible in this regard. You are freaking supposed to tie it to GND is shortest possible way, not as in this particular case connect it though 4.7n (C1) cap which might actually be damaged itself by ESD thanks to this "protection".
« Last Edit: September 27, 2019, 06:37:59 pm by wraper »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf