data and computer communications

64
Data and Computer Data and Computer Communications Communications Eighth Edition Eighth Edition by William Stallings by William Stallings Lecture slides by Lawrie Lecture slides by Lawrie Brown Brown Chapter 5 – Signal Encoding Chapter 5 – Signal Encoding Techniques Techniques

Upload: barney

Post on 13-Jan-2016

67 views

Category:

Documents


4 download

DESCRIPTION

Data and Computer Communications. Chapter 5 – Signal Encoding Techniques. Eighth Edition by William Stallings Lecture slides by Lawrie Brown. Signal Encoding Techniques. Even the natives have difficulty mastering this peculiar vocabulary —The Golden Bough , Sir James George Frazer. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Data and Computer Communications

Data and Computer Data and Computer CommunicationsCommunications

Eighth EditionEighth Edition

by William Stallingsby William Stallings

Lecture slides by Lawrie BrownLecture slides by Lawrie Brown

Chapter 5 – Signal Encoding Chapter 5 – Signal Encoding Techniques Techniques

Page 2: Data and Computer Communications

Signal Encoding TechniquesSignal Encoding Techniques

Even the natives have difficulty mastering this peculiar vocabulary

—The Golden Bough, Sir James George Frazer

Page 3: Data and Computer Communications

PENGODEAN DATAPENGODEAN DATA Karakter data yang akan dikirim dari suatu titik Karakter data yang akan dikirim dari suatu titik

ke titik yang lain tidak dapat dikirim secara ke titik yang lain tidak dapat dikirim secara langsung.langsung.

Karakter-karakter data tersebut harus Karakter-karakter data tersebut harus dikodekan terlebih dahulu dengan kode yang dikodekan terlebih dahulu dengan kode yang dikenal oleh setiap terminal yang adadikenal oleh setiap terminal yang ada

Ttujuan dari pengodean adalah menjadikan Ttujuan dari pengodean adalah menjadikan setiap karakter dalam sebuah informasi digital setiap karakter dalam sebuah informasi digital ke dalam bentuk biner agar dapat ke dalam bentuk biner agar dapat ditransmisikan.ditransmisikan.

Page 4: Data and Computer Communications

KODE-KODEKODE-KODE Kode yang digunakan pada komunikasi data :Kode yang digunakan pada komunikasi data :1.BCD (Binary Coded Decimal)1.BCD (Binary Coded Decimal)

2.SBCDIC (Standard Binary Coded Decimal2.SBCDIC (Standard Binary Coded Decimal

Interchange Code)Interchange Code)

3. EBCDIC (Extended Binary Coded Decimal3. EBCDIC (Extended Binary Coded Decimal

Interchange Code)Interchange Code)

4. BOUDDOT4. BOUDDOT

5.ASCII (American Satndard Code for Information5.ASCII (American Satndard Code for Information

Interchange)Interchange)

Page 5: Data and Computer Communications

KODE BCD : Binary Coded DecimalKode biner yang mewakili 0 – 9, yang merupakan kombinasi 4 bit,Kombinasi kode maksimal 16, tapi yang digunakan hanya 0-9 dan tidak bisa untuk huruf.

BCD 4 Bit Decimal

0000 0

0001 1

0010 2

0011 3

0100 4

0101 5

0110 6

0111 7

10001001

8 9

Page 6: Data and Computer Communications

KODE SBCDIC: Standard Binary Coded Decimal Interchange CodeKombinasi 6 bit , kombinasi maksimal 64 kode, 10 kode untuk angka, 26 kode untuk huruf, sisanya untuk kode yang lain.

BA8421 KARAKTER

BA8421 KARAKTER

BA8421 KARAKTER

BA8421 KARAKTER

001010000001000010000011000100000101000110000111001000001001

0123456789

110001110010110011110100110101110110110111111000111001100001

ABCDEFGHIJ

100010100011100100100101100110100111101000101001010010010011

KLMNOPQRST

010100010101010110010111011000011001

UVWXYZ

Page 7: Data and Computer Communications

KODE EBCDIC :Extended Binary Coded Decimal Interchange CodeKode 8 bit, maksimal karakter 256

