Navigation
  • Home
  • Recent
  • Most Active
  • Popular
  • Blog
  • Credits
  • RSS
  •   Interaction
  • Register
  • Statistics
  •   Help
  • Suggestions
  • Contact Us
  • How to Edit
  • Help



  • [Edit]


    In telecommunications and computer science, serial communications is the process of sending data one bit at one time, sequentially, over a communications channel or computer bus. This is in contrast to parallel communications, where all the bits of each symbol are sent together. Serial communications is used for all long-haul communications and most computer networks, where the cost of cable and synchronization difficulties make parallel communications impractical. Serial computer buses are becoming more common as improved technology enables them to transfer data at higher speeds.

        Serial communications
            Time division multiplexed systems
            Asynchronous transfer mode
            Teletype systems
            Serial buses
            Serial versus parallel
            Examples of serial communication architectures
                Common Baud Rates
                Bit significance
                Parity
                9-bit characters
                RTS/CTS handshaking
                3-wire and 5-wire RS-232
            See also

    top

    Time division multiplexed systems

    Almost all long-haul digital communication channels are leased from telephone carriers. Digital telephone systems use synchronous frames of bits that repeat 8000 times per second. These usually have a one or a few bits that form a pattern to enable the system to "synch", and locate the start of the frame. Blocks of data are then identified by counting bits or groups of 8 bits from the start of the frames; this scheme is called time-division multiplexing or TDM.

    This repeating frame is far more efficient than a teletype-style UART, because there is less overhead. Telephone systems range from T-1 lines, which have a frame of 24 bits, and one synch bit, to SONET frames, whose frame contains several thousand bits, and has about 1% synch bits distributed in the super frame. The advantage of these systems is that the bit pattern can be repeated by any type of modem, making the data independent of the transmission medium.

    In telephone systems, these data formats often travel in physical media arranged in loops or rings. The loops may cover many cities, or a loop may be formed within a single transmission link from one region to another. The loop or ring provides a backup path in case of equipment or cable failure. Note that the term 'loop' also can refer to a single telephone wire pair connected to a remote telephone, making a loop circuit (not related to TDM).

    Cross-Connects transfer blocks as small as a single phone conversation from one link to another.

    Generally, each channel of each node on the loop is allocated block(s) of the repeating frame. When a node receives data for a channel, it reads data from only the assigned block of the frame. When it transmits data, it fills only that block with the data it generates. In this way, a single fast channel is broken into several slower channels.

    The main advantage of TDM is that the assigned bandwidth is always available and the delays are predictable. The main disadvantage is that idle time can't be used for any other channel.

    top

    Asynchronous transfer mode

    In the 1970s, the Doelz company developed a semi-synchronous serial communication system. It used short synchronous frames on a physical loop, but the routing equipment was permitted to remove, store and delay lower priority data if it had higher-priority data. The crucial advantage of the Doelz network design was that low priority, high reliability digital network data from computers could be inexpensively combined with low reliability high priority data such as pulse-code modulated voice.

    AT&T researchers appear to have borrowed significant concepts from Doelz in order to develop a similar system, "asynchronous transfer mode" (ATM). This also uses repeating small frames of fixed-size packets. The packets likewise included routing information in the form of channel identification indexes, and optional error correction data.

    As a primary protocol or transmission protocol, ATM has lost the competition to the internet protocols, which have substantially lower overhead per packet (<1% for IP).

    ATM is widely used as a backbone protocol in routers.

    On long-haul networks, ATM is often reformatted into frame relay.

    top

    Teletype systems

    Standard teletype systems evolved as an automated telegraphy system called telex. Originally, a rotating mechanical commutator (a rotating switch) was started by a "start bit". The commutator would distribute the other bits to set relays that would pull on solenoids which would cause the mechanism to print a figure on paper. The routing was automated with rotary electromechanical dialing systems like those used in early telephone systems. When computers became commonplace, these serial communication systems were adapted using I/O devices called serial ports that used UARTs. The development of communications hardware had a deep continuing impact on the nature of software and operating systems, both of which usually arrange data as sequences of characters.

    top

    Serial buses

    Integrated circuits are more expensive when they have more pins. To reduce the pins, many ICs use a serial bus to transfer data when speed is not important. Some examples of such low-cost serial buses include SPI, I2C, and 1-Wire.

    top

    Serial versus parallel
    The communications links across which computers—or parts of computers—talk to one another may be either serial or parallel. A parallel link transmits several streams of data (perhaps representing particular bits of a stream of bytes) along multiple channels (wires, printed circuit tracks, optical fibres, etc.); a serial link transmits a single stream of data.

    At first sight it would seem that a serial link must be inferior to a parallel one, because it can transmit less data on each clock tick. However, it is often the case that serial links can be clocked considerably faster than parallel links, and achieve a higher data rate. A number of factors allow serial to be clocked at a greater rate:
      Clock skew between different channels is not an issue (for unclocked serial links)
      A serial connection requires fewer interconnecting cables (e.g. wires/fibres) and hence occupies less space. The extra space allows for better isolation of the channel from its surroundings
      Crosstalk is less of an issue, because there are fewer conductors in proximity.

    In many cases, serial is a better option because it is cheaper to implement. Many ICs have serial interfaces, as opposed to parallel ones, so that they have fewer pins and are therefore cheaper.

    top

    Examples of serial communication architectures
      Fibre Channel (high-speed, for connecting computers to mass storage devices)
      Midi control of electronic musical instruments
      DMX512 control of theatrical lighting
    (see additional examples in Computer bus)

    There are a number of serial communication standards which, while significantly at variance with the RS-232 standard, are casually and incorrectly called "RS-232".

    top

    Common Baud Rates

    By far the most common RS-232 baud rates are powers of two times 300 or 900 baud. The 300-baud series includes 75, 150, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, and 76800 baud, all of which have been in common use at some time, although rates below 9600 baud are rarely used as of 2006. The 900-baud series includes 1800, 3600, 7200, 14400, 28800, 57600, 115200 and 230400 baud; the 57600 and 115200 baud rates are the most common as of 2006. These latter baud rates are artifacts of the clock generator design in the serial port of the IBM PC.

    Note that the higher data rates are not strictly RS-232 compatible, as they require violating the RS-232 slew rate specification.


    top

    Bit significance

    Although not framing and bit order is not specified in the standard, common RS-232 compatible devices usually transmit the least-significant bit first, immediately after the start bit, and the most-significant bit is transmitted last, followed by a parity bit, if any. Sending less than 8 bits per character frame is uncommon, although that may take the form of 7 bits plus parity.

    top

    Parity

    It is common to add a trailing parity bit to detect transmission errors. Both even parity and odd parity are widely used. Parity may be added to 7 data bits, making 8 bits in total, or to 8 data bits, making 9 bits in total. Most UARTs can generate parity automatically when transmitting and verify it when receiving.

    Sometimes seen is mention of "mark parity" or "space parity", where the parity bit is sent with a fixed value and has no error-detecting value. This is not generally used except when impementing 9-bit characters.

    top

    9-bit characters

    A common protocol used to connect embedded systems sends data over RS-232 with 8 data bits plus a 9th high-order address bit. A byte with the address bit set to 1 specifies a destination to which following data bytes, with the address bit set to 0, are directed. Many microcontroller UARTs provide facilities for ignoring non-address bytes when desired.

    Parity, if used, is a 10th bit added after the address bit.

    top

    RTS/CTS handshaking

    The official RS-232 use of the RTS and CTS lines is asymmetrical. The DTE asserts RTS to indicate a desire to transmit and the DCE asserts CTS in response to grant permission. This allows for half-duplex modems that disable their transmitters when not required, and must transmit a synchronization preamble to the receiver when they are re-enabled. There is no way for the DTE to indicate that it is unable to accept data from the DCE.

    A non-standard symmetrical alternative is far more widely used: CTS indicates permission from the DCE for the DTE to transmit, and RTS indicates permission from the DTE for the DCE to transmit. The "request to transmit" is implict and continuous.

    top

    3-wire and 5-wire RS-232

    A minimal "3-wire" RS-232 port consisting only of transmit data, receive data, and ground, is commonly used when the full facilities of RS-232 are not required. When only flow control is required, the RTS and CTS lines are added in a 5-wire version.

    top

    See also
     
    Search more:
     

       
    Source Privacy License Download Contact Us Atlas
    Scientus.org Dictionary (Yet Another Wiki) RC : 1.39
    MIT OpenCourseWare
    This article is licensed under the GNU Free Documentation License [copyleft]. It uses material from the Wikipedia article "Serial communications". link