SlideShare a Scribd company logo
Data Communications
Signal Encoding Techniques
Dr. Monir Hossen
ECE, KUET
Encoding Techniques
• Digital data, digital signal
• Analog data, digital signal
• Digital data, analog signal
• Analog data, analog signal
2
Digital Data, Digital Signal
• Digital Signal:
— Discrete, discontinuous voltage pulses
— Each pulse is a signal element
—Binary data encoded into signal
elements
3
Terms (1)
• Unipolar:
— All signal elements have same sign
• Polar:
—One logic state represented by positive voltage the
other by negative voltage
• Data rate:
— Rate of data transmission in bits per second
• Duration or length of a bit:
— Time taken for transmitter to emit the bit
4
Terms (2)
• Modulation Rate:
— Rate at which the signal level changes
— Measured in baud = signal elements per second
• Mark and Space:
—Binary 1 and Binary 0, Respectively
5
Interpreting Signals
• Need to know
Timing of bits - when they start and end
 Signal levels
• Factors affecting successful interpreting of signals
 Signal to noise ratio
 Data rate
 Bandwidth
6
Comparison of Encoding
Schemes (1)
• Signal Spectrum
—Lack of high frequencies reduces required bandwidth
—Lack of dc component allows ac coupling via
transformer, providing isolation
—Concentrate power in the middle of the bandwidth
• Clocking
—Synchronizing transmitter and receiver
—External clock
—Sync mechanism based on signal
7
Comparison of Encoding
Schemes (2)
• Error detection
—Can be built in to signal encoding
• Signal interference and noise immunity
—Some codes are better than others
• Cost and complexity
—Higher signal rate (& thus data rate) lead to
higher costs
—Some codes require signal rate greater than
data rate
8
Encoding Schemes
• Nonreturn to Zero-Level (NRZ-L)
• Nonreturn to Zero Inverted (NRZI)
• Bipolar -AMI
• Pseudoternary
• Manchester
• Differential Manchester
• B8ZS
• HDB3
9
Nonreturn to Zero-Level (NRZ-L)
• Two different voltages for 0 and 1 bits
• Voltage constant during bit interval
—no transition i.e. no return to zero voltage
• e.g. Absence of voltage for zero, constant
positive voltage for one
• More often, negative voltage for one value and
positive for the other
• This is NRZ-L
10
Nonreturn to Zero Inverted
• Nonreturn to zero inverted on ones
• Constant voltage pulse for duration of bit
• Data encoded as presence or absence of signal
transition at beginning of bit time
• Transition (low to high or high to low) denotes a
binary 1
• No transition denotes binary 0
• An example of differential encoding
11
NRZ
12
Differential Encoding
• Data represented by changes rather than levels
• More reliable detection of transition rather than
level
• In complex transmission layouts it is easy to
lose sense of polarity
13
NRZ pros and cons
• Pros
—Easy to engineer
—Make good use of bandwidth
• Cons
—dc component
—Lack of synchronization capability
• Used for magnetic recording
• Not often used for signal transmission
14
Multilevel Binary
• Use more than two levels
• Bipolar-AMI
—zero represented by no line signal
—one represented by positive or negative pulse
—one pulses alternate in polarity
—No loss of sync if a long string of ones (zeros still a
problem)
—No net dc component
—Lower bandwidth
—Easy error detection
15
Pseudoternary
• One represented by absence of line signal
• Zero represented by alternating positive and
negative
• No advantage or disadvantage over bipolar-AMI
16
Bipolar-AMI and Pseudoternary
17
0 1 0 0 1 1 0 0 0 1 1
Trade Off for Multilevel Binary
• Not as efficient as NRZ
—Each signal element only represents one bit
—In a 3 level system could represent log23 = 1.58 bits
—Receiver must distinguish between three levels
(+A, -A, 0)
—Requires approx. 3dB more signal power for same
probability of bit error
18
Biphase
• Manchester
—Transition in middle of each bit period
—Transition serves as clock and data
—Low to high represents one
—High to low represents zero
—Used by IEEE 802.3
• Differential Manchester
—Midbit transition is clocking only
—Transition at start of a bit period represents zero
—No transition at start of a bit period represents one
—Note: this is a differential encoding scheme
—Used by IEEE 802.5
19
Manchester Encoding
20
Differential Manchester
Encoding
21
Biphase Pros and Cons
• Con
—At least one transition per bit time and possibly two
—Maximum modulation rate is twice NRZ
—Requires more bandwidth
• Pros
—Synchronization on mid bit transition (self clocking)
—No dc component
—Error detection
• Absence of expected transition
22
Modulation Rate
23
Scrambling
• Use scrambling to replace sequences that would
produce constant voltage
• Filling sequence
—Must produce enough transitions to sync
—Must be recognized by receiver and replace with original
—Same length as original
• No dc component
• No long sequences of zero level line signal
• No reduction in data rate
• Error detection capability
24
B8ZS
• Bipolar With 8 Zeros Substitution
• Based on bipolar-AMI
• If octet of all zeros and last voltage pulse
preceding was positive encode as 000+-0-+
• If octet of all zeros and last voltage pulse
preceding was negative encode as 000-+0+-
• Causes two violations of AMI code
• Unlikely to occur as a result of noise
• Receiver detects and interprets as octet of all
zeros
25
HDB3
• High Density Bipolar 3 Zeros
• Based on bipolar-AMI
• String of four zeros replaced with one or two
pulses
26
B8ZS and HDB3
27
Digital Data, Analog Signal
• Public telephone system
—300Hz to 3400Hz
—Use modem (modulator-demodulator)
• Amplitude shift keying (ASK)
• Frequency shift keying (FSK)
• Phase shift keying (PK)
28
Modulation Techniques
29
Amplitude Shift Keying
• Values represented by different amplitudes of
carrier
• Usually, one amplitude is zero
—i.e. presence and absence of carrier is used
• Susceptible to sudden gain changes
• Inefficient
• Up to 1200bps on voice grade lines
• Used over optical fiber
30
Binary Frequency Shift Keying
• Most common form is binary FSK (BFSK)
• Two binary values represented by two different
frequencies (near carrier)
• Less susceptible to error than ASK
• Up to 1200bps on voice grade lines
• High frequency radio
• Even higher frequency on LANs using co-ax
31
Multiple FSK
• More than two frequencies used
• More bandwidth efficient
• More prone to error
• Each signalling element represents more than
one bit
32
FSK on Voice Grade Line
33
Phase Shift Keying
• Phase of carrier signal is shifted to represent
data
• Binary PSK
—Two phases represent two binary digits
• Differential PSK
—Phase shifted relative to previous transmission rather
than some reference signal
34
Differential PSK
35
Quadrature PSK
• More efficient use by each signal element
representing more than one bit
—e.g. shifts of π/2 (90o
)
—Each element represents two bits
—Can use 8 phase angles and have more than one
amplitude
—9600bps modem use 12 angles , four of which have
two amplitudes
• Offset QPSK (orthogonal QPSK)
—Delay in Q stream
36
QPSK and OQPSK Modulators
37
Examples of QPSF and OQPSK
Waveforms
38
Performance of Digital to
Analog Modulation Schemes
• Bandwidth
—ASK and PSK bandwidth directly related to bit rate
—FSK bandwidth related to data rate for lower
frequencies, but to offset of modulated frequency
from carrier at high frequencies
—(See Stallings for math)
• In the presence of noise, bit error rate of PSK
and QPSK are about 3dB superior to ASK and
FSK
39
Quadrature Amplitude
Modulation
• QAM used on asymmetric digital subscriber line
(ADSL) and some wireless
• Combination of ASK and PSK
• Logical extension of QPSK
• Send two different signals simultaneously on
same carrier frequency
—Use two copies of carrier, one shifted 90°
—Each carrier is ASK modulated
—Two independent signals over same medium
—Demodulate and combine for original binary output
40
QAM Modulator
41
QAM Levels
• Two level ASK
—Each of two streams in one of two states
—Four state system
—Essentially QPSK
• Four level ASK
—Combined stream in one of 16 states
• 64 and 256 state systems have been
implemented
• Improved data rate for given bandwidth
—Increased potential error rate
42
Analog Data, Digital Signal
• Digitization
—Conversion of analog data into digital data
—Digital data can then be transmitted using NRZ-L
—Digital data can then be transmitted using code other
than NRZ-L
—Digital data can then be converted to analog signal
—Analog to digital conversion done using a codec
—Pulse code modulation
—Delta modulation
43
Digitizing Analog Data
44
Pulse Code Modulation(PCM) (1)
• If a signal is sampled at regular intervals at a
rate higher than twice the highest signal
frequency, the samples contain all the
information of the original signal
—(Proof - Stallings appendix 4A)
• Voice data limited to below 4000Hz
• Require 8000 sample per second
• Analog samples (Pulse Amplitude Modulation,
PAM)
• Each sample assigned digital value
45
Pulse Code Modulation(PCM) (2)
• 4 bit system gives 16 levels
• Quantized
—Quantizing error or noise
—Approximations mean it is impossible to recover
original exactly
• 8 bit sample gives 256 levels
• Quality comparable with analog transmission
• 8000 samples per second of 8 bits each gives
64kbps
46
PCM Example
47
PCM Block Diagram
48
Nonlinear Encoding
• Quantization levels not evenly spaced
• Reduces overall signal distortion
• Can also be done by companding
49
Effect of Non-Linear Coding
50
Typical Companding Functions
51
Delta Modulation
• Analog input is approximated by a staircase
function
• Move up or down one level (δ) at each sample
interval
• Binary behavior
—Function moves up or down at each sample interval
52
Delta Modulation - example
53
Delta Modulation - Operation
54
Delta Modulation - Performance
• Good voice reproduction
—PCM - 128 levels (7 bit)
—Voice bandwidth 4khz
—Should be 8000 x 7 = 56kbps for PCM
• Data compression can improve on this
—e.g. Interframe coding techniques for video
55
Analog Data, Analog Signals
• Why modulate analog signals?
—Higher frequency can give more efficient
transmission
—Permits frequency division multiplexing (chapter 8)
• Types of modulation
—Amplitude
—Frequency
—Phase
56
Analog
Modulation
57
Required Reading
• Stallings chapter 5
58