Pada EBCDIC, hight –order bits atau 4 bit pertama disebut zone bit dan low-order bits atau 4 bit kedua disebut dengan numeric bit.

Merupakan pengembangan dari kode 6 bit yang dipakai untuk kartu berlubang.

Dipakai pada komputer generasi ketiga, seperti pada IBM

Page 8: Data and Computer Communications

KODE BOUDOTTerdiri dari 5 bit yang digunakan pada terminal teletype dan teleprinterTerdiri dari 25 sampai 32 kombinasi dengan kode huruf dan gambar yang berbeda.

Kode Huruf Figure Kode Huruf Figure Kode Huruf Figure

11000100110111010010100001011001011001010110011010111100100100111001100001101101

ABCDEFGHIJKLMNOP

-?:$3!&#8‘().,90

11101010101010000001111000111111001101111010010001111111101100100000100100000000

QRSTUVWXYZ

LTRSFIGSSPCCRLF

NULL

14BELL57;2/6=LTRSFIGSSPCCRLF

NULL

Page 9: Data and Computer Communications

KODE ASCII:American Standard Code for Information InterchangeASCII 7 Bit standar alfabet no. 5 berdasarkan ISOKode ini menggunakan 7 bit dan bit yang kedelapan digunakan untuk posisi pengecekan bit secara even atau odd parity.Memiliki 128 kombinasi yang selalu digunakan.32 kode untuk fungsi kendali, yang lain untuk alphanumeric dan karakter khusus.

KODE ASCII

Page 10: Data and Computer Communications

Dari 128 kode ASCII, 34 untuk keperluan khusus seperti :

Null = NullSOH = Start Of HeadingSTX = Start Of TextETX = End Of TextEOT = End of TransmissionENQ = ENQuiryACK = ACKnowledgeBEL = Audible signal (Bell)DLE = Data Link EscapeDC1 = Device Control 1DC2 = Device Control 2DC3 = Device Control 3DC4 = Device Control 4NAK = Negative AcknowledgeSYN = SYNchronous idleETB =End Transmissin BlockBS = BackspaceHT = Horizontal TabLF = Line FeedVT = Vertical TabFF = Form FeedCR = Carriage Return

SO = Shift OutSI = Shift InDEL = DeleteCAN = CancelEM = End of MediumSUB =SubtituteESC = EscapeFS = File SeparationGS = Group SeparatorRS = Record SeparatorUS = Unit SeparatorSP = Space

Kode ASCII terdiri dari karakter kontrol dan karakter informasi.Karakter kontrol untuk mengontrol pengiriman data, sedangkan karakter informasi merupakan karakter2 yang mewakili data itu sendiri

Page 11: Data and Computer Communications

Kode ASCII 8 bit, mempunyai kombinasi bit yang lebih banyak, sehingga karakter-karakter yang tidak dapat diwakili 7 bit, dapat dibuat dengan kode ASCII 8 bit

UNICODE Digunakan untuk menuliskan kata-kata sesuai dengan bahasa ibu . Dengan kata lain, negara-negara yang berbeda menggunakan karakter berbeda.

Page 12: Data and Computer Communications

Signal Encoding TechniquesSignal Encoding Techniques

Page 13: Data and Computer Communications

Macam-macam Teknik Macam-macam Teknik PengkodeanPengkodean

1. Digital data, digital signals:1. Digital data, digital signals: simplest form of digital encoding simplest form of digital encoding of digital data (Data digital, sinyal digital)of digital data (Data digital, sinyal digital)

2. Digital data, analog signal:2. Digital data, analog signal: A modem converts digital data to A modem converts digital data to an analog signal so that it can be transmitted over an analog an analog signal so that it can be transmitted over an analog (Data digital, sinyal analog)(Data digital, sinyal analog)

3. Analog data, digital signals:3. Analog data, digital signals: Analog data, such as voice and Analog data, such as voice and video, are often digitized to be able to use digital transmission video, are often digitized to be able to use digital transmission facilities (Data analog, sinyal digital)facilities (Data analog, sinyal digital)

4. Analog data, analog signals:4. Analog data, analog signals: Analog data are modulated by a Analog data are modulated by a carrier frequency to produce an analog signal in a different carrier frequency to produce an analog signal in a different frequency band, which can be utilized on an analog transmission frequency band, which can be utilized on an analog transmission system (Data analog,sinyal analog)system (Data analog,sinyal analog)

