Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

Long times ago I bought on the ebay a cheap rs232->usb converter, today I wanted to use but I realized that I don't have the pinout. This is the converter how can I figure it out the pinouts, does anybody has experience with this? enter image description here

share|improve this question
    
Does is have any identification on the PCB, maybe on the bottom side? Does it auto-install in Windows, if so what does the device information say? –  Wouter van Ooijen Nov 24 '12 at 9:25
    
I'm using Ubuntu this is the message: [ 2575.648274] usb 1-1.2: new full-speed USB device number 7 using ehci_hcd [ 2575.741782] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60 [ 2575.741792] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2575.741803] usb 1-1.2: Manufacturer: Silicon Labs [ 2575.741807] usb 1-1.2: SerialNumber: 6BXDFDFGWLSGM1AP [ 2575.742711] cp210x 1-1.2:1.0: cp210x converter detected [ 2575.815873] usb 1-1.2: reset full-speed USB device number 7 using ehci_hcd [ 2575.909013] usb 1-1.2: cp210x converter now attached to ttyUSB0 –  Kicsi Mano Nov 24 '12 at 9:43
    
The Silicon Labs CP2102 is an incredibly common USB-to-UART IC, almost as prolific as Prolific (pun intended) and FTDI. –  Madmanguruman Nov 24 '12 at 13:50
add comment

2 Answers 2

up vote 3 down vote accepted

Since USB does not have negative voltages, I think it's probably unsafe to assume that pin one is ground.

I would guess that the pin you say has -3.3V is actually ground. You can confirm this by measuring the resistance between the pins and the USB ground pin (you may need to cut up a USB cable. Alternatively, the USB shield may be grounded, so try just probing with one lead on the USB connector metal casing).

Going from there, I would write a little script that outputs a continuous serial stream, and poke around with an oscilloscope until I found the TX line.

Then, I would take a device (an arduino, for example), and set the arduino up to output a continuous stream of serial bytes. Then, with a 10K resistor in series with the arduino TX, you poke around on the pins until you see that you are receiving data from the USB-serial interface. That will tell you where the RX line is.


The alternative option is simply to trace out the PCB traces. The CP2102 datasheet is freely available, and I doubt that board is more then two layers. It shouldn't be too much work to follow the traces back from the connector.

You may need to probe some of the IC pins to verify the path of any traces that run under the IC, use a needle in a clip-lead for that (probing the pins on a QFN is fiddly - the pins are tiny).

share|improve this answer
    
Good answer; just as a support: I have a similar adapter based on the same chipset; it outputs both 5V and 3.3V, so the voltages you see fit that description (3.3 + 1.6 ~ 5V). This means your assumed GND is most probably the +3.3V, your -3.3V is GND, your 1.6V is VCC. One of the pins is a reset pin -- it will be the one left after you identify TX and RX. The schematic in this ebay listing can be used as a checklist for what pins to expect: ebay.com/itm/… –  Erion Nov 24 '12 at 14:07
    
@Erion - I wouldn't think they would break out a reset pin. I would guess the last pin is DTS or RTS. What would the reset pin reset anyways? The CP2102? –  Connor Wolf Nov 25 '12 at 5:54
add comment

There are literally hundreds of these gadgets out there. You'll really need to check pin by pin, tracing to the IC.

I have several (with a different PCB, unfortunately), and the PCB silkscreening is misleading on mine to boot (Tx and Rx are from the perspective of the UART, not the IC - Tx is the incoming connection, Rx the outgoing one ... sigh ... that took a while to sort out)

That being said, many CP2102-based interfaces share these six common signals on the UART side: GND, 3.3V, 5V, RXD, TXD and reset. These should map to the pads opposite the USB connector.

CP2102

  • GND will be common to the USB ground connection and may also be connected to the connector shield
  • 5V should be common to the USB 5V connection.
  • RXD should go to pin 25 of the IC
  • TXD should go to pin 26 of the IC

The pins around the top and bottom are for ancillary functions like RTS, CTS, DCD, DCR, etc. and are more commonly used when the IC is paired with an RS232 driver.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.