Connection to a USB to TTL dongle

ttluartusb

I have a USB dongle which converts TTL UART signal from a microcontroller to USB level signal using level converter. I has six pins Vcc, GND, RTS, CTS, TXD, RXD. My microcontroller has two pins for UART which are RX and TX. my microcontroller is Atmega16L and the USB dongle is RN-SRL-PRO3V-DGL from Roving Networks.

I need to know how to connect micro to USB dongle. Is it RXD connected to RX and TXD connected to TX. or is it the other way around (RXD to TX and TXD to RX).

Any help is much appreciated. Thanks

Best Answer

If the Dongle output is TTL and no RS232 converter IC is expected between the dongle and target controller then positive logic is usually used.
The TX line from the dongle = RX line into target will be high when idle. The dongle rx line = target tx line expects a high = +5V in idle state. Start bits are 0V and stop bits are 5V. The dongle TX line = target RX should be "stiff enough" to drive say a 1kohm load and still return say 4V+ when idle. Loading the dongle rx line with a 1k to ground or +5V should pull the line to the appropriate level.

If the Dongle output is true bipolar RS232 (+/- relative to ground) and negative logic is used then the TX line from the dongle = RX line into PC etc should be negative when idle. The RX line of the dingle = TX line of target expects a low = say -5V to -12V when idle. Start bits are positive wrt ground. Stop bits are negative wrt ground.

To make the dongle work you may need to loop back RTS to CTS.