More Related Content

What's hot (20)

PPTX
Amplitude shift keying
Sunny Kumar
 
PPT
Digital transmission new unit 3
Srashti Vyas
 
PDF
ISDN Integrated Services Digital Network
Madhumita Tamhane
 
PPT
spread spectrum
Srinivasa Rao
 
PDF
Capítulo I - Fundamentos de Comunicaciones Móviles
Andy Juan Sarango Veliz
 
PDF
Data Communication & Computer Networks : Serial and parellel transmission
Dr Rajiv Srivastava
 
PPTX
Introduction to 4G Network
Siva Ganesan
 
PPTX
Digital & analog transmission
Jeffery Vava
 
PPTX
Quadrature amplitude modulation
Bhanwar Singh Meena
 
PPTX
FHSS- Frequency Hop Spread Spectrum
Rohit Choudhury
 
PPT
Zigbee 802-15-4
SHUBHAM MORGAONKAR
 
PPTX
ADSL Presentation
sarojsaroza
 
PDF
SPEECH CODING
Shradheshwar Verma
 
PDF
Asynchronous Transfer Mode (ATM)
Shamima Akther
 
PPTX
Signaling system 7
Dhrubaji Mandal ♛
 
PPTX
Broadband isdn
Er Varun Kumar
 
PPTX
non parametric methods for power spectrum estimaton
Bhavika Jethani
 