Page 14: Data and Computer Communications

1. Data digital, sinyal digital: Pengkodean digital untuk data digital adalah menugaskan satu tingkat tegangan ke biner 1 atau sedangkan lainnya ke biner 0.Sedangkan untuk yang lebih kompleks memerlukan sustu sinkronisasi data.

2. Data digital,sinyal analog:Sebuah modem mengubah data digital menjadi sinyal analog sehingga dapat ditransmisikan melalaui jalur analog. Teknik dasar yang digunakan adalah amplitude shift keying(ASK), frequency shift keying (FSK), dan phase shift keying (PSK).

3. Data analog,sinyal digital:Seperti suara dan video didigtalkan supaya dapat ditransmisikan pada fasilitas transmisi digital.Salah satu teknik yang digunalan adalah pulse code modulation, yang mencakup sampling data analog secara periodeik dan menguantifikasikan sampel-sampel tersebut.

4. Data analog, sinyal analog: Data analog dimodulasi oleh sebuah frekuensi pembawa untuk menghasilkan sinyal analog dengan band frekuensi yang berbeda yang dapat digunakan pada sistem transmisi analog. Teknik yang dipergunakan adalah AM, FM, PM (phase modulation).

Macam-macam Teknik Macam-macam Teknik PengkodeanPengkodean

Page 15: Data and Computer Communications

Digital Data, Digital SignalDigital Data, Digital Signal

Digital signalDigital signal discrete, discontinuous voltage pulsesdiscrete, discontinuous voltage pulses each pulse is a signal elementeach pulse is a signal element binary data encoded into signal elementsbinary data encoded into signal elements

Page 16: Data and Computer Communications

1. Data Digital, Sinyal Digital

Data digital merupakan data yang memiliki deretan nilai yang berbeda dan memiliki ciri-ciri tersendiri.Salah satu contoh data digital adalah teks, bilangan bulat dan karakter yang lain.

permasalahannya adalah data tersebut

Page 17: Data and Computer Communications

Some TermsSome Terms

unipolarunipolar polarpolar data ratedata rate duration or length of a bitduration or length of a bit modulation ratemodulation rate mark and spacemark and space

Page 18: Data and Computer Communications

Istilah-istilah yang berhubungan dengan data digital-sinyal digital:

1.Elemen sinyal adalah tiap pulsa dari sinyal digital, data biner ditransmisikan dengan meng-encode-kan tiap bit data menjadi elemen-elemen sinyal.2.Sinyal unipolar adalah semua elemen sinyal yang mempunyai tanda yang sama, yaitu positif semua atau negatif semua.3.Sinyal polar adalah elemen-elemen sinyal di mana salah satu kondisi logik diwakili oleh level tegangan positif dan yang lainnya oleh level tegangan negatif.4.Durasi atau lebar suatu bit adalah waktu yang diperlukan oleh pemancar untuk memancarkan bit tersebut.5.Modulation rate adalah kecepatan di mana level sinyal berubah, dimana dinyatakan dalam bauds atau elemen sinyal perdetik6.Mark dan space menyatakan digit biner 1 dan 0

Page 19: Data and Computer Communications

Tugas pesawat penerima dalam mengartikan sinyal digital :1.RX harus mengetahui timing tiap bit2.RX harus menentukan apakah level sinyal dalam posisi bit high(1) atau Low(0)

Proses diatas dilakuak dengan proses Sampling

Faktor yang menetukan kesuksesan RX :1.Data rate (kecepatan data) : peningkatan kecepatan data akan meningkatkan BIT ERROR RATE /BER ( kecepatan kesalahan bit)2.S/N : peningkatan S/N akan menurunkan kecepatan bit3.Bandwidth : peningkatan bandwidth dapat meningkatkan kecepatan data

Page 20: Data and Computer Communications

Interpreting SignalsInterpreting Signals

need to knowneed to know timing of bits - when they start and endtiming of bits - when they start and end signal levelssignal levels

factors affecting signal interpretationfactors affecting signal interpretation signal to noise ratiosignal to noise ratio data ratedata rate bandwidthbandwidth encoding schemeencoding scheme

