How to build a simple circuit for RS 232 with 2 transistors

Status
Not open for further replies.

hassana

Junior Member level 1
Joined
Jan 16, 2005
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
96
About RS 232

How to build a simple circuit for RS 232 containing of two transistor the first one is for transmitting and the second one for recieveing data, instead of using {RS 232 IC}
 

About RS 232

**broken link removed**
 

Re: About RS 232

Receiving data is simple: you use a resistor and a reverse polarity diode between the RX line and the base of the RX transistor .. the collector is the OC output ..

Transmission will require + and - voltages: where are you going to get them from?
A single transistor will not do the job ..
 

Re: About RS 232

Not proper RS232 voltages, but all serial ports I've tried actually work with 0/5V. I've interfaced PICs to PC serial ports with nothing but a couple of resistors and diodes.
 

Re: About RS 232


Quote from Peter Anderson' book on PIC C:
 

Re: About RS 232

In many cases a computer COM port will accept 0-5V signal.
That is fine, but if the output (Tx line) does not produce +/- levels according to the RS-232 standard, true RS-232 devices will not accept this signal ..
Read about the RS-232 standard; it is ca.+/-3 to +/-25 ..
 

Re: About RS 232

For short distances (3m or so), usually two inverter gates (74HC14 or even 74HC04) will do the job.
Use some 47-100kΩ in series with the input of the "receiver" and 220-330Ω in series with the "transmitter".
This works because the receivers of true RS-232 transmitters also have a threshold of about 2.5V. So if you drive them with 0-5V, they will receive correctly.
Your receiver will also be driven with at least 5V (positive) and the large resistor in series with its input will limit the current through the internal Vcc and GND diodes when the input voltage is +/-12V.

So far I have not found a single RS-232 device that did not work with this arrangement. It is possible some newer laptops will interpret your 0V idle output as a "disconnected cable", but the circuit is simple and inexpensive to warrant its use even with this possible inconvenience.

I have tried this with other CMOS devices, such as PIC's, just using the resistors mentioned above. But I recommend the inverters, because they invert the signal for you (don't need to do it in software) and then they provide an extra protection: should you get a transient on the lines, the first to get damaged are the gates, not the PIC.
Speaking of transients, a 12V bidirectional TVS on each line is also highly recommended.
 

Re: About RS 232

hassana said:
How to build a simple circuit for RS 232 containing of two transistor the first one is for transmitting and the second one for recieveing data, instead of using {RS 232 IC}

At october 2004 nut & volts article there is a good schematic for doing a cheap circuit for TX and RX with two transistors. if you want it let me know to uplaod it.
 

    hassana

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…