analog transmission of digital data: ask, fsk, psk,...

22
1 Analog Transmission Analog Transmission of Digital Data: of Digital Data: ASK, FSK, PSK, QAM ASK, FSK, PSK, QAM CSE 3213, Fall 2010 Instructor: N. Vlajic Required reading: Garcia 3.7

Upload: buique

Post on 18-Mar-2018

263 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

1

Analog Transmission Analog Transmission of Digital Data:of Digital Data:

ASK, FSK, PSK, QAMASK, FSK, PSK, QAM

CSE 3213, Fall 2010Instructor: N. Vlajic

Required reading:Garcia 3.7

Page 2: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

2Why Do We Need Digital-to-Analog Conversion?!

1) The medium/channel is band pass, and/or2) Multiple users need to share the medium.

Page 3: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

3Modulation of Digital Data

ModulationModulation – process of converting digital data or a low-passanalog to band-pass (higher-frequency) analog signal

Digital-to-analog modulation.

Analog-to-analog modulation.

Carrier SignalCarrier Signal – aka carrier freq. or modulated signal - high freq.signal that acts as a basis for the information signal• information signal is called modulating signal

freq

bandpass channel

Page 4: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

4Modulation of Digital Data (cont.)

DigitalDigital--toto--Analog Analog ModulationModulation

– process of changing one of the characteristicof an analog signal (typically a sinewave) basedon the information in a digital signal• sinewave is defined by 3 characteristics (amplitude,

frequency, and phase) ⇒ digital data (binary 0 & 1)can be represented by varying any of the three

• application: transmission of digital data over telephone wire (modem)

Types of DigitalTypes of Digital--toto--Analog Analog ModulationModulation

Page 5: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

5Modulation of Digital Data: ASK

ASKASK – strength of carrier signal is varied to represent binary 1 or 0• both frequency & phase remain constant while amplitude changes• commonly, one of the amplitudes is zero

• demodulation: only the presence or absence of a sinusoid in a given time interval needs to be determined

• advantage: simplicity• disadvantage: ASK is very susceptible to noise interference –

noise usually (only) affects the amplitude, therefore ASK is the modulation technique most affected by noise

• application: ASK is used to transmit digital data over optical fiber

⎩⎨⎧

=⎩⎨⎧

