CH 04
CH 04
CH 04
Digital Transmission
4.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4-1 DIGITAL-TO-DIGITAL CONVERSION
In this section, we see how we can represent digital
data by using digital signals. The conversion involves
three techniques: line coding, block coding, and
scrambling (synchronization by adding long sequence of
zeros). Line coding is always needed; block coding and
scrambling may or may not be needed.
4.2
Figure 4.1 Line coding and decoding
4.3
Figure 4.2 Signal element versus data element
• A data element is the smallest entity that can represent a piece of information: this is
the bit.
• Signal element carries data elements (bits). Data elements are what we need to send; signal elements (a carrier)
Define a ratio r which is the number of data elements carried by each signal element.
4.4
Example 4.1
• The data rate defines the number of data elements (bits) sent in 1s.
• The signal rate is the number of signal elements sent in 1s. The unit is the baud.
• The data rate is sometimes called the bit rate; the signal rate is sometimes called the
pulse rate, the modulation rate, or the baud rate
We can formulate the relationship between data rate and signal rate as
Where N is the data rate (bps); c is the case factor, which varies for each case; S is the number of signal elements;
A signal is carrying data in which one data element is encoded as one signal
and r is the ratio.
element ( r = 1). If the bit rate is 100 kbps, what is the average value of the baud
rate if c is between 0 and 1?
Solution
We assume that the average value of c is 1/2 . The baud rate is then
4.5
Figure 4.4 Line coding schemes
4.6
Figure 4.5 Unipolar NRZ scheme
• Positive voltage defines bit I and the zero voltage defines bit O.
• It is called NRZ because the signal does not return to zero at the
middle of the bit.
4.7
Figure 4.6 Polar NRZ-L and NRZ-I schemes
• NRZ-L (NRZ-Level), the level of the voltage determines the value of the bit.
• In NRZ-I (NRZ-Invert), the change or lack of change in the level of the voltage determines the value of the bit. If
4.8
Figure 4.7 Polar RZ scheme
• The main problem with NRZ encoding occurs when the sender and receiver
clocks are not synchronized.
• The receiver does not know when one bit has ended and the next bit is starting.
• Three levels: positive, negative, and zero
• Signal goes to 0 in the middle of each bit. It remains there until the beginning of the next
bit.
• Disadvantage: it requires two signal changes/elements to encode a bit and therefore
occupies greater bandwidth. Moreover, its complex; RZ uses three levels of voltage
4.9
Figure 4.8 Polar biphase: Manchester and differential Manchester schemes
• Differential Manchester uses the idea of NRZ-I, i.e., changes level only on 1.
4.10
Note
4.11
Figure 4.9 Bipolar schemes: AMI and pseudoternary
4.12
• We need redundancy to ensure synchronization and to provide some
kind of inherent error detecting.
• Block coding can give us this redundancy and improve the performance
• of line coding. In general, block coding changes a block of m bits into a
block of n bits, where n is larger than m.
4.13
Figure 4.14 Block coding concept
• Block coding normally involves three steps: division, substitution, and
combination.
• In the division step, a sequence of bits is divided into groups of m bits.
• In substitution step, we replace an m-bit group with an n-bit group.
• Finally, the n-bit groups are combined to form a stream. The new stream
has more bits than the original bits.
4.14
4-2 ANALOG-TO-DIGITAL CONVERSION
4.15
Figure 4.21 Components of PCM encoder
A PCM encoder has three processes
1. The analog signal is sampled every Ts, where Ts is the sample interval or period. Depends on sampling rate or frequency.
4.16
Note
4.17
Example 4.6
4.19
Figure 4.26 Quantization and encoding of a sampled signal
The following are the steps in quantization:
L=8
Δ=5
4.20
Figure 4.27 Components of a PCM decoder
• The decoder first uses circuitry to convert the code words into a pulse that holds
the amplitude until the next pulse.
• After the staircase signal is completed, it is passed through a low-pass filter to
produce the analog signal.
4.21
Figure 4.28 The process of delta modulation
• Reduces complexity involved in PCM.
• The modulator is used at the sender side to create a stream of bits from an analog signal.
• The process records the small positive or negative changes, called delta. If the delta is positive, the process
Advantages of Delta Modulation
records a I; if it is negative, the process records a O.
•Design is easy and simple. It is a 1-bit quantizer.
•Modulator & demodulator can be designed easily.
•In delta modulation, the quantization design is very simple
4.22
Figure 4.29 Delta modulation components
• The modulator builds a signal that resembles a staircase.
• The modulator, at each sampling interval, compares the value of the analog signal with
the last value of the staircase signal
4.23
Figure 4.30 Delta demodulation components
• The demodulator takes the digital data and, using the staircase maker and the
delay unit, creates the analog signal.
• Delay unit holds the staircase function for comparison.
• The created analog signal, however, needs to pass through a low-pass filter for
smoothing (for noise removal).
4.24
4-3 TRANSMISSION MODES
4.25
Figure 4.31 Data transmission and modes
• Use n wires to send n bits at one time. That way each bit has its own wire, and all
n bits of one group can be transmitted with each clock tick from one device to
4.27
Figure 4.33 Serial transmission
The advantage of serial over parallel transmission is that with only one
communication channel, serial transmission reduces the cost of transmission over
parallel by roughly a factor of n.
4.28
Note
4.29
Note
4.30
Figure 4.34 Asynchronous transmission
This is transmission at any time, with arbitrary delay between transmission of any two
4.31
Note
• In synchronous transmission, we
send bits one after another without
start or stop bits or gaps.
• It is the responsibility of the receiver
to group the bits.
4.32
Figure 4.35 Synchronous transmission
• The bit stream is combined into longer "frames," which may contain multiple
bytes.
• Each byte is introduced onto the transmission link without a gap between it
and the next one
• This is continuous transmission with no gaps between transmission of successive data items.
• Using synchronous transmission, a sender transmits bits continually with no idle time between successive bits.
4.33
Isochronous
• A way to use synchronous transmission to accept and send data at a fixed rate.
• This is transmission at regular intervals with a fixed gap between the
transmission of successive data items.
• In real-time audio and video, in which uneven delays between frames are not
acceptable, synchronous transmission fails. For example, TV images are
broadcast at the rate of 30 images per second; they must be viewed at the same
rate. If each image is sent by using one or more frames, there should be no
delays between frames.
• For this type of application, synchronization between characters is not enough;
the entire stream of bits must be synchronized. The isochronous transmission
guarantees that the data arrive at a fixed rate.
4.34