Basics of Serial Communication

Description

Superior Embedded Systems Mind Map on Basics of Serial Communication, created by Artur Assis on 13/06/2022.
Artur Assis
Mind Map by Artur Assis, updated more than 1 year ago
Artur Assis
Created by Artur Assis over 2 years ago
0
0

Resource summary

Basics of Serial Communication
  1. Review Questions
    1. Anwers
    2. Ways to transfer data
      1. Parallel
        1. Transfer 8 bits at the same time
          1. - Expensive;
            1. - 8 or more wire conductors;
              1. - Difficulty of synchronizing the arrival time of data lines at longer distance
        2. Serial
          1. - One bit at a time;
            1. - Cheap;
              1. - One wire;
                1. - Allows communication for longer distances;
        3. SHIFT REGISTERS
          1. PARALLEL IN SERIAL OUT
            1. Transform data from 8-bit data bus of the microprocessor to serial bits.
              1. Located at the sender
              2. SERIAL IN PARALLEL OUT
                1. Receives the serial data and packs it into a byte.
                  1. Located at the receiver
                2. Necessity of signal modulation
                  1. Short distances
                    1. NO modulation
                      1. Ex. Keyboards
                    2. Long distances
                      1. Modulation is necessary
                        1. Ex. audio tones to 0s and 1s and vice-versa
                    3. Methods
                      1. Synchronous
                        1. Transfers a block of data (characters) at a time;
                        2. Asynchronous
                          1. Transfers a bit at a time;
                            1. Characteristics
                              1. Protocol
                                1. Definition: it is a set of rules on which the sender and the receiver agree. It defines how the data is packed, how many bits constitute a character, and when the data begins and ends.
                                  1. Framing
                                    1. Each character is packed between start and stop bits
                                      1. When there is no data transfer, the signal stays 1 (mark). The 0 is referred to as space. The transmission begins with the start bit followed by D0 (LSB), then the rest of the bits until D7 (MSB), and finally the stop bit(s) indicating the end of the character.
                                      2. Start bit
                                        1. 1 bit
                                          1. Always 0
                                          2. Stop bit(s)
                                            1. 1 or 2 bits
                                              1. Modern systems may use only 1 bit. Older systems used 2 end bits due to the slowerness of the receiving mechanical devices.
                                              2. Always 1
                                              3. Overhead
                                                1. Assuming 1 stop bit and 1 start bit for 8-bit character transmission, the overhead is: 2/8 = 25%
                                                2. Parity bit
                                                  1. Used to maintain data integrity. May be even or odd parity bit. It is a bit that is included in the data frame, in addition to start and stop bits.
                                                    1. For UART
                                                      1. Options: odd, even, or no-parity.
                                                        1. The parity bit is transmitted after the MSB (D7) and followed by the stop bit.
                                                  2. Widely used for character oriented transmissions
                                              4. Definition
                                                1. UART (universal asynchronous receiver-transmitter) and USART (universal synchronous-asynchronous receiver-transmitter) are special integrated circuit chips made for serial data communications.
                                                  1. Ex. The COM port in the PC uses the UART.
                                                2. Simplex vs Duplex
                                                  1. Data transfer rate
                                                    1. Unit: bps (bits per second) or Baud rate (number of signal changes per second)
                                                      1. In this book, bps == baud
                                                    2. RS232
                                                      1. It is a serial I/O standard that allow compatibility among data communication equipment made by various manufacturers. It was set long before the advent of the TTL logic family, thus its input and output levels are not TTL compatible.
                                                        1. MAX232: voltage converter that allows one to connect any RS232 to a TTL-level chip (microprocessor or UART)
                                                          1. Pins for the RS232 cable (DB-9 connector)
                                                            1. Handshaking signals
                                                              1. It helps to coordinate the data transfer.
                                                            2. Data communication classification
                                                              1. DTE (data terminal equipment)
                                                                1. Terminals and computers that send and receive data
                                                                2. DCE (data communication equipment)
                                                                  1. Communication equipment, such as modem, that is responsible for transferring the data.
                                                                  2. The simplest communication between two PCs (DTE with DTE) requires a minimum of three pins (TxD, RxD, and ground).
                                                                  Show full summary Hide full summary

                                                                  Similar

                                                                  Romeo and Juliet: Act by Act
                                                                  PatrickNoonan
                                                                  Mapa Mental - Estilos de Aprendizagem
                                                                  miminoma
                                                                  GRE Test - Overview
                                                                  SAT Prep Group
                                                                  German GCSE Vocab
                                                                  naomisargent
                                                                  Key Shakespeare Facts
                                                                  Andrea Leyden
                                                                  Biology B1
                                                                  Phoebe Drew
                                                                  PSBD TEST # 3
                                                                  yog thapa
                                                                  Performance y Planificación de Vuelo
                                                                  Adriana Forero
                                                                  2PR101 1.test - 4. část
                                                                  Nikola Truong
                                                                  TISSUE TYPES
                                                                  Missi Shoup
                                                                  Mapa Conceptual
                                                                  Julio Perez