=1binary t),fAcos(20binary 0,

1binary t),fcos(2A0binary t),fcos(2A

s(t)cc 1

c0

πππ

Is this picture,from the textbook,entirely correct?!

+A

-A

Page 6: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

6Modulation of Digital Data: ASK (cont.)

Example [ ASK ]

vd(t)

vc(t)

vASK(t)

How does the frequency spectrum of vASK(t) look like!?

fvd(f) vc(f)

Page 7: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

7Modulation of Digital Data: ASK (cont.)

ASKASK--Modulated Signal: Frequency SpectrumModulated Signal: Frequency Spectrum

t)cos(ωt)fcos(2(t)v ccc == π

⎥⎦⎤

⎢⎣⎡ −+−+⋅= ...tcos5ω

5π2tcos3ω

3π2tcosω

π2

21A(t)v 000d

Carrier signal: , where 2πfc=ωc

Digital signal:(unipolar!!!)

ωc ωωd_max

Modulated signal:

( ) ( )[ ]

( ) ( )[ ] ...t3ωωcost3ωωcos3π1

-tωωcostωωcosπ1tcosω

21

...tcos3ωtcosω3π2-tcosωtcosω

π2tcosω

21

...tcos5ω5π2tcos3ω

3π2tcosω

π2

21tcosω

(t)v(t)v(t)v

0c0c

0c0cc

0c0cc

000c

dcASK

+++−−

++−+=

=+⋅⋅+=

=⎥⎦⎤

⎢⎣⎡ −+−+⋅=

=⋅=

( )B)cos(AB)-cos(A21cosBcosA ++=⋅

ωc ωωc+ωd_maxωc-ωd_max

Page 8: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

8Modulation of Digital Data: FSK

FSKFSK – frequency of carrier signal is varied to represent binary 1 or 0• peak amplitude & phase remain constant during each bit interval

• demodulation: demodulator must be able to determine which of two possible frequencies is present at a given time

• advantage: FSK is less susceptible to errors than ASK – receiverlooks for specific frequency changes over a numberof intervals, so voltage (noise) spikes can be ignored

• disadvantage: FSK spectrum is 2 x ASK spectrum

• application: over voice lines, in high-freq. radio transmission, etc.

⎩⎨⎧

=1binary t),fAcos(20binary t),fAcos(2

s(t)2

1

ππ

f1<f2+A

-A

Page 9: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

9Modulation of Digital Data: FSK (cont.)

Example [ FSK ]

vd(t)

vc1(t)

vc2(t)

vFSK(t)

ω1 ωωd_max ω2ω1 ωω1-ωd_max

ω2 ω2+ωd_max

Page 10: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

10Modulation of Digital Data: FSK (cont.)

FSKFSK--Modulated Signal: Frequency SpectrumModulated Signal: Frequency Spectrum

(t)vdDigital signal: - modulated with ω1 , and

- modulated with ω2

Modulated signal:

( ) ( )[ ]

( ) ( )[ ]

( ) ( )[ ]

( ) ( )[ ] ++++−+

++−−

++++−−

++−+=

=

=⎥⎦⎤

⎢⎣⎡ −−+−⋅+

+⎥⎦⎤

⎢⎣⎡ −+−+⋅=

=−⋅+⋅=

...t3ωωcost3ωωcos3π1

-tωωcostωωcosπ1tcosω

21

...t3ωωcost3ωωcos3π1

-tωωcostωωcosπ1tcosω

21

...tcos5ω5π2tcos3ω

3π2tcosω

π2

21tcosω

...tcos5ω5π2tcos3ω

3π2tcosω

π2

21tcosω

(t))vtcosω(t)vtcosω(t)v

0202

02022

0101

01011

0002

0001

d2d1FSK

...

