Analog and Digital Signals

Slides:



Advertisements
Similar presentations
Lecture 26 Physical Layer Ch 4: Digital Transmission
Advertisements

Signals The main function of the physical layer is moving information in the form of electromagnetic signals across a transmission media. Information can.
PART II Physical Layer.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
 Signals  Analog and Digital  Analog and Digital Data & Signals  Periodic & Aperiodic Signals.
Chapter 2 Data and Signals
1 Lecture 27 Physical Layer (Data and Signals) University of Nevada – Reno Computer Science & Engineering Department Fall 2010 CPE 400 / 600 Computer Communication.
Chapter Two Fundamentals of Data and Signals
Physical Layer – Part 2 Data Encoding Techniques
Chapter 5 Analog Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ICSA 341 (Updated 12/2001) Encoding There are four types of encoding possible. –Digital Encoding of Digital Data –Digital Encoding of Analog Data –Analog.
EE 4272Spring, 2003 Chapter 5 Data Encoding Data Transmission Digital data, digital signal Analog data, digital signal: e.g., voice, and video are often.
Computer Communication and Networks
Data Communication Analog Transmition Behrouz A. Forouzan 1Data Communication - Analog Transmition.
TRANSMISSION FUNDAMENTALS Review
Chapter 4 Digital Transmission
William Stallings Data and Computer Communications 7th Edition
Chapter 2 Fundamentals of Data and Signals
Signal Encoding Lesson 05 NETS2150/2850
Lecture 3 Data Encoding and Signal Modulation
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
 Information must be transformed into signals before it can be transformed across the communication media  How this information is transformed depends.
Data Communication Networks Lec 8 and 9. Physical Layer and Media Bottom-most layer. Interacts with transmission media. Physical part of the network.
Sami Al-Wakeel 1 Data Transmission and Computer Networks Data Encoding.
Dr. Paramjeet Singh HoD,Dept. of CSE PTU GZS Campus Bathinda Subject: Computer Networks Topic: Encoding and modulating Punjab EDUSAT Society1.
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., 2004 Physical Layer PART II.
COSC 3213 – Computer Networks I Summer 2003 Topics: 1. Line Coding (Digital Data, Digital Signals) 2. Digital Modulation (Digital Data, Analog Signals)
Chapter 3 SignalsandEncoding/Modulating BY Mr.Sukchatri Prasomsuk.
Data Communications Chapter 5 Data Encoding.
6-Information Sources and Signals Dr. John P. Abraham Professor UTRGV.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
Chapter 5 Analog Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
3-2008UP-Copyrights reserved1 ITGD4103 Data Communications and Networks Lecture-11:Data encoding techniques week 12- q-2/ 2008 Dr. Anwar Mousa University.
British Computer Society (BCS)
Chapter 4 Digital Transmission.
Kashif BashirWWW.Taleem.greatnow.com Chapter 4 Digital Transmission.
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.
1 Outline Analog and Digital Data Analog and Digital Signals Amplitude Modulation (AM) Frequency Modulation (FM)
Digital Transmission & Analog Transmission. 4.#2 1. DIGITAL-TO-DIGITAL CONVERSION Digital Data -> Digital Signal Three techniques: 1.line coding (always.
Physical Layer PART II. Position of the physical layer.
Chapter 4 Digital Transmission.
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 Physical Layer PART II.
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
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
Spring 2006Data Communications, Kwangwoon University3-1 Chapter 3. Signals 1.Analog and digital 2.Analog signals 3.Digital signals 4.Analog versus digital.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
Signal Encoding Techniques Ir. Hary Nugroho MT.. Data Transmission.
Data and Signals & Analouge Signaling
Signal Encoding Techniques. Digital Data, Digital Signal  Digital signal discrete, discontinuous voltage pulses discrete, discontinuous voltage pulses.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Part II Physical Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4. Digital Transmission
CHAPTER : 04 Encoding & Modulation
CHAPTER 3 DATA AND SIGNAL
Encoding Prof. Choong Seon HONG.
Chapter 4 Digital Transmission
Chapter 5. Data Encoding Digital Data, Digital Signals
Presentation transcript:

Analog and Digital Signals NETE 0510 Dr.Apichan Kanjanavapastit

