A
Andrew Holme
Dan Lenski said:Gotcha. So you enable hardware handshaking, thereby driving RTS and
DTR positive, and draw positive supply from it? How much current can
they source?
You can only take a few milliamps. The source impedance is quite high,
typically 1K, so the voltage falls by (e.g.) 1V for every milliamp drawn.
One thing I still don't get: since RS232 is a full-duplex protocol, how
can you derive a negative voltage from TX? When the computer isn't
sending data, I understand that TX will idle at -12V, but isn't there a
possibility that it will be switching between +12 and -12V rapidly
when you're trying to use it as your negative supply?
RS232 can be half-duplex or full-duplex.
You need to use diodes and smoothing capacitors on all the supply inputs.
When the transmit line is high, the diode switches-off, and the capacitor
provides the negative supply.
DTR ->|---.
|
|
RTS ->|---o-o----- +ve supply
|
|+
=== 10uF
/-\
|
|
===
GND
Tx --|<----o------ -ve supply
|
|
\-/
=== 10uF
+|
|
===
GND
(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)