1(

(t)v1-(t)'v dd =

Page 11: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

11

PSKPSK – phase of carrier signal is varied to represent binary 1 or 0• peak amplitude & freq. remain constant during each bit interval

• example: binary 1 = 0º phase, binary 0 = 180º (πrad) phase⇒ PSK is equivalent to multiplying carrier signal by +1 when the information is 1, and by -1 when the information is 0

• demodulation: demodulator must determine the phase of receivedsinusoid with respect to some reference phase

• advantage: PSK is less susceptible to errors than ASK, while itrequires/occupies the same bandwidth as ASKmore efficient use of bandwidth (higher data-rate) are possible, compared to FSK !!!

• disadvantage: more complex signal detection / recovery process, than in ASK and FSK

⎩⎨⎧

+=

0binary ),tfAcos(21binary t),fAcos(2

s(t)c

c

πππ

Modulation of Digital Data: PSK

2-PSK, or Binary PSK,

since only 2 different phases

are used.

+A

-A

⎩⎨⎧

=0binary t),fAcos(2-1binary t),fAcos(2

s(t)c

c

ππ

Page 12: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

12Modulation of Digital Data: PSK (cont.)

Example [ PSK ]

vd(t)

vc(t)

vPSK(t)

ωc ωωd_max ωc ωωc+ωd_maxωc-ωd_max

Page 13: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

13Modulation of Digital Data: PSK (cont.)

PSK Detection PSK Detection – multiply the received / modulated signalby 2*cos(2πfct)

• resulting signal

• by removing the oscillatory part with alow-pass filter, the original baseband signal(i.e. the original binary sequence) can beeasily determined

[ ] 1binary , t)fcos(41At)f(22Acos cc2 ππ +=

[ ] 0binary , t)fcos(41At)f(22Acos- cc2 ππ +−=

t)fAcos(2 cπ±( )2A cos1

21Acos2 +=

Page 14: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

14Modulation of Digital Data: PSK (cont.)

1 1 1 10 01 1 1 10 0Information

BasebandSignal

+A

-A0 T 2T 3T 4T 5T 6T

+A

-A0 T 2T 3T 4T 5T 6T

+A

-A0 T 2T 3T 4T 5T 6T

+A

-A0 T 2T 3T 4T 5T 6T

ModulatedSignal

x(t)

A cos(2πft) -A cos(2πft)

After multiplicationat receiver

x(t) cos(2πfct)

+A

-A0 T 2T 3T 4T 5T 6T

+A

-A0 T 2T 3T 4T 5T 6T

A {1 + cos(4πft)} -A {1 + cos(4πft)}

Basebandsignal discernable

after smoothing

+A

-A0 T 2T 3T 4T 5T 6T

sender

receiver

Signal shifted above / below zero level.

Page 15: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

15Modulation of Digital Data: PSK (cont.)

B

fc+B

f

ffc-B fc

• If bandpass channel has bandwidth Wc [Hz],

then baseband channel has Wc/2 [Hz] available, somodulation system supports 2*(Wc/2) = Wc [pulses/second]

recall Nyqyist Law: baseband transmission system of bandwidth Wc [Hz] can theoretically support 2 Wc pulses/sec

Facts from Modulation TheoryFacts from Modulation Theory

Wc

Wc/2Baseband signal x(t) with bandwidth Wc/2

If

then

Modulated signal x(t)cos(2πfct) has bandwidth Wc Hz

How can we recover the factor 2 in supported data-rate !?

Data rate = 2*Wc/2 = B [bps]

Page 16: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

16Modulation of Digital Data: PSK (cont.)

QPSK = 4QPSK = 4--PSKPSK – PSK that uses phase shifts of 90º=π/2 rad ⇒ 4different signals generated, each representing 2 bits

• advantage: higher data rate than in PSK (2 bits per bitinterval), while bandwidth occupancy remains the same

• 4-PSK can easily be extended to 8-PSK, i.e. n-PSK

• however, higher rate PSK schemes are limited by theability of equipment to distinguish small differences inphase

⎪⎪⎪

⎪⎪⎪

+

+

+=

11binary ),2

3tfAcos(2

10binary ),tfAcos(2

01binary ),2

