digital line coding (2)
digital line coding (2)
Line coding
ex no.1
2023-2024
Prepared by:
Yusuf Ahmed
Yusuf Ali
Botan Asead
Karzan Jamal
Theory :
Line coding is a fundamental concept in digital communication systems. It
involves converting digital data, typically represented as binary signals (0s
and 1s), into a specific format suitable for transmission over
communication channels. This conversion is necessary because raw
binary data is not directly suitable for transmission due to its
characteristics. During line coding, each bit or group of bits from the
digital data stream is mapped to a corresponding signal element. The
signal elements can be voltage levels, pulse amplitudes, or other
variations depending on the chosen line coding scheme. This mapping
process ensures that the transmitted signal possesses certain desirable
properties, such as limited bandwidth, easy synchronization at the
receiver, and noise immunity. In summary, line coding is the process of
converting digital data into a format suitable for transmission over
communication channels. It ensures efficient use of bandwidth, facilitates
clock recovery at the receiver, enhances error detection capabilities, and
helps in maintaining signal integrity, all of which are crucial for reliable
communication in digital systems.
1. Set up the experiment as shown below. The pulse generator must have the same rate as
the message signal and it should have a duty cycle of 50%.
2. We used the following simulation parameters for the Random Integer Generator:
M-ary number, M=2 (binary), Bit rate Rb =1kbps.
This is the result for unipolar NRZ shown below:
- Polar NRZ (Non-Return to Zero): Similar to Unipolar NRZ, but uses both
positive and negative voltages to represent binary 1 and 0. It mitigates the
DC offset issue.
- Unipolar RZ (Return to Zero): Each bit period is divided into two halves.
Binary 1 is represented by a positive pulse in the first half, and binary 0 is
represented by zero voltage. It has better synchronization but requires
more bandwidth.
- Polar RZ (Return to Zero): Similar to Unipolar RZ, but uses positive and
negative pulses to represent binary 1 and 0. It offers good synchronization
and avoids DC offset.
2. Bandwidth:
- Unipolar NRZ and Polar NRZ: Bandwidth is equal to the bit rate.
- Unipolar RZ and Polar RZ: Bandwidth is equal to twice the bit rate.
3. Frequency Response and Impulse:
- Polar NRZ: No impulse at zero frequency due to the zero average voltage
level.
- Polar RZ: No impulse at zero frequency or the first null frequency due to
the zero average voltage level.