I see BDD did a good job of answering while I was writing, but I'll post anyway.
cbmeeks wrote:
Pardon my ignorance, but is the MAX-232 the "driver" in this example? Still not sure what that chip is really used for.
Thanks.
Oh, I do like the idea of a string of paperclips going across the floor. That's the "manly" way to do it. LOL Oh wait...barbed wire. That's how I should do it.
From my
RS-232 primer:
The transmitting standard goes like this: Logic 0 is +5V to +15V. Logic 1 is -5V to -15V. -5V to +5V is the transition area. Transmitters can handle indefinite shorts to each other or to ground without damage. Again, the voltages seem backwards; but it's because the line drivers and receivers invert the signal.
Powering the line drivers from ±12V used to be pretty standard, but line drivers like the MC145407 and the well known MAX232 and its many relatives use internal switched-capacitor voltage converters and multipliers to get (almost) ±10V from a single 5V supply. Still, if you have ±12 (or something in that neighborhood) on the board to power the line drivers, ones like the 1488 or MC145406 take less board space, because they don't need external capacitors and the extra pins to connect to them.
For low-power hand-held applications where battery power is saved at all costs, it is also possible to power the line drivers with power taken from the receivers' input signals. A unit designed like this would have to be connected to another computer that will supply the power. Obviously it won't work if it is connected to another one of the same which also supplies no power, especially if you have a hand-held terminal with no power source of its own.
The receiving standard goes like this: Logic 0 is +3V to +25V. Logic 1 is -3V to -25V. -3V to +3V is transition area. Specified impedance for one receiver load is 3KΩ to 7KΩ. One output can usually drive quite a few inputs (and LEDs for troubleshooting).
To reduce problems with noise and interference, the receiver usually has some hysteresis to keep its output steady at the last valid logic level while the input is crossing that transition area, and then outputs a fast edge to the UART when it does go to the other logic level.
Quote:
So, knowing that, do you think I can get away with using just a 65C51 and nothing else?
I don't know how fast you could go with it (the long cable might require slowing down to get valid data through), but it looks like the logic levels will be ok for the device you linked to. BDD brought up the matter of possible damage from static discharge. You'll have to be careful, or add some other kind of protection. You could use something like 74LS__ parts for that, but then you might as well just use the normal line drivers and receivers.