Analog and Digital Analog refers to something that is continuous—a set of specific points of data and all possible points between Digital refers to something that is discrete—a set of specific points of data with no other points in between

Analog and Digital Data Data can be analog or digital Human voice is an example of analog data. When somebody speaks, a continuous wave is created in the air. This can be captured by a microphone and converted to an analog signal

Analog and Digital Data (cont.) An example of digital data is data stored in the memory of computer in the form of 0s and 1s It is usually converted to a digital signal when it is transferred from one position to another inside or outside the computer

Analog and Digital Signals An analog signal is a continuous wave form that changes smoothly over time A digital signal is discrete. It can have only a limited number of defined values, often as simple as 1 and 0

Periodic Signals A signal is a periodic signal if it completes a pattern within a measurable time frame, called period, and repeats that pattern over identical subsequent periods The completion of one full pattern is called a cycle A period is defined as the amount of time (in seconds) required to complete one cycle

Aperiodic Signals An aperiodic, or nonperiodic, signal changes constantly without exhibiting a pattern or cycle that repeats over time It has been proved by a Fourier transform that any aperiodic signal can be decomposed into an infinite number of periodic signals

Analog Signals Analog signals can be classified as simple or composite A simple analog signal, or a sine wave, cannot be decomposed into simpler signals A composite analog signal is composed of multiple sine wave Simple analog signal Composite analog signal

Simple Analog Signals The sine wave is the most fundamental form of a periodic analog signal Visualized as a simple oscillating curve, its change over the course of a cycle is smooth and consistent, a continuous, rolling flow Sine waves can be fully described by 3 characteristics: amplitude, period or frequency, and phase

Amplitude On a graph, the amplitude of a signal is the value of the signal at any point on the wave Amplitude is measured in either volts, amperes, or watts, depending on the type of signal

Period or Frequency Period refers to the amount of time, in second, a signal needs to complete one cycle Frequency refers to the number of periods in one second; thus the frequency of a signal is its number of cycles per second

Unit of Period and Frequency Equivalent Seconds (s) 1 s hertz (Hz) 1 Hz Milliseconds (ms) 10–3 s kilohertz (KHz) 103 Hz Microseconds (ms) 10–6 s megahertz (MHz) 106 Hz Nanoseconds (ns) 10–9 s gigahertz (GHz) 109 Hz Picoseconds (ps) 10–12 s terahertz (THz) 1012 Hz

Example#1 Show 20 MHz in Hz, kHz, and GHz

Example#2 A sine wave has a frequency of 20 kHz. What is its period?

Phase The term phase describes the position of the waveform relative to time zero; it indicates the status of the first cycle Phase is measured in degrees or radians (360 degrees is 2*pi radians)

Phase Difference Two oscillators that have the same frequency and different phases have a phase difference, and the oscillators are said to be out of phase with each If the phase difference is 180 degrees (π radians), then the two oscillators are said to be in antiphase. If two interacting waves meet at a point where they are in antiphase, then destructive interference will occur It is common for waves of electromagnetic (light, RF), acoustic (sound) or other energy to become superimposed in their transmission medium

Example of Phase Difference

Time and Frequency Domains The time domain plot shows changes in signal amplitude with respect to time, phase and frequency are not explicitly measured on a time-domain plot To show the relationship between amplitude and frequency, we can use what is called a frequency-domain plot

Composite Signals Many useful wave forms do not change in a single smooth curve between a minimum and a maximum amplitude; they jump, slide, wobble, spike, and dip In fact, it can be shown that any periodic signal can be decomposed into a collection of sine waves, each having a measurable amplitude, frequency, and phase To decompose a composite signal into its components, Fourier analysis is needed

Composite Signals (cont.)

Frequency Spectrum and Bandwidth The frequency spectrum of a signal is the collection of all the component frequencies it contains and is shown using a frequency-domain graph The bandwidth of a signal is the width of the frequency spectrum To calculate the bandwidth, subtract the lowest frequency from the highest frequency of the range

Digital Signals Most digital signals are aperiodic and period or frequency is not appropriate Bit interval (instead of period) and bit rate (instead of frequency) are used to describe digital signals The bit interval is the time required to send one single bit. The bit rate is the number of bit intervals per second (bits per second: bps)

