SlideShare a Scribd company logo
ITT400
Introduction To Data Communication
and Networking
Chapter 3
Digital Transmission
Mazlan Osman, FSKM, UiTM (Terengganu) 2014
4.2
4-1 DIGITAL-TO-DIGITAL CONVERSION
• In this section, we will discuss how we can
represent digital data by using digital signals.
• The representation involves three techniques:
• line coding
• block coding
• scrambling.
4.3
LINE CODING
• Process of converting digital data (sequence of bits) to
digital signals
• At the sender, digital data are encoded into a digital signal;
at the receiver, the digital signal are decoded into digital
data.
Figure 4.1 Line coding and decoding
4.4
DATA ELEMENT AND SIGNAL ELEMENT
• Data element : The smallest entity that can
represent a piece of information (bit).
• Signal element : The shortest unit (timewise) of
a digital signal to carry data element.
• Data elements are what we need to send; signal
elements are what we can send
4.5
Figure 4.2 Signal element versus data element
DATA ELEMENT AND SIGNAL ELEMENT
4.6
• Data rate : The number of data elements (bits) sent in 1s. Unit : bps
• Signal rate : The number of signal elements sent in 1s. Unit : baud
• Relation between data rate and signal rate (baud rate):
S = c x N x 1/r
• Example 4.1
A signal is carrying data in which one data element is encoded as
one signal element ( r = 1). If the bit rate is 100 kbps, what is the
average value of the baud rate if c is 0.5?
Solution
The baud rate is then
DATA RATE AND SIGNAL RATE
4.7
DC Components
• Direct-current components
• The signal that have zero frequency and the
average amplitude is nonzero
Self-synchronization
• The method to correctly interpret the signals
received from the sender
DC COMPONENTS & SELF-SYNCHRONIZATION
4.8
Figure 4.3 Effect of lack of synchronization
LACK OF SYNCHRONIZATION
4.9
LINE CODING SCHEMES
Figure 4.4 Line coding schemes
4.10
Uses only one voltage level
• Positive voltage defines bit 1 and the zero
voltage defines bit 0
Figure 4.5 Unipolar NRZ scheme
UNIPOLAR SCHEME
4.11
NRZ (Non-Return-to-Zero)
• Have two versions of polar NRZ:
i. NRZ-L (NRZ-Level)
–Bit 1 is represented by negative voltage, bit 0
represented by positive voltage.
ii. NRZ-I (NRZ-Invert)
–Bit 1 is represented inversion of voltage, bit 0 is
represented by no change.
POLAR SCHEME
4.12
Figure 4.6 Polar NRZ-L and NRZ-I schemes
POLAR SCHEME
4.13
RZ (Return-to-Zero)
• Uses three values: positive, negative, and zero
• In RZ, bit 1 is represented by positive-to-zero
voltage, bit 0 is represented by negative-to-zero
voltage.
Figure 4.7 Polar RZ scheme
POLAR SCHEME
4.14
Biphase : Manchester and Differential Manchester
• Best solution for synchronization problems
• Manchester (RZ + NRZ-L)
–Bit 1 is represented by negative-to-positive
transition; bit 0 is represented by positive-to-
negative transition.
• Differential Manchester (RZ + NRZ-I)
–Bit 1 is represented by no transition; bit 0 is
represented by transition.
POLAR SCHEME
4.15
Figure 4.8 Polar biphase: Manchester and differential Manchester schemes
POLAR SCHEME
4.16
• Alternate Mark Inversion (AMI)
–A bit 1 is represented by positive and negative
voltage alternately; bit 0 is represented by zero
voltage.
–Advantages : DC component is zero and provide
synchronization for a long strings of 1s.
Figure 4.9 Bipolar schemes: AMI
BIPOLAR SCHEME
4.17
Summary of Line Coding Scheme
Table 4.1 Summary of line coding schemes
4.18
4-2 ANALOG-TO-DIGITAL CONVERSION
• Sometimes, we have to sent analog data
(signal) using digital signal.
• In this section, we will discuss how we can
represent analog signal by using digital signals.
• In this section we describe two techniques,
• Pulse Code Modulation
• Delta Modulation.
4.19
PULSE CODE MODULATION
(PCM)
• Technique to change an analog signal to digital data (digitization)
• PCM encoder has three process:
1. The analog signal is sampled (sampling)
2. The sampled signal is quantized (quantizing)
3. The quantized values are encoded as streams of bit (encoding)
Figure 4.21 Components of PCM encoder
4.20
SAMPLING
• Sampling is the process of measuring the non-
integral amplitude of analog signal at equal
intervals.
• The analog signal is sampled every Ts s, where Ts is
the sampling interval or period
• The inverse of the sampling interval is called the
sampling rate.
• There are three sampling methods : ideal, natural, and
flat-top
• The sampling process is sometimes referred to as
Pulse Amplitude Modulation (PAM).
4.21
Figure 4.22 Three different sampling methods for PCM
SAMPLING
4.22
Sampling Rate
• Based on Nyquist theorem ;
1. We can sample signal only if the signal is band-limited ->
signal with an infinite bandwidth cannot be sampled
2. Sampling rate must be at least 2 times the highest frequency
contained in the signal.
Example
What sampling rate needed for a signal with a bandwidth of
10,000 Hz (1000 to 11,000 Hz)?
• Solution
Sampling rate = 2 (11,000) = 22,000 samples/S
SAMPLING
4.23
• The result of sampling is a series of pulses with
amplitude values between the maximum and minimum
amplitudes of the signal.
• Set of amplitudes can be infinite with non-integral
values and these values cannot be used in the encoding
process.
• Quantization is the method of assigning integral
values in a specific range to sampled instances.
• In quantization, we approximate the value of the
sample amplitude to the quantized values.
QUANTIZATION
4.24
Figure 4.26 Quantization and encoding of a sampled signal
QUANTIZATION
4.25
• After each sample is quantized and the number of bits per sample is
decided, each sample can be changed to an nb-bit code word
• A quantization code of 2 is encoded as 010; 5 is encoded as 101; etc
Bit rate = sampling rate x no. of bits per sample = fs x nb
• Example 4.14
We want to digitize the human voice. What is the bit rate, assuming
8 bits per sample?
Solution
The human voice normally contains frequencies from 0 to 4000 Hz.
So the sampling rate and bit rate are calculated as follows:
ENCODING
4.26
4-3 TRANSMISSION MODES
• The transmission of binary data across a link can
be accomplished in either parallel or serial mode.
• In parallel mode, multiple bits are sent with each
clock tick. In serial mode, 1 bit is sent with each
clock tick.
4.27
Figure 4.31 Data transmission and modes
4-3 TRANSMISSION MODES
4.28
PARALLEL TRANSMISSION
• Send data n bits at a time using n channels
• Conceptually: use n wires to send n bits at one
time
Figure 4.32 Parallel transmission
4.29
SERIAL TRANSMISSION
• Send data one bit follows another using one
channel
• Serial occurs in one of three ways :
asynchronous, synchronous, and isochronous
Figure 4.33 Serial transmission
4.30
• The timing of signal is unimportant
• A byte is sent with one start bit (0) at the beginning and
one or more stop bits (1) at the end of each byte.
ASYNCHRONOUS TRANSMISSION
Figure 4.34 Asynchronous transmission
4.31
• The bit stream is combined into longer frames, which
may contains multiple bytes
• Bytes are sent one after another without start and stop
bits or gap
Figure 4.35 Synchronous transmission
SYNCHRONOUS TRANSMISSION
4.32
EXERCISE
1. Assume a data stream is made of threes 0s followed by two 1s
followed by two 0s and another three 1s. Encode this stream using
the following encoding schemes: Unipolar, NRZ-L, NRZ-I, RZ,
Manchester, Differential Manchester and AMI.
2. Using Nyquist Theorem, calculate the sampling rate for the
following analog signal:
a) An analog signal with frequency from 2000 to 6000 Hz
b) A signal with horizontal line in the time-domain representation

