Digital Signal Encoding

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

Signal Encoding Techniques
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 26 Physical Layer Ch 4: Digital Transmission
1 Computer Communication & Networks Lecture 6 Physical Layer: Digital Transmission Waleed Ejaz
Chapter 5 Analog Transmission
Chapter 5 Analog Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Communication & Networks Lecture # 06 Physical Layer: Analog Transmission Nadeem Majeed Choudhary
Chapter 5 Analog Transmission
EE 4272Spring, 2003 Chapter 5 Data Encoding Data Transmission Digital data, digital signal Analog data, digital signal: e.g., voice, and video are often.
DIGITAL COMMUNICATIONS.  The modern world is dependent on digital communications.  Radio, television and telephone systems were essentially analog in.
Chapter 4 Digital Transmission
CSCD 218 : DATA COMMUNICATIONS AND NETWORKING 1
Pulse Code Modulation Lecture 5.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 Digital Transmission Stephen Kim 4.1.
Data Communications and Networking
Data Communication Networks Lec 8 and 9. Physical Layer and Media Bottom-most layer. Interacts with transmission media. Physical part of the network.
Chapter 4 Digital Transmission
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Base-Band Digital Data Transmission Prepared By: Amit Degada. Electronics Engineering Department, Sardar Vallabhbhai National Institute of Technology,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
Computer Networks Digitization. Spring 2006Computer Networks2 Transfer of an Analog Signal  When analog data (voice, pictures, video) are transformed.
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques  Digital data, digital signal Equipment less complex and expensive than.
Chapter 4 Digital Transmission.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
1 Kyung Hee University Digital Transmission. 2 Kyung Hee University 4 장 Digital Transmission 4.1 Line Coding 4.2 Block Coding 4.3 Sampling 4.4 Transmission.
การสื่อสารข้อมูลและเครือข่าย คอมพิวเตอร์ Data Communication and Networks บทที่ 2 พื้นฐานข้อมูลและ สัญญาณ อาจารย์ผู้สอน : ดร. วีรพันธุ์ ศิริฤทธิ์ .
BZUPAGES.COM 4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
: Data Communication and Computer Networks
British Computer Society (BCS)
Chapter 4 Digital Transmission.
Kashif BashirWWW.Taleem.greatnow.com Chapter 4 Digital Transmission.
9/12/ Digital Transmisison - Lin 1 CPET/ECET Digital Transmission Data Communications and Networking Fall 2004 Professor Paul I-Hai Lin Electrical.
EEC4113 Data Communication & Multimedia System Chapter 2: Baseband Encoding by Muhazam Mustapha, July 2010.
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques Digital data, digital signal Equipment less complex and expensive than.
A digital signal is a sequence of discrete discontinuous voltage pulses. Each pulse is a signal element (symbol). Binary data are transmitted by encoding.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Digital Transmission & Analog Transmission. 4.#2 1. DIGITAL-TO-DIGITAL CONVERSION Digital Data -> Digital Signal Three techniques: 1.line coding (always.
Chapter 4 Digital Transmission. 4.#2 4-1 DIGITAL-TO-DIGITAL CONVERSION line coding, block coding, and scrambling. Line coding is always needed; block.
Chapter 4 Digital Transmission.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Spring 2007Data Communications, Kwangwoon University4-1 Chapter 4. Digital Transmission 1.Digital-to-Digital Conversion 2.Analog-to-Digital Conversion.
DATA ENCODING Digital-to-digital conversion - Encode digital data into a digital signal - Sending computer data Analog-to-Digital conversion - Digitizing.
Unit 1 Lecture 6 1. Different Conversion/Transmission Schemes 2 Before we discuss various line coding schemes, let us first have an idea of different.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4 Digital Transmission
Topics discussed in this section:
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
Line Coding and Binary Keying Modulation
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 6 Physical Layer.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Introduction to Communication Lecture (11) 1. Digital Transmission A computer network is designed to send information from one point to another. This.
Computer Networks Chapter 5 – Analog Transmission.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 320 Data Communications
Data Communication and Networking Digital Transmission Chapter 4.
Data Communications and Networking
Chapter 4. Digital Transmission
Computer Communication & Networks
DIGITAL MODULATION AND MULTIPLEXING
Chapter 4 Digital Transmission
Chapter 4 Digital Transmission
Chapter 4 Digital Transmission 4.# 1
Presentation transcript:

