2 ms·
If you want to do it properly: 1: GND/sense 2: DATA +/- 3: VCC 4: DATA +/- 5: GND/sense Have the host side connect only pin 1 to GND and l
by crote 3y ago
If you want to do it properly:
1: GND/sense
2: DATA +/-
3: VCC
4: DATA +/-
5: GND/sense
Have the host side connect only pin 1 to GND and leave pin 5 floating, but have the device side connect both 1&5 to gnd, with individual pullups for 1 & 5 to VCC.
The device will sense LO on 1 and HI on 5 if either both sides are plugged in straight or both sides are plugged in reversed, but it will sense HI on 1 and LO on 5 if exactly one of them is reversed. This allows the device to detect when inversion of D+/D- is needed.