Page 21: Data and Computer Communications

Comparison of Encoding Comparison of Encoding SchemesSchemes

signal spectrumsignal spectrum clockingclocking error detectionerror detection signal interference and noise immunitysignal interference and noise immunity cost and complexitycost and complexity

Page 22: Data and Computer Communications

Encoding SchemesEncoding Schemes

Page 23: Data and Computer Communications

Nonreturn to Zero-LevelNonreturn to Zero-Level(NRZ-L)(NRZ-L)

two different voltages for 0 and 1 bitstwo different voltages for 0 and 1 bits voltage constant during bit intervalvoltage constant during bit interval

no transition I.e. no return to zero voltageno transition I.e. no return to zero voltage such as absence of voltage for zero, constant such as absence of voltage for zero, constant

positive voltage for onepositive voltage for one more often, negative voltage for one value more often, negative voltage for one value

and positive for the otherand positive for the other

Page 24: Data and Computer Communications

Nonreturn to Zero InvertedNonreturn to Zero Inverted

nonreturn to zero inverted on onesnonreturn to zero inverted on ones constant voltage pulse for duration of bitconstant voltage pulse for duration of bit data encoded as presence or absence of signal data encoded as presence or absence of signal

transition at beginning of bit timetransition at beginning of bit time transition (low to high or high to low) denotes binary 1transition (low to high or high to low) denotes binary 1 no transition denotes binary 0no transition denotes binary 0

example of differential encoding since haveexample of differential encoding since have data represented by changes rather than levelsdata represented by changes rather than levels more reliable detection of transition rather than levelmore reliable detection of transition rather than level easy to lose sense of polarityeasy to lose sense of polarity

Page 25: Data and Computer Communications

NRZ Pros & ConsNRZ Pros & Cons

ProsPros easy to engineereasy to engineer make good use of bandwidthmake good use of bandwidth

ConsCons dc componentdc component lack of synchronization capabilitylack of synchronization capability

used for magnetic recordingused for magnetic recording not often used for signal transmissionnot often used for signal transmission

Page 26: Data and Computer Communications

Multilevel BinaryMultilevel BinaryBipolar-AMIBipolar-AMI

Use more than two levelsUse more than two levels Bipolar-AMIBipolar-AMI

zero represented by no line signalzero represented by no line signal one represented by positive or negative pulseone represented by positive or negative pulse one pulses alternate in polarityone pulses alternate in polarity no loss of sync if a long string of onesno loss of sync if a long string of ones long runs of zeros still a problemlong runs of zeros still a problem no net dc componentno net dc component lower bandwidthlower bandwidth easy error detectioneasy error detection

Page 27: Data and Computer Communications

Multilevel BinaryMultilevel BinaryPseudoternaryPseudoternary

one represented by absence of line signalone represented by absence of line signal zero represented by alternating positive zero represented by alternating positive

and negativeand negative no advantage or disadvantage over no advantage or disadvantage over

bipolar-AMIbipolar-AMI each used in some applicationseach used in some applications

Page 28: Data and Computer Communications

Multilevel Binary IssuesMultilevel Binary Issues

synchronization with long runs of 0’s or 1’ssynchronization with long runs of 0’s or 1’s can insert additional bits, cf ISDNcan insert additional bits, cf ISDN scramble data (later)scramble data (later)

not as efficient as NRZnot as efficient as NRZ each signal element only represents one biteach signal element only represents one bit

• receiver distinguishes between three levels: +A, -A, 0receiver distinguishes between three levels: +A, -A, 0

a 3 level system could represent loga 3 level system could represent log223 = 1.58 bits3 = 1.58 bits requires approx. 3dB more signal power for same requires approx. 3dB more signal power for same

probability of bit errorprobability of bit error

Page 29: Data and Computer Communications

Manchester EncodingManchester Encoding has transition in middle of each bit periodhas transition in middle of each bit period transition serves as clock and datatransition serves as clock and data low to high represents onelow to high represents one high to low represents zerohigh to low represents zero used by IEEE 802.used by IEEE 802.

Page 30: Data and Computer Communications

Differential Manchester Differential Manchester EncodingEncoding