Digital Signal Encoding Unit 1 Lecture 5 Digital Signal Encoding A Digital To Digital Data Transmission Method

Coding In communications & information processing the code is system of rules to convert information - such as a letter, word, sound, image, or gesture—into another form. Sometimes in shortened or secret, form or representation for communication through a channel or storage in a medium. A first example is the invention of language, which enabled a person, through speech, to communicate what he or she saw, heard, felt, or thought to others. Speech limits the range of communication to the distance a voice can carry, and limits the audience to those present when the speech is uttered. The invention of writing, which converted spoken language into visual symbols, extended the range of communication across space and time.

Encoding Encoding is the technical term used for coding in data communication. The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands.

Morse Encoding Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment.

Different Conversion/Transmission Schemes Before we discuss various line coding schemes, let us first have an idea of different data conversion schemes. Different Conversion/Transmission Schemes

Different Techniques Used in Data Transmission/Conversion Digital to digital conversion Line Coding Block Coding Scrambling Analog to Digital Conversion PAM PCM Nyquist Theorem Digital To Analog Conversion ASK, FSK, PSK & QAM Constellation Analog to Analog Conversion AM, FM &PM

DIGITAL-TO-DIGITAL CONVERSION We know that data can be either digital or analog. We know that signals that represent data can also be digital or analog. The digital data can be converted & represented into digital signals. This conversion can be done by three techniques: line coding block coding & Scrambling Line coding is always needed; block coding and scrambling may or may not be needed.

Line Coding Line coding is the process of converting digital data to digital signals. We assume that data, in the form of text, numbers, graphical images, audio, or video, are stored in computer memory as sequences of bits. Line coding converts a sequence of bits to a digital signal. At the sender, digital data are encoded into a digital signal; at the receiver, the digital data are recreated by decoding the digital signal. Figure shows the process. Line code is also called as digital baseband modulation or baseband transmission. 4.#

Line coding and decoding Codec 4.#

Codec A codec is a device or computer program capable of encoding or decoding a digital data stream or signal. Codec is a short word of coder-decoder or, less commonly, compressor-decompressor. A codec encodes a data stream or signal for transmission, storage or encryption, or decodes it for playback or editing. Codecs are used in videoconferencing, streaming media and video editing applications. A video camera's analog-to-digital converter (ADC) converts its analog signals into digital signals, which are then passed through a video compressor for digital transmission or storage. A receiving device then runs the signal through a video decompressor, then a digital-to-analog converter (DAC) for analog display.

Some Common Characteristics of line coding Some of the important characteristics of line coding are: Signal element vs data element Data rate vs Signal rate Bandwidth Baseline Wandering DC Component Self Synchronization Built in Error Detection Immunity to Noise & Interference Complexity

1. Data Element Vs Signal Element Data is the smallest unit which can be sent & it is bit Signal is the smallest time wise unit of digital signal A signal only carries data element A single signal can carry one or multiple data element as well We are also defining a ratio r which is no of data element carried by each signal for the purpose of understanding relation between data element & signal element. So, r = data element/signal element.

Figure: Signal elements versus data elements 4.#

2. Data Rate vs Signal Rate The data rate defines the number of data elements (bits) sent in 1s. The unit is bits per second (bps). The data rate is sometimes called the bit rate also. The signal rate is the number of signal elements sent in 1s. The unit is the baud. The signal rate is sometimes called the pulse rate, the modulation rate, or the baud rate. S = N/r Savg = c x N/r c is a case factor which is normally 1, it can have other value S = Signal rate in baud N = data rate in bps