Example#3 A digital signal has a bit interval of 125 microseconds. What is the bit rate

Transmission of Digital Signals A digital signal can be decomposed into an infinite number of sine waves called harmonics, each with a different amplitude, frequency, and phase When we send a digital signal along a transmission medium, some of the components are not passed through the medium, corruption of the signal at the receiver is the result

Transmission of Digital Signals through Low Pass Channel Baseband transmission of a digital signal that preserves the shape of the digital signal is possible only if we have a low-pass Channel with an infinite or very wide bandwidth

Transmission of Digital Signals through Low Pass Channel (cont.) In practice, it is impossible to have an infinite low pass channel. Most low pass channels are band-limited channels In order to preserve the shape of the digital signals passing through a band-limited channel, a minimum bandwidth of the digital signals is required

Calculation of the Minimum Bandwidth Approximate the digital signal with an analog signal For a digital signal of bit rate N, to roughly simulate this signal, consider the worst case, a maximum number of changes in the digital signal, e.g., 010101… or 101010…. We need an analog signal of frequency Minimum bandwidth = N/2

Calculation of the Minimum Bandwidth (cont.)

Example#4 What is the maximum bit rate of the 150 kHz channel?

Transmission of Digital Signals through Band Pass Channel Band-pass channel is a channel with a bandwidth that does not start from zero To transmit a digital signal through band pass channel, the signal must be transform to a form of analog signal using modulation technique This digital transmission technique is called broadband transmission

Encoding and Modulating Data stored in a computer are in the form of 0s and 1s. To be carried from one place to another, data are usually converted to digital signals. This is called digital-to-digital conversion or encoding digital data into a digital signal Sometimes, we need to convert an analog signal into a digital signal. This is called analog-to-digital conversion or digitizing an analog signal

Encoding and Modulating (cont.) At other times, we want to send a digital signal coming out of a computer through a medium designed for an analog signal. The signal produced by the computer should be converted to an analog signal. This is called digital-to-analog conversion or modulating a digital signal Often an analog signal such as voice or music is sent over long distances using analog media. However, the frequency of the voice or music is not appropriate for this kind of transmission; the signal should be carried by a higher-frequency signal; This is called analog-to-analog conversion or modulating an analog signal

Encoding and Modulating (cont.) digital-to-digital conversion analog-to-digital conversion digital-to-analog conversion

Digital Line Coding (Digital-to-Digital Conversion) Line coding is a process of converting digital data to digital signal There are a number of line coding techniques but they fall into 3 broad categories: unipolar, polar, and bipolar

Signal element versus data element

Unipolar Unipolar encoding is very simple and very primitive. Unipolar is so named because it uses only one polarity In unipolar Non-Return-to-Zero (NRZ), this polarity is assigned to one of the two binary states, usually the 1. The other state usually the 0 is represented by zero voltage

The Problems of Unipolar Encoding Unipolar encoding has at least two problems that make it less desirable: a DC component and synchronization DC Component. Since the average amplitude of a unipolar encoded signal is nonzero, this creates what is called a direct current (DC) component (a component with zero frequency) When a signal contains a DC component, it cannot travel through media that cannot handle DC components causes a DC wander problem when transmitting a long string of 1s or 0s

The Problems of Unipolar Encoding (cont.) When a signal is unvarying, the receiver cannot determine the beginning and ending of each bit Therefore, a synchronization problem in unipolar encoding can occur whenever the data stream includes a long uninterrupted series of 1s or 0s Lack of synchronization between the sender’s and the receiver’s clocks distorts the timing of the signal

Example#5 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?

Polar Polar encoding uses 2 voltage level: one positive and one negative By using both levels, the average voltage level on the line is reduced and the DC component problem of unipolar encoding is alleviated The three most popular polar encodings are NRZ, return to zero (RZ), and biphase

Polar (cont.) NRZ encoding includes two methods: NRZ level (NRZ-L), and NRZ-invert (NRZ-I) Biphase also refers to 2 methods. The first, Manchester, is the method used by ethernet LANs. The second, Differential Manchester, is the method used by Token Ring LANs.

