R
René
- Jan 1, 1970
- 0
I need to design a PC compatible RS232 I/F in a very small, battery
operated, cheap device. (isolated housing) 1200bd speed. RX / TX only.
The "royal way" would be obvously to use some MAX232 derivative, but
the battery drain budget (1 year out of a CR2032), BOM budget and
space budget make that highly unattractive.
As I see it I am left with 2 alternatives:
1. Hook the device ground to the minus voltage of a RS232 gate ,
and have a transistor + collector resistor switch between + and -
RS232 voltages at the collector. (or use a fet)
(use 2 any non-rx/tx RS232 pin to get steady + and - voltage out of
the PC, set dedicated RS232 PC driver to provide these voltages in a
steady mode)
Advantage: Full RS232 swing available
Disadvantage: device grounded to neg RS232 voltage, unsolid ground.
2. Use TTL method, switching between pos value (derived from
steady state RS232 pin), and true RS232 ground. Here it is assumed
most (all?) PC RS232 I/F's actually switch at TTL level tresholds.
Advantage: solid ground
Disadvantage; will not work if treshold is close to, or below 0V.
Knowing full well that both methods are sub-optimal and non-compliant,
I lean towards method 2.
Question: On which PC's will I run into trouble? Any other low cost /
low energy solutions? What's with Apple PC's?
TIA!
operated, cheap device. (isolated housing) 1200bd speed. RX / TX only.
The "royal way" would be obvously to use some MAX232 derivative, but
the battery drain budget (1 year out of a CR2032), BOM budget and
space budget make that highly unattractive.
As I see it I am left with 2 alternatives:
1. Hook the device ground to the minus voltage of a RS232 gate ,
and have a transistor + collector resistor switch between + and -
RS232 voltages at the collector. (or use a fet)
(use 2 any non-rx/tx RS232 pin to get steady + and - voltage out of
the PC, set dedicated RS232 PC driver to provide these voltages in a
steady mode)
Advantage: Full RS232 swing available
Disadvantage: device grounded to neg RS232 voltage, unsolid ground.
2. Use TTL method, switching between pos value (derived from
steady state RS232 pin), and true RS232 ground. Here it is assumed
most (all?) PC RS232 I/F's actually switch at TTL level tresholds.
Advantage: solid ground
Disadvantage; will not work if treshold is close to, or below 0V.
Knowing full well that both methods are sub-optimal and non-compliant,
I lean towards method 2.
Question: On which PC's will I run into trouble? Any other low cost /
low energy solutions? What's with Apple PC's?
TIA!