0

I have a USB-to-RS232 converter. The GND, TX and Rx pins of the RS232 I connect to GND, Rx and Tx on a development board I have. I've set the right baud rate, flow control and other settings in my HyperTerminal. However, all I receive is garbage data. I looked it up on the Internet and people who used a USB-to-UART converter, like the one here http://cpc.farnell.com/ftdi/ttl-232r-rpi/cable-debug-ttl-232-usb-rpi/dp/SC12825, have had no problems with it. I obviously I am missing something, any help in this direction would be really appreciated :)

Manu
  • 31
  • 5
  • 1
    Agreed this is duplicate, plus the linked answer above has a great answer. – Funkyguy Jul 28 '14 at 19:23
  • Also be sure that if you are using asynchronous mode with your controller that you use an external oscillator. If you are using an internal RC oscillator then you will likely run into problems since the tolerances are typically high. If this comment does not relate to your application then forgive me. – sherrellbc Jul 28 '14 at 20:12
  • @sherrellbc Many modern micro-controllers (all small Cortex chips that I know) have a < 1% tolerance on the internal oscillator, which is sufficient for reliable asynch communication. – Wouter van Ooijen Jul 28 '14 at 20:35

1 Answers1

5

USB to RS232 means RS232 levels (+-9Vdc). USB to UART usually means a logic family levels (0 to 5V, 0 to 3.3V etc)

Lior Bilia
  • 7,282
  • 1
  • 20
  • 30
  • 1
    Additionally, the sense of the signals is usually opposite between "logic level" and RS232 implementations - the level translator chips customarily invert. – Chris Stratton Jul 28 '14 at 20:03
  • To expand on this if you have connected a RS232 device to a logic-level serial interface you have very likely fried it. – Peter Green Oct 13 '16 at 00:39