midbit transition is clocking onlymidbit transition is clocking only transition at start of bit period representing 0transition at start of bit period representing 0 no transition at start of bit period representing 1no transition at start of bit period representing 1

this is a differential encoding schemethis is a differential encoding scheme used by IEEE 802.5 used by IEEE 802.5

Page 31: Data and Computer Communications

Biphase Pros and ConsBiphase Pros and Cons

ConCon at least one transition per bit time and possibly twoat least one transition per bit time and possibly two maximum modulation rate is twice NRZmaximum modulation rate is twice NRZ requires more bandwidthrequires more bandwidth

ProsPros synchronization on mid bit transition (self clocking)synchronization on mid bit transition (self clocking) has no dc componenthas no dc component has error detectionhas error detection

Page 32: Data and Computer Communications

Modulation RateModulation Rate

Page 33: Data and Computer Communications

ScramblingScrambling use scrambling to replace sequences that would use scrambling to replace sequences that would

produce constant voltageproduce constant voltage these filling sequences mustthese filling sequences must

produce enough transitions to syncproduce enough transitions to sync be recognized by receiver & replaced with originalbe recognized by receiver & replaced with original be same length as originalbe same length as original

design goalsdesign goals have no dc componenthave no dc component have no long sequences of zero level line signalhave no long sequences of zero level line signal have no reduction in data ratehave no reduction in data rate give error detection capabilitygive error detection capability

Page 34: Data and Computer Communications

B8ZS and HDB3B8ZS and HDB3

Page 35: Data and Computer Communications

Digital Data, Analog SignalDigital Data, Analog Signal

main use is public telephone systemmain use is public telephone system has freq range of 300Hz to 3400Hzhas freq range of 300Hz to 3400Hz use modem (modulator-demodulator)use modem (modulator-demodulator)

encoding techniquesencoding techniques Amplitude shift keying (ASK)Amplitude shift keying (ASK) Frequency shift keying (FSK)Frequency shift keying (FSK) Phase shift keying (PK)Phase shift keying (PK)

Page 36: Data and Computer Communications

Data digital, Sinyal Analog

Contoh umum transmisi data digital dengan menggunakan sinyal analog adalah Public Telephone Network. Perangkat yang dipakai adalah MODEM (modulator-demodulator) yang mengubah data digital ke sinyal analog (modulator) dan sebaliknya mengubah sinyal analog menjadi sinyal digital (demodulator).

Teknik-teknik Penyandian:

Tiga teknik penyandian untuk mengubah data digital menjadi sinyal analog :1.Amplitudo Shift Keying (ASK)2.Frequency Shift Keying (FSK)3.Phase Shift Keying (PSK)

Page 37: Data and Computer Communications

Modulation TechniquesModulation Techniques

Page 38: Data and Computer Communications

Amplitude Shift KeyingAmplitude Shift Keying encode 0/1 by different carrier amplitudesencode 0/1 by different carrier amplitudes

usually have one amplitude zerousually have one amplitude zero susceptible to sudden gain changessusceptible to sudden gain changes inefficientinefficient used forused for

up to 1200bps on voice grade linesup to 1200bps on voice grade lines very high speeds over optical fibervery high speeds over optical fiber

Page 39: Data and Computer Communications

Amplitudo Shift Keying (ASK)Dua biner diwakilkan dengan dua amplitudo frekuensi pembawa yang berbeda. Salah satu dari amplitudo adalah nol; satu digit biner yang ditunjukkan mellaui keberadaan sinyal paad amplitudo yang konstan dari suatu sinyal pembawa. Dapat dinyatakan sebagai berikut :

A cos (2Π f1t + Θc ) biner 1S(t) =

0 biner 0

Page 40: Data and Computer Communications

Binary Frequency Shift Binary Frequency Shift KeyingKeying

most common is binary FSK (BFSK)most common is binary FSK (BFSK) two binary values represented by two different two binary values represented by two different

frequencies (near carrier)frequencies (near carrier) less susceptible to error than ASKless susceptible to error than ASK used forused for

up to 1200bps on voice grade linesup to 1200bps on voice grade lines high frequency radiohigh frequency radio even higher frequency on LANs using co-axeven higher frequency on LANs using co-ax

Page 41: Data and Computer Communications