More Related Content

Similar to Ch3 Digital Transmission.ppt

Unit 4
Unit 4Unit 4
Unit 4
Srashti Vyas
 
ch04-digital-transmission.ppt
ch04-digital-transmission.pptch04-digital-transmission.ppt
ch04-digital-transmission.ppt
CDSukte
 
Multi level multi transition
Multi level multi transitionMulti level multi transition
DIGITAL TRANSMISSION
DIGITAL TRANSMISSIONDIGITAL TRANSMISSION
DIGITAL TRANSMISSION
Avijeet Negel
 
Ch4 2 v1
Ch4 2 v1Ch4 2 v1
Ch4 2 v1
bhagavanprasad
 
LECTURE-4 (Data Communication) ~www.fida.com.bd
LECTURE-4 (Data Communication) ~www.fida.com.bdLECTURE-4 (Data Communication) ~www.fida.com.bd
LECTURE-4 (Data Communication) ~www.fida.com.bd
QUT (Queensland University of Technology)
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
Avijeet Negel
 
Ch4 1 v1
Ch4 1 v1Ch4 1 v1
Ch4 1 v1
bhagavanprasad
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kurale
Neha Kurale
 
Line coding Tec hniques.pptx
Line coding Tec                 hniques.pptxLine coding Tec                 hniques.pptx
Line coding Tec hniques.pptx
naveen088888
 
Chapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.pptChapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.ppt
faisalahmed441
 
Ch05
Ch05Ch05
Ch04
Ch04Ch04
Chapter 4 digital transmission computer_network
Chapter 4 digital transmission  computer_networkChapter 4 digital transmission  computer_network
Chapter 4 digital transmission computer_network
Dhairya Joshi
 
Data Communication and Networking
Data Communication and NetworkingData Communication and Networking
Data Communication and Networking
Edlynne Ogena
 
04 Digital Transmission
04 Digital Transmission04 Digital Transmission
04 Digital Transmission
Ahmar Hashmi
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
TechiNerd
 
Ch 04
Ch 04Ch 04
line coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of codingline coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of coding
DrZMaryLivinsaProfEC
 
Lecture 3.ppt
Lecture 3.pptLecture 3.ppt
Lecture 3.ppt
AmirKhan877722
 

Similar to Ch3 Digital Transmission.ppt (20)

Unit 4
Unit 4Unit 4
Unit 4
 
ch04-digital-transmission.ppt
ch04-digital-transmission.pptch04-digital-transmission.ppt
ch04-digital-transmission.ppt
 
Multi level multi transition
Multi level multi transitionMulti level multi transition
Multi level multi transition
 
DIGITAL TRANSMISSION
DIGITAL TRANSMISSIONDIGITAL TRANSMISSION
DIGITAL TRANSMISSION
 
Ch4 2 v1
Ch4 2 v1Ch4 2 v1
Ch4 2 v1
 
LECTURE-4 (Data Communication) ~www.fida.com.bd
LECTURE-4 (Data Communication) ~www.fida.com.bdLECTURE-4 (Data Communication) ~www.fida.com.bd
LECTURE-4 (Data Communication) ~www.fida.com.bd
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
 
Ch4 1 v1
Ch4 1 v1Ch4 1 v1
Ch4 1 v1
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kurale
 
Line coding Tec hniques.pptx
Line coding Tec                 hniques.pptxLine coding Tec                 hniques.pptx
Line coding Tec hniques.pptx
 
Chapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.pptChapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.ppt
 
Ch05
Ch05Ch05
Ch05
 
Ch04
Ch04Ch04
Ch04
 
Chapter 4 digital transmission computer_network
Chapter 4 digital transmission  computer_networkChapter 4 digital transmission  computer_network
Chapter 4 digital transmission computer_network
 
Data Communication and Networking
Data Communication and NetworkingData Communication and Networking
Data Communication and Networking
 
04 Digital Transmission
04 Digital Transmission04 Digital Transmission
04 Digital Transmission
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
 
Ch 04
Ch 04Ch 04
Ch 04
 
line coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of codingline coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of coding
 
Lecture 3.ppt
Lecture 3.pptLecture 3.ppt
Lecture 3.ppt
 

Recently uploaded

美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
widenerjobeyrl638
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
ShulagnaSarkar2
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio, Inc.
 
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
dhavalvaghelanectarb
 
What is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdfWhat is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdf
kalichargn70th171
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
ICS
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
Zycus
 
