DCN386 Signals&LineCodingMethods
DCN386 Signals&LineCodingMethods
1
• A discrete-time signal has values at discrete moments of time. The values of
the signal between these discrete moments are not conveyed or represented.
2
• Signals can be classified as either analog or digital.
• On the other hand, a digital signal is a discrete-time signal. The value of each
sample of the digital signal has a limited number of possible values.
3
• The samples of a digital signal are usually represented or encoded as binary
numbers producing a signal of binary digits as shown in figure below.
4
Digital Signals
• Information can be represented by a digital signal. For example, a logic 1 can be
encoded as a positive voltage and a logic 0 as a zero voltage.
• A digital signal can have more than two voltage levels. In this case, more than 1
bit can be sent for each level of the digital signal. The number of distinct levels
“L” needed to encode “m” bits of data is such that:
L ≥ 2m
Solving the above equation for the number of bits “m” that can be encoded
using “L” distinct levels yields:
log L ln L
m≤ or m≤
log 2 ln 2
5
Figure below shows two digital signals: one with two signal levels and the other
one with four signal levels.
6
• The bandwidth of a digital signal is infinite. Therefore, baseband transmission of
a digital signal that preserves the shape of the digital signal is possible only if a
low-pass transmission channel with an infinite or very wide bandwidth is used.
7
Modulation of Digital Signals
• If the available transmission channel is a bandpass channel, the baseband
digital signal cannot be directly sent through to the channel. Instead, conversion
of the digital signal to an analog signal is required before transmission.
8
Transmission Impairments of Signals
9
Transmission of Analog and Digital Data
• There are different modulation and encoding schemes to convey and transmit
analog and digital data. Figure below explains the different conversion methods
available to convey analog and digital data.
10
Digital-to-Digital Conversion
• Digital data can be represented by digital signals.
• Digital-to-digital conversion can be achieved by a process called line coding.
• In line coding, digital data are encoded at the sender to produce a digital signal.
At the receiver the digital data are recovered by decoding the received digital
signal.
11
Line Coding Schemes
• Line coding can be divided into the following five categories:
12
Unipolar (NRZ) Encoding
• In uniploar encoding the digital signal has either positive or negative voltage
levels.
• A unipolar non-return-to-zero (NRZ) digital signal has a positive voltage level for
each 1 digit and a zero voltage level for each 0 digit of the data stream.
14
Polar NRZ Encoding
• In polar NRZ-L (NRZ-Level) encoding the level of the signal depends on the
state of the encoded bit. For example, any 0 is represented by a certain
negative voltage level and any 1 is represented by a certain positive voltage
level.
• In polar NRZ-I (NRZ-Invert) encoding the signal voltage level is inverted (from a
certain negative voltage level to a certain positive voltage level, or vice versa)
if a 1 is encountered.
16
Polar RZ Encoding
• Polar RZ uses three signal levels: positive, zero and negative. A 1 is
represented by a positive pulse that occupies half (or part of) the time
allocated for transmitting a 1 bit. A 0 is represented by a negative pulse that
occupies half (or part of) the time allocated for transmitting a 0 bit.
• The RZ signal includes the clock signal of the transmitted stream, thus solving
the synchronization problem. However, reducing the pulse-time to half (or any
other portion) means doubling (or increasing) the required transmission
bandwidth.
17
Polar Biphase Encoding
(Manchester and Differential Manchester Encoding)
19
Bipolar Encoding
• In bipolar encoding the digital signal has three voltage levels: positive, zero
and negative.
21
Scrambling
• AMI encoding is preferred for long distance transmission because it requires
narrow bandwidth and no dc component. The problem of synchronization is
solved through scrambling by creating violations in the bipolar rule.
22
Figure: Two cases of B8ZS scrambling technique of AMI signals.
23
HDB3 (High-Density Bipolar 3-Zero)
• The following rules are used to maintain an even number of non-zero pulses:
24
Figure: Different situations in HDB3 code substitution.
25
Multi-transition Encoding
• The shape of the signal in this scheme reduces the bandwidth needed to
transmit data at the same speed or it allows the transmission of data at a higher
speed for the same bandwidth as compared to an NRZ-I signal.
26
• Figure:
Multitransition
MLT-3 encoding
scheme.
27
Transmission Modes of Digital Data
Asynchronous
Synchronous
Isochronous
28
Figure: Data transmission modes.
29
Figure: Parallel transmission of data.
30
Figure: Serial transmission of data.
31
• Parallel transmission suffer from the interference between the parallel wires
carrying the bits due to the many wires used (cost and complexity).
• In asynchronous transmission of data, 1 start bit and 1, 1.5 or 2 stop bits are
sent with each byte of data. Thus, the receiver doesn’t need to be synchronized
at the byte level with the sender.
• In synchronous transmission no start nor stop bits are added to the sent bytes.
The sent bytes are attached to each other. Thus, the receiver needs to be
synchronized with the sender at both the bit and byte rates.
32
Figure: Asynchronous transmission of data.
33
Figure: Synchronous transmission of data.
34