Frequency Shift Keying (FSK)

Dua biner diwakili oleh dua frekuensi berbeda yang dekat dengan pembawa frekuensi atau dinyatakan sebagai

A cos (2Π f1t + Θc ) biner 1S(t) =

A cos (2Π f2t + Θc ) biner 0

Kecepatan data dapat mencapai 1200 bps pada voice grade line, dipakai untuk transmisi radio frekuensi tinggi dan juga jaringan lokal dengan frekuensi tinggi yang memakai kabel koaksial.

Page 42: Data and Computer Communications

Multiple FSKMultiple FSK

each signalling element represents more each signalling element represents more than one bitthan one bit

more than two frequencies usedmore than two frequencies used more bandwidth efficientmore bandwidth efficient more prone to errormore prone to error

Page 43: Data and Computer Communications

Phase Shift KeyingPhase Shift Keying phase of carrier signal is shifted to phase of carrier signal is shifted to

represent datarepresent data binary PSKbinary PSK

two phases represent two binary digitstwo phases represent two binary digits differential PSKdifferential PSK

phase shifted relative to previous transmission phase shifted relative to previous transmission rather than some reference signalrather than some reference signal

Page 44: Data and Computer Communications

Phase Shift Keying (PSK)

Biner 0 diwakilkan dengan mengirim suatu sinyal dengan fase yang sama terhadap fase sebelumnya dan biner 1 diwakilkan dengan mengirim suatu sinyal dengan fase berlawanan dengan sinyal yang dikirim sebelumnya, atau dinyatakan sebagai berikut :

A cos (2Π f1t + Π ) biner 1S(t) =

A cos (2Π f2t ) biner 0

Page 45: Data and Computer Communications

Quadrature PSKQuadrature PSK

get more efficient use if each signal get more efficient use if each signal element represents more than one bitelement represents more than one bit eg. shifts of eg. shifts of /2 (90/2 (90oo)) each element represents two bitseach element represents two bits split input data stream in two & modulate onto split input data stream in two & modulate onto

carrier & phase shifted carriercarrier & phase shifted carrier can use 8 phase angles & more than one can use 8 phase angles & more than one

amplitudeamplitude 9600bps modem uses 12 angles, four of 9600bps modem uses 12 angles, four of

which have two amplitudeswhich have two amplitudes

Page 46: Data and Computer Communications

QPSK and OQPSK QPSK and OQPSK ModulatorsModulators

Page 47: Data and Computer Communications

Performance of Digital to Performance of Digital to Analog Modulation SchemesAnalog Modulation Schemes

bandwidthbandwidth ASK/PSK bandwidth directly relates to bit rateASK/PSK bandwidth directly relates to bit rate multilevel PSK gives significant improvementsmultilevel PSK gives significant improvements

in presence of noise:in presence of noise: bit error rate of PSK and QPSK are about 3dB bit error rate of PSK and QPSK are about 3dB

superior to ASK and FSKsuperior to ASK and FSK for MFSK & MPSK have tradeoff between for MFSK & MPSK have tradeoff between

bandwidth efficiency and error performance bandwidth efficiency and error performance

Page 48: Data and Computer Communications

Quadrature Amplitude Quadrature Amplitude ModulationModulation

QAM used on asymmetric digital subscriber line QAM used on asymmetric digital subscriber line (ADSL) and some wireless(ADSL) and some wireless

combination of ASK and PSKcombination of ASK and PSK logical extension of QPSKlogical extension of QPSK send two different signals simultaneously on send two different signals simultaneously on

same carrier frequencysame carrier frequency use two copies of carrier, one shifted 90use two copies of carrier, one shifted 90°°

each carrier is ASK modulatedeach carrier is ASK modulated two independent signals over same mediumtwo independent signals over same medium demodulate and combine for original binary outputdemodulate and combine for original binary output

Page 49: Data and Computer Communications

QAM ModulatorQAM Modulator

Page 50: Data and Computer Communications

QAM VariantsQAM Variants

two level ASKtwo level ASK each of two streams in one of two stateseach of two streams in one of two states four state systemfour state system essentially QPSKessentially QPSK

four level ASKfour level ASK combined stream in one of 16 statescombined stream in one of 16 states

