Digitalto Digital Conversion
Digitalto Digital Conversion
Model Institute of
Engineering & Technology
Course Outcomes
CO2 Appreciate the challenges involved and available protocols for 1,2,3,5,9,10,11,12
facilitating low-level data communication.
CO3 Analyze the design issues in ensuring error free data 1,2,3,4,5,9,10,11,12
construction, deconstruction and transmission across devices.
CO5 Articulate the role of higher network layers in the OSI models 1,2,3,4,5,9,10,12
and the working of common network Applications.
Assessment and Evaluation Plan
Scrambling Understanding
Outcomes of Today’s Lecture
• 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.
• Line coding is always needed; block coding and scrambling may or may not
be needed.
Line coding
• Converting a string of 1’s and 0’s (digital data) into a sequence of signals that
denote the 1’s and 0’s.
• For example a high voltage level (+V) could represent a “1” and a low voltage
level (0 or -V) could represent a “0”.
Mapping Data symbols onto Signal levels
• The data rate defines the number of bits sent per sec - bps. It is often
referred to the bit rate.
• The signal rate is the number of signal elements sent in a second and is
measured in bauds. It is also referred to as the modulation rate.
• Goal is to increase the data rate whilst reducing the baud rate.
Signal Element vs Data Element
Data rate and Baud rate
Question:
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 between 0 and 1?
Solution:
We assume that the average value of c is 1/2 . The baud rate is then
Example 2
Question:
The maximum data rate of a channel (see Chapter 3) is Nmax = 2 × B × log 2 L
(defined by the Nyquist formula). Does this agree with the previous formula for
Nmax?
Solution:
A signal with L levels actually can carry log2L bits per level. If each level
corresponds to one signal element and we assume the average case (c = 1/2),
then we have
Considerations for choosing a good signal element referred
to as line encoding
• All signal levels are on one side of the time axis - either above or below
• NRZ - Non Return to Zero scheme is an example of this code. The signal
level does not return to zero during a symbol transmission.
• Scheme is prone to baseline wandering and DC components. It has no
synchronization or any error detection. It is simple but costly in power
consumption.
Unipolar NRZ Scheme
2. Polar NRZ
• In NRZ-L the level of the voltage determines the value of the bit. In NRZ-I the
inversion or the lack of inversion determines the value of the bit.
• NRZ-L and NRZ-I both have an average signal rate of N/2 Bd.
• NRZ-L and NRZ-I both have a DC component problem and baseline
wandering, it is worse for NRZ-L. Both have no self synchronization &no
error detection. Both are relatively simple to implement.
Polar RZ
• In these schemes we increase the number of data bits per symbol thereby
increasing the bit rate.
• Since we are dealing with binary data we only have 2 types of data element
a 1 or a 0.
• We can combine the 2 data elements into a pattern of “m” elements to
create “2m” symbols.
• If we have L signal levels, we can use “n” signal elements to create L n
signal elements.
Multilevel Code
• We use the notation mBnL, where m is the length of the binary pattern, B
represents binary data, n represents the length of the signal pattern and L the
number of levels.
• L = B binary, L = T for 3 ternary, L = Q for 4 quaternary.
• In mBnL schemes, a pattern of m data elements is encoded as a pattern of n
signal elements in which 2m ≤ Ln.
Multilevel: 2B1Q scheme
Redundancy
Question:
We need to send data at a 1-Mbps rate. What is the minimum required
bandwidth, using a combination of 4B/5B and NRZ-I or Manchester coding?
Solution:
First 4B/5B block coding increases the bit rate to 1.25 Mbps. The minimum
bandwidth using NRZ-I is N/2 or 625 kHz. The Manchester scheme needs a
minimum bandwidth of 1.25 MHz. The first choice needs a lower bandwidth,
but has a DC component problem; the second choice needs a higher
bandwidth, but does not have a DC component problem.
8B/10B block encoding
• The 8B10B block code adds more redundant bits and can thereby choose code
words that would prevent a long run of a voltage level that would cause DC
components.
Scrambling
• The best code is one that does not increase the bandwidth for
synchronization and has no DC components.
• Scrambling is a technique used to create a sequence of bits that has the
required c/c’s for transmission - self clocking, no low frequencies, no wide
bandwidth.
• It is implemented at the same time as encoding, the bit stream is created on
the fly.
• It replaces ‘unfriendly’ runs of bits with a violation code that is easy to
recognize and removes the unfriendly c/c.
AMI used with scrambling
Two cases of B8ZS scrambling technique
• B8ZS substitutes eight consecutive zeros with 000VB0VB. The V stands for
violation, it violates the line encoding rule B stands for bipolar, it implements
the bipolar line encoding rule.
Summary