Maker Pro
Maker Pro

USB to UART serial converter.

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
I have one other question for you.

About a year ago i bought this USB 2.0 to TTL UART Serial Converter from e-bay.

http://www.ebay.com/itm/1pcs-6Pin-U...504639?hash=item33ae4b54ff:g:ViAAAOSwsB9WCNWw

Now how do i wire it up ?

PCB---- DB9
DTR to DRT
RXD to RXD
TXD to TXD

or do i need to connect for example RXD to TXD ?


Not enough info.
But lets see, they are using the CP2102.
The UART side is for connecting to a Modem(DCE equipment).
Therefor the way you use it depends on what kind of equipment you connect it to :

1. If to DCE(like modem) connect directly,and connect DTR to DTR as well.
2. If to DTE(like PC) connect crossed,and the DTR(of the adapter) to both DCD and DSR.
 

Electrobrains

Jan 2, 2012
259
Joined
Jan 2, 2012
Messages
259
Once I had a bit similar problem in a complex circuit with micro controllers and amplifiers. To save energy, I wanted to put the amplifiers in standby mode, but I needed the processors running. It did not work.

The reason might be the same as for you and the solution could be easy.

When you remove the supply voltage, the internal (positive) rail of the circuit will drop below the positive input signal level. Inside the circuit you will have diodes that are normally reverse biased towards that rail and possibly other parts of the circuit.
Through the input, you will then "supply" a current into the circuit. That current goes wherever the path is open and can cause both strange behavior or even damage.
Just looking at the rail, could easily be understood that a strange behavior would appear when the IC would be powered with the input pulses!

My solution was to add a simple "resistive isolation barrier" between the two circuit groups.
In my case I put 470Ω in series with the input pins of the powered down circuits. That was low enough to keep the signals running without too much voltage drop and by slowing down the edges too much. It was also high enough to isolate the input signal from the powered down circuitry, without causing any negative influence.

So my suggestion:
Try to put some different resistors in series with SW3 and SW4
(for instance in the range between 10Ω and 4.7kΩ)
It's easy to test and might bring the solution
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
If to DTE(like PC) connect crossed,and the DTR(of the adapter) to both DCD and DSR.
Yes i want it to talk to PC serial port.

I will connect it on a pc usb port and through TERMITE serial comm program i will transmit characters while i will hook the Oscope to the txd and rxd pins to see which is transmitting.

P.S.
I do not understand electrobrain's post :( ...
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
Both RXD and TXD give me +3.5 Volts. While i transmit data the TXD pin pulses to 0V which is normal.
Why the RXD line gives me +3.5 Volts ? also shouldn't the TXD line be +5 Volts when at idle state ?
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
I get it now...
The question on my post #69 had nothing to do with the problem mentioned in post #1 !!!
:)

As for the problem mentioned on post 1 a quick fix is the simple transistor inverter circuit like the one on post #61.
I dont know ... theese max3232 chips are just acting weird.
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
I do not understand electrobrain's post :( ...
Probably because EB is unaware that you've shifted this thread from the MAX232 to a CP2102.
Personally I love EB's Resistor fix :cool:for the MAX3232. It makes sense.

That said your better off staying with the Direct USB/TTL (CP2102) module because your project doesn't require the bidirectional communication that the MAX3232 provides.

Chris
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
True... In my case the cp2102 and the max3232 concern two different projects. It is just that i didnt want to make an other thread about rs232 :)
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
It makes sense to me but let's let EB take the reins because he's actually implemented it.

It's all that crisp clean air in Switzerland. It makes the brain work better! :)

Chris
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Both RXD and TXD give me +3.5 Volts. While i transmit data the TXD pin pulses to 0V which is normal.
Why the RXD line gives me +3.5 Volts ? also shouldn't the TXD line be +5 Volts when at idle state ?

Very important !!!
The CP2102 is not an rs232 compatible device,you have to add a rs-232 transceiver!!!
connecting it directly to a RS232 port will destroy the IC(in case the output of that port is larger than 5.8V,or smaller than -0.3v, which it will be!).

The device output of 3.5V at idle is fine since it is a CMOS device operated internally by a 3.3-3.45V voltage regulator.
 
Last edited:

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
On another note and since this thread focuses on both the RS3232 and the CP2102, here's a level shifter if you need to level shift from 3V to 5V logic level. It's none inverting so a logic1(3V) in = a logic1 (5V) out. I believe your USB/TLL(CP2102) module provides a +5V Vcc output.
Chris
upload_2017-8-22_8-48-26.png
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
Very important !!!
The CP2102 is not an rs232 compatible device,you have to add a rs-232 transceiver!!!
connecting it directly to a RS232 port will destroy the IC(in case the output of that port is larger than 5.5V,and smaller than -0.3v= which it will be!).

The device output of 3.5V at idle is fine since it is a CMOS device operated internally by a 3.3-3.45V voltage regulator.
I don't believe that Ivan has the stand alone chip. I think he said he purchased (Ebay) the complete USB/TTL converter. You'll have to search back through this thread to see where this thread switched tracks.

Chris
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
I don't believe that Ivan has the stand alone chip. I think he said he purchased (Ebay) the complete USB/TTL converter. You'll have to search back through this thread to see where this thread switched tracks.

Chris

Oh,
He absolutely has the sand alone chip,that is what's on the module( #69).
It connects directly to USB and produces CMOS(TTL compatible) interface to the "rs-232 side".
From #73 you can confirm that the levels are 0-3.5v.
That isn't RS-232 compatible thus a rs-232 transceiver is absolutely needed !
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
i was looking at the diagram and cant figure out what the switches are there for also is vin the 3.5V signal output from the converters RXD pin ?

R2 and r3 are going to GND right ?
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
Oh,
He absolutely has the sand alone chip,that is what's on the module( #69).
It connects directly to USB and produces CMOS(TTL compatible) interface to the "rs-232 side".
From #73 you can confirm that the levels are 0-3.5v.
That isn't RS-232 compatible thus a rs-232 transceiver is absolutely needed !

In other words it is a USB to TTL serial converter. It can not accept rs232 level signals. Come to think about it, when i bought it i thought it was usb to rs232 converter and the fact that was not lead me to put it aside.
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
Constantine, your concern over your logic being inverted is misplaced. A logic 1 on from the RS232 TX is Negative
I know i am mixing the posts right now but here is the question. According to your diagram Chris, the idle state of the rs232 is 15 volts (or could be up to 18 for hardware rs232 i think) while at the following link Christ clearly states that the idle state of a hardware rs232 is negative. look at his post #9

https://www.electronicspoint.com/threads/help-with-data-switch.259040/


So it is the exact opposite than what is shown on the diagram on your post #61
The -15V will be +5V for logic 1 and the +15V will be 0V for logic 0
 
Top