BasAndit
2009-01-11 13:01:04 UTC
.............................|
+/-12v------\/\/\/--o \
.......................|-------< (transistor)
.......................|..........\
.......................o--\/\/\/---\----\
gnd -----------------------------------/
Sorry for my crappy graphics, you can look at a ss here http://zonemikel.com/crap/232converter.bmp
Basically the +/- 12 volts from the output of my db9 port on the back of the computer is chopped down to 6 volts to control the transistor (2n3904). When there is +12 volts output from my serial TX line it will allow the electrons to flow through the transistor to the ground making the output ground or logic 0. When the output from my serial TX is less than tweleve it will not allow the electrons to go to ground so they go back past the resistor to the 3.3volts creating a logic 1.
so if input = 12v output = 0v.
if input < 12v output = 3.3v.
Anyway its not working, its my own design so im not sure what im doing wrong. Any ideas ? Im only worried about changing the rs232 output into a cmos level so i can transmit it, Im not worried about the other way around (yet).
I dont want to introduce a basic logic circuit because im afraid of propagation delay.