Cost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App DevelopmentCost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App Development
Softradix Technologies
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
alowpalsadig
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
KrishnaveniMohan1
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
The Third Creative Media
 

Recently uploaded (20)

美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 
bgiolcb
bgiolcbbgiolcb
bgiolcb
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
 
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
 
What is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdfWhat is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdf
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
 
Cost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App DevelopmentCost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App Development
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
 

Ch3 Digital Transmission.ppt

  • 1. ITT400 Introduction To Data Communication and Networking Chapter 3 Digital Transmission Mazlan Osman, FSKM, UiTM (Terengganu) 2014
  • 2. 4.2 4-1 DIGITAL-TO-DIGITAL CONVERSION • In this section, we will discuss how we can represent digital data by using digital signals. • The representation involves three techniques: • line coding • block coding • scrambling.
  • 3. 4.3 LINE CODING • Process of converting digital data (sequence of bits) to digital signals • At the sender, digital data are encoded into a digital signal; at the receiver, the digital signal are decoded into digital data. Figure 4.1 Line coding and decoding
  • 4. 4.4 DATA ELEMENT AND SIGNAL ELEMENT • Data element : The smallest entity that can represent a piece of information (bit). • Signal element : The shortest unit (timewise) of a digital signal to carry data element. • Data elements are what we need to send; signal elements are what we can send
  • 5. 4.5 Figure 4.2 Signal element versus data element DATA ELEMENT AND SIGNAL ELEMENT
  • 6. 4.6 • Data rate : The number of data elements (bits) sent in 1s. Unit : bps • Signal rate : The number of signal elements sent in 1s. Unit : baud • Relation between data rate and signal rate (baud rate): S = c x N x 1/r • Example 4.1 A signal is carrying data in which one data element is encoded as one signal element ( r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is 0.5? Solution The baud rate is then DATA RATE AND SIGNAL RATE
  • 7. 4.7 DC Components • Direct-current components • The signal that have zero frequency and the average amplitude is nonzero Self-synchronization • The method to correctly interpret the signals received from the sender DC COMPONENTS & SELF-SYNCHRONIZATION
  • 8. 4.8 Figure 4.3 Effect of lack of synchronization LACK OF SYNCHRONIZATION
  • 9. 4.9 LINE CODING SCHEMES Figure 4.4 Line coding schemes
  • 10. 4.10 Uses only one voltage level • Positive voltage defines bit 1 and the zero voltage defines bit 0 Figure 4.5 Unipolar NRZ scheme UNIPOLAR SCHEME
  • 11. 4.11 NRZ (Non-Return-to-Zero) • Have two versions of polar NRZ: i. NRZ-L (NRZ-Level) –Bit 1 is represented by negative voltage, bit 0 represented by positive voltage. ii. NRZ-I (NRZ-Invert) –Bit 1 is represented inversion of voltage, bit 0 is represented by no change. POLAR SCHEME
  • 12. 4.12 Figure 4.6 Polar NRZ-L and NRZ-I schemes POLAR SCHEME
  • 13. 4.13 RZ (Return-to-Zero) • Uses three values: positive, negative, and zero • In RZ, bit 1 is represented by positive-to-zero voltage, bit 0 is represented by negative-to-zero voltage. Figure 4.7 Polar RZ scheme POLAR SCHEME
  • 14. 4.14 Biphase : Manchester and Differential Manchester • Best solution for synchronization problems • Manchester (RZ + NRZ-L) –Bit 1 is represented by negative-to-positive transition; bit 0 is represented by positive-to- negative transition. • Differential Manchester (RZ + NRZ-I) –Bit 1 is represented by no transition; bit 0 is represented by transition. POLAR SCHEME
  • 15. 4.15 Figure 4.8 Polar biphase: Manchester and differential Manchester schemes POLAR SCHEME
  • 16. 4.16 • Alternate Mark Inversion (AMI) –A bit 1 is represented by positive and negative voltage alternately; bit 0 is represented by zero voltage. –Advantages : DC component is zero and provide synchronization for a long strings of 1s. Figure 4.9 Bipolar schemes: AMI BIPOLAR SCHEME
  • 17. 4.17 Summary of Line Coding Scheme Table 4.1 Summary of line coding schemes
  • 18. 4.18 4-2 ANALOG-TO-DIGITAL CONVERSION • Sometimes, we have to sent analog data (signal) using digital signal. • In this section, we will discuss how we can represent analog signal by using digital signals. • In this section we describe two techniques, • Pulse Code Modulation • Delta Modulation.
  • 19. 4.19 PULSE CODE MODULATION (PCM) • Technique to change an analog signal to digital data (digitization) • PCM encoder has three process: 1. The analog signal is sampled (sampling) 2. The sampled signal is quantized (quantizing) 3. The quantized values are encoded as streams of bit (encoding) Figure 4.21 Components of PCM encoder
  • 20. 4.20 SAMPLING • Sampling is the process of measuring the non- integral amplitude of analog signal at equal intervals. • The analog signal is sampled every Ts s, where Ts is the sampling interval or period • The inverse of the sampling interval is called the sampling rate. • There are three sampling methods : ideal, natural, and flat-top • The sampling process is sometimes referred to as Pulse Amplitude Modulation (PAM).
  • 21. 4.21 Figure 4.22 Three different sampling methods for PCM SAMPLING
  • 22. 4.22 Sampling Rate • Based on Nyquist theorem ; 1. We can sample signal only if the signal is band-limited -> signal with an infinite bandwidth cannot be sampled 2. Sampling rate must be at least 2 times the highest frequency contained in the signal. Example What sampling rate needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)? • Solution Sampling rate = 2 (11,000) = 22,000 samples/S SAMPLING
  • 23. 4.23 • The result of sampling is a series of pulses with amplitude values between the maximum and minimum amplitudes of the signal. • Set of amplitudes can be infinite with non-integral values and these values cannot be used in the encoding process. • Quantization is the method of assigning integral values in a specific range to sampled instances. • In quantization, we approximate the value of the sample amplitude to the quantized values. QUANTIZATION
  • 24. 4.24 Figure 4.26 Quantization and encoding of a sampled signal QUANTIZATION
  • 25. 4.25 • After each sample is quantized and the number of bits per sample is decided, each sample can be changed to an nb-bit code word • A quantization code of 2 is encoded as 010; 5 is encoded as 101; etc Bit rate = sampling rate x no. of bits per sample = fs x nb • Example 4.14 We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample? Solution The human voice normally contains frequencies from 0 to 4000 Hz. So the sampling rate and bit rate are calculated as follows: ENCODING
  • 26. 4.26 4-3 TRANSMISSION MODES • The transmission of binary data across a link can be accomplished in either parallel or serial mode. • In parallel mode, multiple bits are sent with each clock tick. In serial mode, 1 bit is sent with each clock tick.
  • 27. 4.27 Figure 4.31 Data transmission and modes 4-3 TRANSMISSION MODES
  • 28. 4.28 PARALLEL TRANSMISSION • Send data n bits at a time using n channels • Conceptually: use n wires to send n bits at one time Figure 4.32 Parallel transmission
  • 29. 4.29 SERIAL TRANSMISSION • Send data one bit follows another using one channel • Serial occurs in one of three ways : asynchronous, synchronous, and isochronous Figure 4.33 Serial transmission
  • 30. 4.30 • The timing of signal is unimportant • A byte is sent with one start bit (0) at the beginning and one or more stop bits (1) at the end of each byte. ASYNCHRONOUS TRANSMISSION Figure 4.34 Asynchronous transmission
  • 31. 4.31 • The bit stream is combined into longer frames, which may contains multiple bytes • Bytes are sent one after another without start and stop bits or gap Figure 4.35 Synchronous transmission SYNCHRONOUS TRANSMISSION
  • 32. 4.32 EXERCISE 1. Assume a data stream is made of threes 0s followed by two 1s followed by two 0s and another three 1s. Encode this stream using the following encoding schemes: Unipolar, NRZ-L, NRZ-I, RZ, Manchester, Differential Manchester and AMI. 2. Using Nyquist Theorem, calculate the sampling rate for the following analog signal: a) An analog signal with frequency from 2000 to 6000 Hz b) A signal with horizontal line in the time-domain representation