DC 3
DC 3
In digital transmission systems, data can either be converted from analog to digital
or transmitted directly in digital form (digital to digital conversion). Both processes
are essential in modern communication systems for data storage, transmission,
and processing.
1. Sampling
2. Quantization
3. Encoding
1.1. Sampling
Sampling is the process of taking periodic snapshots of an analog signal at
regular intervals. Each snapshot is called a sample.
According to the Nyquist Theorem, the sampling rate must be at least twice
the highest frequency present in the analog signal (this is called the Nyquist
rate) to accurately reconstruct the original signal.
Example:
1.2. Quantization
After sampling, each sample has a continuous range of values, but digital
systems can only handle discrete values. Therefore, quantization is the
dc 3 1
process of approximating each sample to the nearest available value in a
discrete set of levels.
1.3. Encoding
Encoding is the final step in the analog-to-digital conversion process. The
quantized values are then converted into a binary format (0s and 1s) for digital
representation.
1. Line Coding
2. Block Coding
dc 3 2
There are several types of line coding schemes:
Unipolar Encoding: Uses only one voltage level for representing binary 1s, and
no signal (or zero voltage) for binary 0s.
Example:
Polar Encoding: Uses two voltage levels to represent binary data (positive
voltage for 1, and negative voltage for 0).
Example:
Bipolar Encoding: Also uses two voltage levels, but instead of alternating
between positive and negative for 1 and 0, it alternates for consecutive 1s
while keeping 0 as zero voltage.
Example:
For binary data 1011 , the first 1 could be +V, the second 1 could be -V, and
0 could be zero voltage.
Manchester Encoding: Combines the clock signal with the data signal. A 0 is
represented by a high-to-low transition, and a 1 is represented by a low-to-
high transition within each clock cycle.
Example:
4B/5B Coding: A common block coding technique where every group of 4 bits
(k = 4) is replaced by a group of 5 bits (n = 5) to ensure a more balanced and
error-tolerant signal.
dc 3 3
Example:
Hamming Code: A type of block coding that not only detects errors but also
corrects them. It adds parity bits to a block of data, enabling detection and
correction of single-bit errors.
Summary:
Analog to Digital Conversion transforms real-world analog signals into digital
format using sampling, quantization, and encoding. This process is crucial for
transmitting voice, video, and other analog data over digital systems.
Digital to Digital Conversion involves encoding digital data into a signal that can
be transmitted over a digital communication medium, using techniques like line
coding and block coding for reliable and efficient transmission.
Both processes are integral to modern digital communication systems, enabling
efficient transmission of voice, data, and video across networks.
Line Coding refers to the process of converting binary data (a sequence of 1s and
0s) into a digital signal suitable for transmission over a physical medium, such as a
copper wire, fiber optic cable, or radio waves. The digital signal may involve
variations in voltage, current, or light intensity, depending on the transmission
medium. This process is necessary for synchronizing data transmission and
ensuring that the data can be transmitted without errors or misinterpretation.
Different line coding schemes define how the binary data (0s and 1s) are mapped
to voltage or signal levels in the communication medium.
dc 3 4
3. Error Detection: Some line coding schemes include error detection
capabilities by including additional information in the transmitted signal.
4. Bandwidth Efficiency: How efficiently the coding scheme uses the available
bandwidth is a critical consideration.
1. Unipolar Encoding
Unipolar NRZ (Non-Return-to-Zero): In this scheme, binary 1 is represented
by a high positive voltage, and binary 0 is represented by zero voltage.
Example: For binary data 1010 , the signal would be high for 1, and zero for
0.
2. Polar Encoding
In polar schemes, both positive and negative voltage levels are used.
Example: If the signal starts at +V and the binary data is 1011 , the signal
will switch between positive and negative at each occurrence of 1, but it
will remain unchanged at 0.
RZ (Return-to-Zero): In this scheme, each bit returns to zero before the next
bit is transmitted. Binary 1 is represented by a positive voltage for half the
duration of the bit period, and binary 0 is represented by a negative voltage
for half the duration.
dc 3 5
Example: The signal returns to zero after each bit is transmitted, improving
synchronization but doubling the bandwidth required compared to NRZ.
3. Bipolar Encoding
Bipolar encoding is also known as AMI (Alternate Mark Inversion). It uses three
voltage levels: positive, zero, and negative.
Example: For binary data 1011 , the first 1 might be represented by +V, the
next 0 by 0, the second 1 by -V, and the last 1 by +V.
4. Manchester Encoding
Manchester encoding combines the clock signal with the data, so each bit is
represented by a transition, ensuring synchronization and reducing the DC
component.
Encoding Rules:
Advantages:
dc 3 6
Disadvantages: Requires more bandwidth because there are two signal
changes per bit.
Example:
For binary data 1010 , the waveform would exhibit a transition for each bit. For
1 , a rising edge (low to high), and for 0 , a falling edge (high to low).
Encoding Rules:
Advantages:
6. 4B/5B Encoding
4B/5B encoding is a block line coding scheme used to ensure synchronization
and avoid long sequences of zeros that can cause synchronization issues. In this
scheme, 4-bit groups of data are converted into 5-bit symbols, which are then
transmitted. The 5-bit code is designed to prevent long sequences of zeros.
Advantages:
dc 3 7
Disadvantages: Increases the bandwidth since each 4-bit group becomes a
5-bit signal.
Positive,
Polar NRZ None Poor Efficient
Negative
Positive,
Polar RZ None Good Less Efficient
Negative, Zero
Positive,
Bipolar (AMI) None Good Efficient
Negative, Zero
Positive,
Manchester None Excellent Less Efficient
Negative
Differential Positive,
None Excellent Less Efficient
Manchester Negative
Positive, Moderate
4B/5B None Excellent
Negative Efficiency
Summary:
Line coding is essential in digital communication for converting binary data
into a signal that can be transmitted.
Unipolar, Polar, Bipolar, Manchester, and 4B/5B are some of the commonly
used line coding techniques in different communication systems.
Block Coding and Scrambling are important techniques used in digital data
transmission to improve signal reliability, error detection, and synchronization.
dc 3 8
They serve different purposes but are often used together to enhance
communication systems.
Block Coding:
Block coding is a method where the source data (typically in binary form) is
divided into fixed-size blocks of bits and then encoded into larger blocks. This is
done to introduce redundancy, error detection, or synchronization capabilities into
the transmitted data.
2. Redundancy: Extra bits are added to the original data bits to detect or correct
errors at the receiver's end.
3. Error Detection and Correction: By using block coding, the receiver can
detect errors (and sometimes correct them) in the transmitted signal.
Example: The 4-bit binary data 1010 might be encoded as 11010 . The extra
bit is introduced to prevent long sequences of zeros, which could cause
synchronization loss.
2. 8B/10B Coding:
3. Hamming Code:
dc 3 9
Purpose: Primarily used for error detection and correction. It adds parity
bits to a block of data to detect and correct single-bit errors.
Example: A 4-bit block such as 1010 could be encoded into a 7-bit block
1010101 by adding three parity bits. The receiver can use these parity bits
Purpose: This is the simplest form of block coding. It adds an extra bit
(parity bit) to a group of data bits. The parity bit can be used to detect if
the number of 1s in the transmitted group is even or odd.
Example: For the data 1010 , a parity bit could be added to make the
number of 1s even, resulting in 10100 .
Scrambling:
Scrambling is a technique used to modify a data sequence so that it avoids long
runs of zeros or ones, which can cause problems with synchronization or signal
quality in communication systems. Scrambling ensures that the transmitted signal
has a sufficient number of transitions between 1s and 0s, which helps maintain
synchronization without adding extra bits, as in block coding.
Scrambling modifies the actual data pattern but allows for the original data to be
recovered perfectly at the receiver without loss.
dc 3 10
receiver.
Types of Scrambling:
1. Self-Synchronizing Scrambler:
Example: If the input data is 1010 , the scrambler might modify this based
on previous bits, such as converting it to 1101 . The receiver can use the
same algorithm in reverse to recover the original data.
2. Synchronous Scrambler:
dc 3 11
4. HDB3 (High-Density Bipolar-3 Zeros):
Benefits of Scrambling:
Synchronization: Scrambling ensures sufficient transitions in the signal for the
receiver to maintain synchronization without the need for extra bits.
No Extra Overhead: Scrambling doesn't increase the size of the data, making
it bandwidth efficient.
Error Detection Can detect and correct errors No error detection capability
Maintains synchronization by
Provides synchronization
Synchronization avoiding long sequences of
through additional bits
identical bits
dc 3 12
Summary:
Block Coding adds redundancy to the transmitted data for error detection and
synchronization, making it robust but requiring additional bandwidth.
Scrambling modifies the data sequence without adding extra bits, ensuring
signal integrity and synchronization without increasing bandwidth, making it
more efficient.
Both block coding and scrambling are crucial in digital transmission systems,
often used together to ensure reliable and efficient communication.
dc 3 13