tfAcos(2

00binary t),fAcos(2

s(t)

c

c

c

c

ππ

ππ

ππ

π

Page 17: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

17Modulation of Digital Data: QAMQuadratureQuadratureAmplitudeAmplitudeModulation Modulation (QAM)(QAM)

– uses “two-dimensional” signalling• original information stream is split into two sequences that

consist of odd and even symbols, e.g. Bk and Ak

• Ak sequence (in-phase comp.) is modulated by Bk sequence (quadrature-phase comp.) is modulated by

• composite signal is sent through the channel

• advantage: data rate = 2 bits per bit-interval!

B1 B2 B3A1 A2 A3 …

Ak x

cos(2πfct)

Yi(t) = Ak cos(2πfct)

Bk x

sin(2πfct)

Yq(t) = Bk sin(2πfct)

+

TransmittedSignal

Y(t) = Ak cos(2πfct) + Bk sin(2πfct)

t)fcos(2 cπ

t)fsin(2 cπ

t)fsin(2Bt)fcos(2A ckck ππ +

1 -1 1 1 -1 1 …1 0 1 1 0 1 …

Page 18: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

18Modulation of Digital Data: QAM (cont.)

Example [ QAM ]

Bk

vd(t)

Ak

sin(ωct)

cos(ωct)

Page 19: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

19Modulation of Digital Data: QAM

QAM QAM DemodulationDemodulation • by multiplying Y(t) by and then low-pass filtering the resultant signal, sequence Ak is obtained

t)fcos(22 cπ⋅

• by multiplying Y(t) by and then low-pass filtering the resultant signal, sequence Bk isobtained

t)fsin(22 cπ⋅

=+ t)fsin(2Bt)fcos(2A ckck ππ

( )cos(2A)121(A)cos2 +=

( )cos(2A)121(A)sin2 −=

(A)2sin(A)cossin(2A) =

Y(t) x

2cos(2πfct)2Akcos2(2πfct)+2Bk cos(2πfct)sin(2πfct)

= Ak {1 + cos(4πfct)}+Bk {0 + sin(4πfct)}

Lowpassfilter

(smoother)Ak

2Bk sin2(2πfct)+2Ak cos(2πfct)sin(2πfct)= Bk {1 - cos(4πfct)}+Ak {0 + sin(4πfct)}

x

2sin(2πfct)

Bk

Lowpassfilter

(smoother)

smoothed to zero

smoothed to zero

Y(t) x

2cos(2πfct)2Akcos2(2πfct)+2Bk cos(2πfct)sin(2πfct)

= Ak {1 + cos(4πfct)}+Bk {0 + sin(4πfct)}

Lowpassfilter

(smoother)Ak

x

2cos(2πfct)2Akcos2(2πfct)+2Bk cos(2πfct)sin(2πfct)

= Ak {1 + cos(4πfct)}+Bk {0 + sin(4πfct)}

Lowpassfilter

(smoother)Ak

2Bk sin2(2πfct)+2Ak cos(2πfct)sin(2πfct)= Bk {1 - cos(4πfct)}+Ak {0 + sin(4πfct)}

x

2sin(2πfct)

Bk

Lowpassfilter

(smoother)x

2sin(2πfct)

Bk

Lowpassfilter

(smoother)

smoothed to zero

smoothed to zero

Page 20: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

20Signal Constellation

Constellation DiagramConstellation Diagram – used to represents possible symbols that maybe selected by a given modulation scheme aspoints in 2-D plane

• X-axis is related to in-phase carrier: cos(ωct)the projection of the point on the X-axis definesthe peak amplitude of the in-phase component

• Y-axis is related to quadrature carrier: sin(ωct)the projection of the point on the Y-axis definesthe peak amplitude of the quadrature component

• the length of line that connects the point tothe origin is the peak amplitude of the signalelement (combination of X & Y components)

• the angle the line makes with the X-axis is the phase of the signal element

Page 21: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

21Modulation of Digital Data: QAM

QAM cont.QAM cont. – QAM can also be seen as a combination of ASK & PSK

( ) )ABtantfcos(2BAt)fsin(2Bt)fcos(2AY(t)

k

k1-ckkckck ++=+= πππ 2

122

Ak

Bk

(A, A)

(A,-A)(-A,-A)

(-A,A)

Ak

Bk

Ak

Bk

(A, A)

(A,-A)(-A,-A)

(-A,A)

4-level QAM

Page 22: Analog Transmission of Digital Data: ASK, FSK, PSK, QAMweb.stanford.edu/class/ee102b/contents/DigitalModulation.pdf · Analog Transmission of Digital Data: ASK, FSK, PSK, QAM CSE

22

Ak

Bk

Ak

Bk

Modulation of Digital Data: QAM

1616--level QAMlevel QAM – the number of bits transmitted per T [sec] interval can be further increased by increasing the number of levels used• in case of 16-level QAM, Ak and Bk individually can

assume 4 different levels: -1, -1/3, 1/3, 1

• data rate: 4 bits/pulse ⇒ 4W bits/second

( ) )ABtantfcos(2BAt)fsin(2Bt)fcos(2AY(t)

k

k1-ckkckck ++=+= πππ 2

122

In QAM various combinations of amplitude and phase are employed to achieve higher digital data rates.

Amplitude changes are susceptible to noise ⇒ the number of phase shifts used by a QAM system is always greater than the number of amplitude shifts.

Ak and Bk individually can take on 4 different values;the resultant signal can takeon (only) 3 different values!!!