PDF
Pulse Code Modulation (PCM)
Arun c
 
PPTX
Optical Fibers – The Runway to a 5G-Powered Future
Test Equipment Expert
 
Amplitude shift keying
Sunny Kumar
 
Digital transmission new unit 3
Srashti Vyas
 
ISDN Integrated Services Digital Network
Madhumita Tamhane
 
spread spectrum
Srinivasa Rao
 
Capítulo I - Fundamentos de Comunicaciones Móviles
Andy Juan Sarango Veliz
 
Data Communication & Computer Networks : Serial and parellel transmission
Dr Rajiv Srivastava
 
Introduction to 4G Network
Siva Ganesan
 
Digital & analog transmission
Jeffery Vava
 
Quadrature amplitude modulation
Bhanwar Singh Meena
 
FHSS- Frequency Hop Spread Spectrum
Rohit Choudhury
 
Zigbee 802-15-4
SHUBHAM MORGAONKAR
 
ADSL Presentation
sarojsaroza
 
SPEECH CODING
Shradheshwar Verma
 
Asynchronous Transfer Mode (ATM)
Shamima Akther
 
Signaling system 7
Dhrubaji Mandal ♛
 
Broadband isdn
Er Varun Kumar
 
non parametric methods for power spectrum estimaton
Bhavika Jethani
 
