Electronic – USB data serial termination resistors. Need them for STM32F2 micro? If so, what wattage


I'm a little confused.

The STM32F2 datasheet says only this, vaguely stated in the features:

HNP/SNP/IP inside (no need for any external resistor)

Is that referring to the D+/D- termination resistors?? Ie. I don't use external termination resistors? That'd be a first for me.

While I'm on the subject, stupid question time… how do I figure power dissipation for these resistors? I attempted to search for that answer and found nothing, which suggests people likely aren't putting 1W (expensive, big) on every cheap-o USB device and they certainly aren't blowing up or I'd find a million hits. So it must not simply be 5^2V / 27 Ohm = 1W. What is it?

Best Answer

The resistors they are referring to are for the USB protocol. There are assorted resistor values/locations required depending on the device type. For example, if you want to design a dual-role OTG device you are supposed to put 15k-Ohm pulldowns on both the DP and DM lines. The STM32 takes care of these considerations internally so you don't have to.

Regarding the series termination resistors, your power calculation is assuming that the resistor is the only thing limiting the current. But USB transceiver lines don't carry any significant current; they are high-impedance when receiving. I have used 0.063-Watt (0402 package) resistors successfully. They don't even get warm.

When I built a USB Full Speed device with a STM32F1xx I added 2.2 Ohm resistors on the DP and DM lines. I'm not sure that they were strictly necessary, since I wasn't going to High Speed data rates. I found out later that 22 Ohm was more appropriate in the general case. But the circuit worked just fine.

Also, please see this related question.