have 64 and 256 state systems have 64 and 256 state systems improved data rate for given bandwidthimproved data rate for given bandwidth

but increased potential error ratebut increased potential error rate

Page 51: Data and Computer Communications

Analog Data, Digital SignalAnalog Data, Digital Signal

digitization is conversion of analog data digitization is conversion of analog data into digital data which can then:into digital data which can then: be transmitted using NRZ-Lbe transmitted using NRZ-L be transmitted using code other than NRZ-Lbe transmitted using code other than NRZ-L be converted to analog signalbe converted to analog signal

analog to digital conversion done using a analog to digital conversion done using a codeccodec pulse code modulationpulse code modulation delta modulationdelta modulation

Page 52: Data and Computer Communications

Digitizing Analog DataDigitizing Analog Data

Page 53: Data and Computer Communications

Pulse Code Modulation (PCM)Pulse Code Modulation (PCM)

sampling theorem:sampling theorem: ““If a signal is sampled at regular intervals at a If a signal is sampled at regular intervals at a

rate higher than twice the highest signal rate higher than twice the highest signal frequency, the samples contain all information frequency, the samples contain all information in original signal”in original signal”

eg. 4000Hz voice data, requires 8000 sample eg. 4000Hz voice data, requires 8000 sample per secper sec

strictly have analog samples strictly have analog samples Pulse Amplitude Modulation (PAM)Pulse Amplitude Modulation (PAM)

so assign each a digital valueso assign each a digital value

Page 54: Data and Computer Communications

PCM ExamplePCM Example

Page 55: Data and Computer Communications

PCM Block DiagramPCM Block Diagram

Page 56: Data and Computer Communications

Non-Linear CodingNon-Linear Coding

Page 57: Data and Computer Communications

CompandingCompanding

Page 58: Data and Computer Communications

Delta ModulationDelta Modulation

analog input is approximated by a analog input is approximated by a staircase functionstaircase function can move up or down one level (can move up or down one level () at each ) at each

sample intervalsample interval has binary behaviorhas binary behavior

since function only moves up or down at each since function only moves up or down at each sample intervalsample interval

hence can encode each sample as single bithence can encode each sample as single bit 1 for up or 0 for down1 for up or 0 for down

Page 59: Data and Computer Communications

Delta Modulation ExampleDelta Modulation Example

Page 60: Data and Computer Communications

Delta Modulation OperationDelta Modulation Operation

Page 61: Data and Computer Communications

PCM verses Delta ModulationPCM verses Delta Modulation DM has simplicity compared to PCMDM has simplicity compared to PCM but has worse SNRbut has worse SNR issue of bandwidth usedissue of bandwidth used

eg. for good voice reproduction with PCMeg. for good voice reproduction with PCM• want 128 levels (7 bit) & voice bandwidth 4khzwant 128 levels (7 bit) & voice bandwidth 4khz• need 8000 x 7 = 56kbpsneed 8000 x 7 = 56kbps

data compression can improve on thisdata compression can improve on this still growing demand for digital signalsstill growing demand for digital signals

use of repeaters, TDM, efficient switchinguse of repeaters, TDM, efficient switching PCM preferred to DM for analog signalsPCM preferred to DM for analog signals

Page 62: Data and Computer Communications

Analog Data, Analog SignalsAnalog Data, Analog Signals

modulate carrier frequency with analog datamodulate carrier frequency with analog data why modulate analog signals?why modulate analog signals?

higher frequency can give more efficient transmissionhigher frequency can give more efficient transmission permits frequency division multiplexing (chapter 8)permits frequency division multiplexing (chapter 8)

types of modulationtypes of modulation AmplitudeAmplitude FrequencyFrequency PhasePhase

Page 63: Data and Computer Communications

Analog Analog ModulationModulationTechniquesTechniques

Amplitude ModulationAmplitude Modulation Frequency ModulationFrequency Modulation Phase ModulationPhase Modulation

Page 64: Data and Computer Communications

SummarySummary

looked at signal encoding techniqueslooked at signal encoding techniques digital data, digital signaldigital data, digital signal analog data, digital signalanalog data, digital signal digital data, analog signaldigital data, analog signal analog data, analog signalanalog data, analog signal