Serial interface - cablingSerial communication only define the serialised transmissoon of the bits in a byte. See more at bit-tx.html Old standard serial rs232-C cablingunipolar cabling eg one line with bit stream and a ground level. Levels mus be above +- 6V or so
So interfacing to controllers with TTL level (see below) need a level converter. RS232-C do also have additional signal lines like DTR, RTS etc Rarely used today. TTL level serial is much more common. See https://en.wikipedia.org/wiki/RS-232 TTL level serial communicationTTL level is defined as 0V and 5V. Naming comes from ancient TTL logic components. Voltage and logic values
Idle level is 5V so it is possible to test for broken cabling 5.0V versus 3.3V or other “TTL” levelsMany controllers today is running at 3.3V so you might see 3.3V as logic 1. If you want to have controllers with different logic 1 levels (eg 3.3V, 5.0V,…) you might have to use level converters. Or more direct use level converters. See
Link to schematics from Sparkfun
Lenght of cablingTTL level unipolar cabling has some length issues due to typical low fanout of TTL serial ports and capacitive, resistive and inductive loads In short
A principial model for a cable So the initial square wave shaped bits will become filtered down the line and be lower in level and looks like passing a low pass filter. input at left - output at right down the cable It is out of scope of to go into further details To be home safe lower baudrate as much as possible and do not have unnescessary long cables. Transceiver based cabling to extend lengthBy use of proper transceivers like rs422 of rs485 much longer cables are possible.
happy bit hacking to you :-) |