We assume that the average value of c is 1/2. The baud rate is then Example 1 A signal is carrying data in which one data element is encoded as one signal element (r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is between 0 and 1? Solution We assume that the average value of c is 1/2. The baud rate is then 4.15

3. Bandwidth The actual bandwidth of a digital/data signal is infinite The effective bandwidth of data signal is found to be finite The minimum bandwidth is calculated as Bmin = c x N x (1/r) The maximum data rate of a channel is calculated by Nyquist formula as below: Nmax = 2 x B x log2 L B = Bandwidth & L = Levels of signals

Example 2 A signal has two data levels with a pulse duration of 1 ms. Calculate the pulse rate and bit rate. Pulse Rate = 1/ 10-3 = 1000 pulses/s Bit Rate = = 1000 x log2 2 = 1000 bps Pulse Rate x log2 L If signal level is 2 then bit rate is same as pulse rate If signal is 4 then bit rate is 2 times to pulse rate If signal is 8 then bit rate is 3 times to pulse rate

Example 3 A signal has four data levels with a pulse duration of 1 ms. Calculate the pulse rate and bit. Pulse Rate = = 1000 pulses/s Bit Rate = PulseRate x log2 L = 1000 x log2 4 = 2000 bps

Switch to lecture of channel capacity from here.

Example 3 The maximum data rate of a channel is Nmax = 2 × B × log2 L (defined by the Nyquist formula). Does this agree with the previous formula for Nmax? Solution A signal with L levels actually can carry log2 L bits per level. If each level corresponds to one signal element and we assume the average case (c = 1/2), then we have 4.20

4. Baseline wandering In decoding a digital signal, the receiver calculates a running average of the received signal power. This average is called as baseline. The incoming signal power is evaluated against this baseline to determine the value of the data element. A long string of 0s or 1s can cause a drift in the baseline (baseline wandering) and make it difficult for the receiver to decode correctly. A good line coding scheme needs to prevent baseline wandering.

5. DC Component When the voltage level in a digital signal is constant for a while, the spectrum creates very low frequencies (results of Fourier analysis). These frequencies around zero are called DC (direct-current) components which present problems for a system that cannot pass low frequencies or a system that uses electrical coupling (via a transformer). For example, a telephone line cannot pass frequencies below 200 Hz. Also a long-distance link may use one or more transformers to isolate different parts of the line electrically. For these systems, we need a scheme with no DC component.

Figure DC component

6. Self Synchronization To correctly interpret the signals received from the sender, the receiver’s bit intervals must correspond exactly to the sender’s bit intervals. If the receiver clock is faster or slower, the bit intervals are not matched and the receiver might misinterpret the signals. Figure shows a situation in which the receiver has a shorter bit duration. The sender send 1011001, while the receiver receives 110111000011. A self-synchronizing digital signal includes timing information in the data being transmitted. This can be achieved if there are transitions in the signal that alert the receiver to the beginning, middle, or end of the pulse. If the receiver’s clock is out of synchronization, these points can reset the clock.

6. Self Synchronization In telecommunications, a self-synchronizing code, or comma-free code, is a line code that can be easily synchronized. Such line codes have the property that the code which is made of a part of the code word, or two overlapping code words is not a valid code. An example, take the code words 11 and 00, and the code 11 00 00 11 00. The spaces have been added to show the different words, and are not really in the code.

Let's now assume that four letters (two code words) are read Let's now assume that four letters (two code words) are read. The code 1000 is not a valid code, because 10 is not one of the two code words defined. Similarly, 0001. Even though 00 is a valid word, 01 is not. The only valid way to read two valid words from the example given is by starting at the very beginning, or just after one of the spaces, which have been inserted for clarity only.

At 1 kbps, the receiver receives 1001 bps instead of 1000 bps. Example 4 In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 kbps? How many if the data rate is 1 Mbps? Solution At 1 kbps, the receiver receives 1001 bps instead of 1000 bps. At 1 Mbps, the receiver receives 1,001,000 bps instead of 1,000,000 bps.

Built in Error Detection – It is desirable to have a built-in-error-detecting capability in the generated code to detect some of or all the errors that occurred during transmission. Immunity to Noise & Interference – Another desirable code characteristic is code that is immune to noise and other interferences. Complexity – A complex scheme is more costly to implement than a simple one. For example, a scheme that uses four signal levels is more difficult to interpret than one that uses only two levels.