I have a circuit that already provides +12 and -12 volt supplies.
The microcontroller Vdd is 3.3v.
I tried designing a transistor / resistor system to handle the invert and voltage shifts, without using a MAX232, but unfortunately it does not work.. It overheats and I could only salvage the rest of the system by snipping off these transistors.
Before I ordered the PCBs I tested the design in LTSPICE and sure enough the TTL <-> RS232 voltage shift and invert worked great, but admittedly I didn't check the current running through the components... simulating again I see that the lower-right-most transistor has 1.1A running through collector-emitter..
Attached is the schematic.. what did I fail to anticipate? I'm now thinking I only need some strategically placed diodes to prevent mis-bias the transistor bases.
View attachment 41451
The microcontroller Vdd is 3.3v.
I tried designing a transistor / resistor system to handle the invert and voltage shifts, without using a MAX232, but unfortunately it does not work.. It overheats and I could only salvage the rest of the system by snipping off these transistors.
Before I ordered the PCBs I tested the design in LTSPICE and sure enough the TTL <-> RS232 voltage shift and invert worked great, but admittedly I didn't check the current running through the components... simulating again I see that the lower-right-most transistor has 1.1A running through collector-emitter..
Attached is the schematic.. what did I fail to anticipate? I'm now thinking I only need some strategically placed diodes to prevent mis-bias the transistor bases.
View attachment 41451