Nonreturn to Zero (NRZ) NRZ-L. The level of the signal depends on the type of bit it represents A positive voltage usually means the bit is a 0, and a negative voltage means the bit is a 1 (or vice versa); thus, the level of the signal is dependent upon the state of the bit NRZ-I. An inversion of the voltage level represents a 1 bit. A 0 bit is represented by no change

Return to Zero (RZ) As we see that the NRZ-I accomplishes the synchronization just only the 1 bits, to change every bit, we need more than just 2 values In RZ, the signal changes not between bits but during each bit. And a positive voltage means 1 and a negative voltage means 0 In addition, a 1 bit is actually represented by positive-to-zero and a0 bit by negative-to-zero

RZ (cont.) The main disadvantage of RZ encoding is that it requires 2 signal changes to encode one bit and therefore occupies more bandwidth

Biphase In biphase, the signal changes at the middle of the bit interval but does not return to zero. Instead, it continues to the opposite pole There are 2 types of biphase encoding: Manchester and differential Manchester In Manchester, a negative-to-positive transition represents binary 1 and a positive-to-negative transition represents binary 0

Biphase (cont.) In Differential Manchester, the presence or absence of an additional transition at the beginning of the interval is used to identify the bit A transition means binary 0 and no transition means binary 1; thus differential Manchester requires 2 signal changes to represent binary 0 but only one to represent binary 1

Bipolar Bipolar encoding uses 3 voltage levels: positive, negative, and zero The 1s are represented by alternating positive and negative voltages The zero level is used to represent binary 0 Three types of bipolar encoding are in popular used by the data communications industry: AMI, B8ZS and HDB3

Alternate Mark Inversion (AMI) AMI means alternate 1 inversion. A zero voltage represents binary 0 A variation of AMI is called pseudoternary, in which binary 0 alternates between positive and negative voltages Two variations of AMI have been developed to solve the problem of synchronizing sequential 0s: bipolar 8-zero substitution (B8ZS) and high-density bipolar 3 (HDB3)

High-Density Bipolar 3 (HDB3) HDB3 introduces changes into the bipolar AMI pattern every time 4 consecutive 0s are encountered HDB3 is based on the polarity of the previous 1 bit. It also looks at the number of 1s that have occurred in the bit stream since the last substitution

Example#6 Using HDB3, encode the bit stream 10000000000100. Assume that the number of 1s so far is odd and the first 1 is positive

Summary of Line Coding

Analog-to-Digital Conversion In ADC, we are representing the information contained in continuous wave form as a series of digital pulses The problem is how to translate information from an infinite number of values to a discrete number of values without sacrificing sense or quality A well-known of ADC technique is called pulse code modulation (PCM)

Pulse Amplitude Modulation (PAM) PAM is the first step in ADC and it is the foundation of the PCM PAM takes an analog signal, samples it, and generates a series of pulses based on the results of the sampling The term sampling means measuring the amplitude of the signal at equal intervals

Pulse Code Modulation (PCM) PCM modifies the pulses created by PAM to create a completely digital signal To do so, PCM first quantizes the PAM pulses. Quantization is a method of assigning integral values in a specific range to sampled instances

Binary encoding : Quantization using sign and magnitude PCM (cont.) Then, each quantized value is translated into its 7-bit binary equivalent. The 8th bit indicates the sign The binary digits are then transformed into a digital signal using one of the line coding techniques Binary encoding : Quantization using sign and magnitude

From analog signal to PCM digital code

Nyquist Theorem The accuracy of any digital reproduction of an analog signal depends on the number of samples taken Using PAM and PCM, we can reproduce the wave form exactly by taking infinite samples According to Nyquist theorem, it requires remarkably little information for the receiving device to reconstruct an analog signal

Nyquist Theorem (cont.) In Nyquist theorem, the sampling rate must be at least twice the highest frequency of the original signal

What happens if the sampling frequency not corresponding to the Nyquist theorem

Example#7 What sampling rate is needed at minimum for a signal with a bandwidth of 20 kHz? The signal then is sampled. Each sample requires at least 12 levels or precision. How many bits should be sent for each sample? Calculate the bit rate for the PCM output