Pulse Code Modulation (PCM)
Arun c
 
Optical Fibers – The Runway to a 5G-Powered Future
Test Equipment Expert
 

Viewers also liked (13)

PPT
Message Authentication: MAC, Hashes
Shafaan Khaliq Bhatti
 
PPT
signal encoding techniques
Srinivasa Rao
 
PDF
05 signal encoding
Bestha Harish
 
PPTX
10 lecture - ospf part1 , introduction to ospf , areas and abr
Shafaan Khaliq Bhatti
 
PPTX
Encoding techniques
Goriha Naveed
 
PPTX
Data encoding
Akash Bhandari
 
PPT
4 signal encodingtechniques
Hattori Sidek
 
PPT
Data Encoding
Luka M G
 
PPTX
15 lecture - acl part1, introduction to access control list
Shafaan Khaliq Bhatti
 
PPTX
13 lecture - introduction and configuration of eigrp
Shafaan Khaliq Bhatti
 
PDF
Chapter 5 - Signal Encoding Techniques 9e
adpeer
 
PPT
Chapter 1: Introduction to Data Communication and Networks
Shafaan Khaliq Bhatti
 
PPT
Chapter 4 - Digital Transmission
Wayne Jones Jnr
 
Message Authentication: MAC, Hashes
Shafaan Khaliq Bhatti
 
signal encoding techniques
Srinivasa Rao
 
05 signal encoding
Bestha Harish
 
10 lecture - ospf part1 , introduction to ospf , areas and abr
Shafaan Khaliq Bhatti
 
Encoding techniques
Goriha Naveed
 
Data encoding
Akash Bhandari
 
4 signal encodingtechniques
Hattori Sidek
 
Data Encoding
Luka M G
 
15 lecture - acl part1, introduction to access control list
Shafaan Khaliq Bhatti
 
13 lecture - introduction and configuration of eigrp
Shafaan Khaliq Bhatti
 
Chapter 5 - Signal Encoding Techniques 9e
adpeer
 
Chapter 1: Introduction to Data Communication and Networks
Shafaan Khaliq Bhatti
 
Chapter 4 - Digital Transmission
Wayne Jones Jnr
 
Ad

Similar to L8 signal encoding techniques (20)

PPT
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
mshanajoel6
 
ODP
komdat5
pasca
 
PPT
05 signal encodingtechniques
chameli devi group of institutions
 
PPTX
05 signal encodingtechniques
Orbay Yeşil
 
PDF
W6_Ch5_Signal Encoding.pdf
matom84405
 
PDF
Cse3461.c.signal encoding.09 04-2012
Praveen Kumar
 
PPTX
Chapter 2.1.pptx
Tekle12
 
PPTX
Chapter 2.1.pptx
Tekle12
 
PPT
Encoding1
munir09
 
