CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Tx dead or wot!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah
Guest







PostPosted: Mon Dec 12, 2005 4:06 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group