Homework Draw the following line coding of the binary data ‘100001000000011010’ NRZ-L NRZ-I Manchester Differential Manchester AMI HDB3 (Assume that the number of 1s so far is even and the first 1 is positive) Calculate the PCM bit rate of the signal having 16 kHz sampled by 64 kHz and a sampled data is encoded by 12 bit

Digital-to-Analog Conversion Digital-to-analog conversion or digital-to-analog modulation is the process of changing one of the characteristics of an analog signal based on the information in a digital signal (0s and 1s)

Most Useful Modulation Techniques for Data Communications A sine wave is defined by 3 characteristics: amplitude, frequency, and phase; thus by changing one aspect of the sine wave, we can use it for represent digital data There are 3 mechanisms for modulating digital data into an analog signal: amplitude shift keying (ASK), frequency shift keying (FSK), and phase shift keying (PSK) In addition, there is a fourth mechanism that combines changes in both amplitude and phase called quadrature amplitude modulation (QAM)

Amplitude Shift Keying (ASK) In ASK, the strength of the carrier signal is varied to represent binary 1 or 0 Both frequency and phase remain constant while the amplitude changes ASK transmission is highly susceptible to noise interference yBASK(t) = A1 sin (2*pi*fc*t), for binary 1 = A0 sin (2*pi*fc*t), for binary 0

Implementation of ASK

Bandwidth for ASK When we decompose an ASK-modulated signal, we get a spectrum of many simple frequencies The most significant ones are those between fc-Nbaud/2 and fc+Nbaud/2 with the carrier frequency, fc, at the middle

Bandwidth for ASK (cont.) Bandwidth requirements for ASK are calculated using the formula Where BW is the bandwidth Nbaud is the baud rate d is a modulating factor related to the condition of the line (with a minimum value of 0) and it can be calculated from (A1-A0)/(A1+A0) BW = (1+d) x Nbaud

Example#8 Find the minimum bandwidth for an ASK signal transmitting at 1000 bps. The transmission mode is half-duplex

Example#9 Given a bandwidth of 10 kHz supporting a full duplex transmission mode, find the baud rate in each direction

Frequency Shift Keying (FSK) In FSK, the frequency of the carrier signal is varied to represent bit 1 or 0 The frequency of the signal during each bit duration is constant and its value depends on the bit: both peak amplitude and phase remain constant FSK avoids most of the noise problems of ASK since the receiving device is looking for specific frequency changes over a given number of periods yBFSK(t) = A sin (2*pi*fc1*t), for binary 1 = A sin (2*pi*fc0*t), for binary 0

Implementation of BFSK

Bandwidth for FSK The bandwidth required for FSK transmission is equal to the following equation: BW = 2*(fc1-fc) + (1+d)*Nbaud

Example#10 Find the minimum bandwidth for an FSK signal transmitting at 1000 bps. Transmission is in half-duplex mode, the modulating factor is 1 and the carriers must be separated by 2 kHz

Phase Shift Keying (PSK) In PSK, the phase of the carrier is varied to represent binary 1 or 0. Both peak amplitude and frequency remain constant as the phase changes yBASK(t) = A sin (2*pi*fc*t), for binary 0 = A sin (2*pi*fc*t+pi), for binary 1

Implementation of BPSK

Bandwidth for PSK

Quadrature PSK (QPSK) More efficient use of bandwidth can be achieved if each signaling element represents more than one bit For example, instead of a phase shift of 180 degrees, as allowed in PSK, a common encoding technique, known as QPSK, uses phase shifts of multiples of pi/2 (90 degrees)

Constellation Diagram A constellation diagram is a representation of a signal modulated by a digital modulation scheme such as quadrature amplitude modulation or phase shift keying It displays the signal as a two-dimensional scatter diagram in the complex plane at symbol sampling instants

Constellation Diagram (cont.)

Quadrature Amplitude Modulation (QAM) Quadrature amplitude modulation is a combination of ASK and PSK In QAM, it is possible to transfer more bits per position as there are multiple points of transfer; thus, the modulation efficiency is increased

Constellation Diagram of QAMs

Example#11 Given a bandwidth of 5000 Hz for an 8-PSK signal, what are the baud rate and bit rate? Compute the bit rate for a 1000-baud 16-QAM signal