Generic RS-232 solutions
LoopyByteloose
Posts: 12,537
It seems that Maxim has overtaken the RS-232 world.
I cannot locate a simple DIY RS-232 schematic [noparse][[/noparse]like transistors and resistors].· I realize to do this properly I have to provide +12 and -12 volts, where as Maxim does it all in one chip, but the problem is that I just cannot locate a local outlet in Taiwan.·
I do have 3904 and 3906 transistors a plenty.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
G. Herzog in Taiwan
I cannot locate a simple DIY RS-232 schematic [noparse][[/noparse]like transistors and resistors].· I realize to do this properly I have to provide +12 and -12 volts, where as Maxim does it all in one chip, but the problem is that I just cannot locate a local outlet in Taiwan.·
I do have 3904 and 3906 transistors a plenty.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
G. Herzog in Taiwan
Comments
chaokhun.kmitl.ac.th/~kswichit/ap275/ap275.htm
found on this site
www.commlinx.com.au/schematics.htm
Everthing here for schematics and more.
kelvin
Kelvin pointed me to a site that lists tons of stuff, but all I find is the MAX-232 in cables or speicalized RS-232 applications. This is similar to my attempts at Google.
I suppost the BS2 schematic can be modified to high voltage supply swings, but I have to think about it. As I often smoke these first tries, I was hoping that there was just a tried and true generic solution.
Gunther provided an op-isolator solution, but it is powered by the RS-232 port through modification of the control lines in software. I am not sure how to do that, but I suppose that I could just try +9/-9 to those pins and all would be okay.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
G. Herzog in Taiwan
+/- 9V should be fine for the transmitter. The receiver could even be simpler, just use a resistor with one end vonnected to the COM port's TxD line, with a diode to short the negative voltage, and a Zener to limit the positive voltage to +5V. Both cathodes go to the other end of the resistor, and the anodes go to ground.
For the opto isolator solution, you need to set the RTS and DTR lines to the required levels. In Visual Basic, for example, the MSComm control has the RTSEnable and DTREnable paroperties to do this.
BTW: STMicroelectronics also produces the level shifters, they call them ST232. I'm using here the ST3232 which is a version that can also be operated at 3 Volts.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
G. Herzog in Taiwan