Presentation is loading. Please wait.

Presentation is loading. Please wait.

Analog and Digital Signals

Similar presentations


Presentation on theme: "Analog and Digital Signals"— Presentation transcript:

1 Analog and Digital Signals
NETE 0510 Dr.Apichan Kanjanavapastit

2 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

3 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

4 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

5 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

6 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

7 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

8 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

9 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

10 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

11 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

12 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

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

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

15 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)

16 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

17 Example of Phase Difference

18 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

19 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

20 Composite Signals (cont.)

21 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

22 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)

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

24 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

25 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

26 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

27 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., … or …. We need an analog signal of frequency Minimum bandwidth = N/2

28 Calculation of the Minimum Bandwidth (cont.)

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

30 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

31 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

32 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

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

34 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

35 Signal element versus data element

36 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

37 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

38 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

39 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?

40 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

41 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.

42 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

43 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

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

45 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

46 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

47 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

48 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)

49 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

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

51 Summary of Line Coding

52 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)

53 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

54 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

55 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

56 From analog signal to PCM digital code

57 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

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

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

60 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

61 Homework Draw the following line coding of the binary data ‘ ’ 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

62 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)

63 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)

64 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

65 Implementation of ASK

66 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

67 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

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

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

70 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

71 Implementation of BFSK

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

73 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

74 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

75 Implementation of BPSK

76 Bandwidth for PSK

77 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)

78 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

79 Constellation Diagram (cont.)

80 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

81 Constellation Diagram of QAMs

82 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


Download ppt "Analog and Digital Signals"

Similar presentations


Ads by Google