Ttelmah Guest
|
|
Posted: Mon Dec 12, 2005 4:06 pm |
|
|
I have a strong suspicion that the poster is not understanding the difference between an 'inverted' signal, and a '-ve' signal.
Inversion, refers to which way 'up' the logic 'levels' are. You can have a signal using +5v, for a '0', or +5v for a '1', with 0v, for a '1', and 0v for a '0' respectively. These two signals are inverted relative to one another. The one where the '1' voltage is higher than the '0' voltage is considered to be +ve logic, while the other is '-ve logic'. However a signal also has required _levels_ for the logic signals. In the example given, these are 0v, and 5v. RS232, _requires_ a signal that is actually '+ve logic' (it goes 'high' for a '1'), but uses up to +15v for the logic '1', and down to
-15v for the logic '0' (in fact up to +/-25v, can legally exist on the wires). Now the driver, has to invert the signal, because 'TTL serial' (which is what comes out of most UART chips), uses +5v, for the logic '0'.
So to drive RS232, you need both signal inversion, and _level shifting_, so that you are generating both a +, and a - voltage out. This is actually why the PC power supply had +/-12v, since when the PC was designed, driver chips that developed the rails for you, didn't readily exist.
The actual RS232 'spec', requires the received signal to drop below -3v, to be guaranteed to be seen as a '0', and to rise above +3v, to guarantee a '1'. The driver chip is meant to produce at least +/-5v, into 3KR.
It is just a fluke of the receiver chip you are using, that a level close to 0v, is being seen as a '0'....
Best Wishes |
|