PDF
Dc ch05 : signal encoding techniques
Syaiful Ahdan
 
PDF
05 signal encoding
Praveen Kumar
 
PPTX
DC MODULE 3 PPT from the data communicatiobs
treddy21
 
PDF
Pass band transmission
Sri Manakula Vinayagar Engineering College
 
PPT
Encoding and Modulating Data Signal from analog to digital and from digital t...
ZaimAsh2
 
PPT
Signal encoding techniques
Syed Zaid Irshad
 
PDF
signalencodingtechniques-170203124858.pdf
alyaamohammed251
 
PPTX
Lecture 2 encoding
Josh Street
 
PPTX
Lecture 2 encoding
Josh Street
 
PDF
Lecture set 2
Gopi Saiteja
 
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
mshanajoel6
 
komdat5
pasca
 
05 signal encodingtechniques
chameli devi group of institutions
 
05 signal encodingtechniques
Orbay Yeşil
 
W6_Ch5_Signal Encoding.pdf
matom84405
 
Cse3461.c.signal encoding.09 04-2012
Praveen Kumar
 
Chapter 2.1.pptx
Tekle12
 
Chapter 2.1.pptx
Tekle12
 
Encoding1
munir09
 
Dc ch05 : signal encoding techniques
Syaiful Ahdan
 
05 signal encoding
Praveen Kumar
 
DC MODULE 3 PPT from the data communicatiobs
treddy21
 
Encoding and Modulating Data Signal from analog to digital and from digital t...
ZaimAsh2
 
Signal encoding techniques
Syed Zaid Irshad
 
signalencodingtechniques-170203124858.pdf
alyaamohammed251
 
Lecture 2 encoding
Josh Street
 
Lecture 2 encoding
Josh Street
 
Lecture set 2
Gopi Saiteja
 
Ad

Recently uploaded (20)

PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPTX
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
Thermal runway and thermal stability.pptx
godow93766
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Design Thinking basics for Engineers.pdf
CMR University
 
Hashing Introduction , hash functions and techniques
sailajam21
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 

L8 signal encoding techniques

  • 1. Data Communications Signal Encoding Techniques Dr. Monir Hossen ECE, KUET
  • 2. Encoding Techniques • Digital data, digital signal • Analog data, digital signal • Digital data, analog signal • Analog data, analog signal 2
  • 3. Digital Data, Digital Signal • Digital Signal: — Discrete, discontinuous voltage pulses — Each pulse is a signal element —Binary data encoded into signal elements 3
  • 4. Terms (1) • Unipolar: — All signal elements have same sign • Polar: —One logic state represented by positive voltage the other by negative voltage • Data rate: — Rate of data transmission in bits per second • Duration or length of a bit: — Time taken for transmitter to emit the bit 4
  • 5. Terms (2) • Modulation Rate: — Rate at which the signal level changes — Measured in baud = signal elements per second • Mark and Space: —Binary 1 and Binary 0, Respectively 5
  • 6. Interpreting Signals • Need to know Timing of bits - when they start and end  Signal levels • Factors affecting successful interpreting of signals  Signal to noise ratio  Data rate  Bandwidth 6
  • 7. Comparison of Encoding Schemes (1) • Signal Spectrum —Lack of high frequencies reduces required bandwidth —Lack of dc component allows ac coupling via transformer, providing isolation —Concentrate power in the middle of the bandwidth • Clocking —Synchronizing transmitter and receiver —External clock —Sync mechanism based on signal 7
  • 8. Comparison of Encoding Schemes (2) • Error detection —Can be built in to signal encoding • Signal interference and noise immunity —Some codes are better than others • Cost and complexity —Higher signal rate (& thus data rate) lead to higher costs —Some codes require signal rate greater than data rate 8
  • 9. Encoding Schemes • Nonreturn to Zero-Level (NRZ-L) • Nonreturn to Zero Inverted (NRZI) • Bipolar -AMI • Pseudoternary • Manchester • Differential Manchester • B8ZS • HDB3 9
  • 10. Nonreturn to Zero-Level (NRZ-L) • Two different voltages for 0 and 1 bits • Voltage constant during bit interval —no transition i.e. no return to zero voltage • e.g. Absence of voltage for zero, constant positive voltage for one • More often, negative voltage for one value and positive for the other • This is NRZ-L 10
  • 11. Nonreturn to Zero Inverted • Nonreturn to zero inverted on ones • Constant voltage pulse for duration of bit • Data encoded as presence or absence of signal transition at beginning of bit time • Transition (low to high or high to low) denotes a binary 1 • No transition denotes binary 0 • An example of differential encoding 11
  • 13. Differential Encoding • Data represented by changes rather than levels • More reliable detection of transition rather than level • In complex transmission layouts it is easy to lose sense of polarity 13
  • 14. NRZ pros and cons • Pros —Easy to engineer —Make good use of bandwidth • Cons —dc component —Lack of synchronization capability • Used for magnetic recording • Not often used for signal transmission 14
  • 15. Multilevel Binary • Use more than two levels • Bipolar-AMI —zero represented by no line signal —one represented by positive or negative pulse —one pulses alternate in polarity —No loss of sync if a long string of ones (zeros still a problem) —No net dc component —Lower bandwidth —Easy error detection 15
  • 16. Pseudoternary • One represented by absence of line signal • Zero represented by alternating positive and negative • No advantage or disadvantage over bipolar-AMI 16
  • 17. Bipolar-AMI and Pseudoternary 17 0 1 0 0 1 1 0 0 0 1 1
  • 18. Trade Off for Multilevel Binary • Not as efficient as NRZ —Each signal element only represents one bit —In a 3 level system could represent log23 = 1.58 bits —Receiver must distinguish between three levels (+A, -A, 0) —Requires approx. 3dB more signal power for same probability of bit error 18
  • 19. Biphase • Manchester —Transition in middle of each bit period —Transition serves as clock and data —Low to high represents one —High to low represents zero —Used by IEEE 802.3 • Differential Manchester —Midbit transition is clocking only —Transition at start of a bit period represents zero —No transition at start of a bit period represents one —Note: this is a differential encoding scheme —Used by IEEE 802.5 19
  • 22. Biphase Pros and Cons • Con —At least one transition per bit time and possibly two —Maximum modulation rate is twice NRZ —Requires more bandwidth • Pros —Synchronization on mid bit transition (self clocking) —No dc component —Error detection • Absence of expected transition 22
  • 24. Scrambling • Use scrambling to replace sequences that would produce constant voltage • Filling sequence —Must produce enough transitions to sync —Must be recognized by receiver and replace with original —Same length as original • No dc component • No long sequences of zero level line signal • No reduction in data rate • Error detection capability 24
  • 25. B8ZS • Bipolar With 8 Zeros Substitution • Based on bipolar-AMI • If octet of all zeros and last voltage pulse preceding was positive encode as 000+-0-+ • If octet of all zeros and last voltage pulse preceding was negative encode as 000-+0+- • Causes two violations of AMI code • Unlikely to occur as a result of noise • Receiver detects and interprets as octet of all zeros 25
  • 26. HDB3 • High Density Bipolar 3 Zeros • Based on bipolar-AMI • String of four zeros replaced with one or two pulses 26
  • 28. Digital Data, Analog Signal • Public telephone system —300Hz to 3400Hz —Use modem (modulator-demodulator) • Amplitude shift keying (ASK) • Frequency shift keying (FSK) • Phase shift keying (PK) 28
  • 30. Amplitude Shift Keying • Values represented by different amplitudes of carrier • Usually, one amplitude is zero —i.e. presence and absence of carrier is used • Susceptible to sudden gain changes • Inefficient • Up to 1200bps on voice grade lines • Used over optical fiber 30
  • 31. Binary Frequency Shift Keying • Most common form is binary FSK (BFSK) • Two binary values represented by two different frequencies (near carrier) • Less susceptible to error than ASK • Up to 1200bps on voice grade lines • High frequency radio • Even higher frequency on LANs using co-ax 31
  • 32. Multiple FSK • More than two frequencies used • More bandwidth efficient • More prone to error • Each signalling element represents more than one bit 32
  • 33. FSK on Voice Grade Line 33
  • 34. Phase Shift Keying • Phase of carrier signal is shifted to represent data • Binary PSK —Two phases represent two binary digits • Differential PSK —Phase shifted relative to previous transmission rather than some reference signal 34
  • 36. Quadrature PSK • More efficient use by each signal element representing more than one bit —e.g. shifts of π/2 (90o ) —Each element represents two bits —Can use 8 phase angles and have more than one amplitude —9600bps modem use 12 angles , four of which have two amplitudes • Offset QPSK (orthogonal QPSK) —Delay in Q stream 36
  • 37. QPSK and OQPSK Modulators 37
  • 38. Examples of QPSF and OQPSK Waveforms 38
  • 39. Performance of Digital to Analog Modulation Schemes • Bandwidth —ASK and PSK bandwidth directly related to bit rate —FSK bandwidth related to data rate for lower frequencies, but to offset of modulated frequency from carrier at high frequencies —(See Stallings for math) • In the presence of noise, bit error rate of PSK and QPSK are about 3dB superior to ASK and FSK 39
  • 40. Quadrature Amplitude Modulation • QAM used on asymmetric digital subscriber line (ADSL) and some wireless • Combination of ASK and PSK • Logical extension of QPSK • Send two different signals simultaneously on same carrier frequency —Use two copies of carrier, one shifted 90° —Each carrier is ASK modulated —Two independent signals over same medium —Demodulate and combine for original binary output 40
  • 42. QAM Levels • Two level ASK —Each of two streams in one of two states —Four state system —Essentially QPSK • Four level ASK —Combined stream in one of 16 states • 64 and 256 state systems have been implemented • Improved data rate for given bandwidth —Increased potential error rate 42
  • 43. Analog Data, Digital Signal • Digitization —Conversion of analog data into digital data —Digital data can then be transmitted using NRZ-L —Digital data can then be transmitted using code other than NRZ-L —Digital data can then be converted to analog signal —Analog to digital conversion done using a codec —Pulse code modulation —Delta modulation 43
  • 45. Pulse Code Modulation(PCM) (1) • If a signal is sampled at regular intervals at a rate higher than twice the highest signal frequency, the samples contain all the information of the original signal —(Proof - Stallings appendix 4A) • Voice data limited to below 4000Hz • Require 8000 sample per second • Analog samples (Pulse Amplitude Modulation, PAM) • Each sample assigned digital value 45
  • 46. Pulse Code Modulation(PCM) (2) • 4 bit system gives 16 levels • Quantized —Quantizing error or noise —Approximations mean it is impossible to recover original exactly • 8 bit sample gives 256 levels • Quality comparable with analog transmission • 8000 samples per second of 8 bits each gives 64kbps 46
  • 49. Nonlinear Encoding • Quantization levels not evenly spaced • Reduces overall signal distortion • Can also be done by companding 49
  • 50. Effect of Non-Linear Coding 50
  • 52. Delta Modulation • Analog input is approximated by a staircase function • Move up or down one level (δ) at each sample interval • Binary behavior —Function moves up or down at each sample interval 52
  • 53. Delta Modulation - example 53
  • 54. Delta Modulation - Operation 54
  • 55. Delta Modulation - Performance • Good voice reproduction —PCM - 128 levels (7 bit) —Voice bandwidth 4khz —Should be 8000 x 7 = 56kbps for PCM • Data compression can improve on this —e.g. Interframe coding techniques for video 55
  • 56. Analog Data, Analog Signals • Why modulate analog signals? —Higher frequency can give more efficient transmission —Permits frequency division multiplexing (chapter 8) • Types of modulation —Amplitude —Frequency —Phase 56