# CS601 Lecture 7 | CS601 Short Lectures

**Channel:** Information Hub Official 
**Source:** https://www.youtube.com/watch?v=3p7q_D044E0
**Transcript page:** https://www.withtranscript.ai/video/3p7q_D044E0

## Chapters

- 0:01 — Introduction to Block Coding and 4B/5B
- 2:38 — Bandwidth Numerical for 4B/5B Encoding
- 5:27 — Scrambling Techniques: B8ZS and HDB3
- 7:14 — Analog-to-Digital Conversion and PCM Basics
- 9:24 — Sampling Types, Nyquist Rate, and Encoding

## Transcript

**[0:01]:** Assalamu Alaikum , students . I hope you all are doing well . Today we will conduct our lecture number seven . So , without any delay , let's begin . Its first topic is block coding . What is block coding ? It is a technique for digital-to-digital transmission . What is its definition ? As the name implies , block coding converts a block of m bits into a block of n bits . And why does it convert ? Because we studied a problem earlier called jitter . Right ? What does jitter mean ? That some bits are received early at the destination and some are received late . Due to which there is a difference in arrival time , and we call it the jitter problem . So what happens is that blocks with fewer bits are received quickly . Those with more bits are received a bit later .

**[0:43]:** So , what we do is add some redundant bits to the blocks that have fewer bits . Meaning , we make their size equal to the other blocks . That is , we add some redundant bits . So , this is its solution . Right ? So , what do we call this process ? We call it block coding . Meaning , if there are four bits in a block . Right ? And the other blocks have five bits . Then , what will we do ? We will add one redundant bit . We will make it so . Right ? And you don't just add it like that . It must first be encoded and then added . This is so that when it reaches the receiver , there isn't just some extra data added to it . So that it can also be decoded back .

**[1:19]:** So , we encode it and then add some redundant bits to it again . As in this case , there were four bits in a block which we converted into what ? Converted into five bits . And this is what we call block coding . And one thing you must remember in this is that n is always greater than m . Right ? Like this block , we give it the name m . We give this the name n . The n is always greater than m . As in this , it is five . In this , it is four . So what is it ? n is always greater than m . How do we write this ? mB and nB , right ? mB , meaning how many bits are in m ? It is four . Meaning 4B , and how many bits are inside this ?

**[1:55]:** 5B . So , 4B / 5B is also a technique for this block coding . Okay , what is written next here ? It is the same thing I just told you . We need redundancy to ensure synchronization . What is the meaning of synchronization ? At the same time , all blocks of bits must be received at the destination at the same time . So , what do we need ? We need redundancy , and block coding provides us with redundancy . Okay ? It provides extra bits . So , we encode them to create a block . And that is how this problem gets solved . After that , the next point states that 4B / 5B encoding uses NRZI encoding scheme . Okay ? It can appear in MCQs . So , you must remember this .

**[2:38]:** Next is a numerical ; there is only one numerical in this entire lecture . So , you have to do it thoroughly . We are given a data rate of 1 Mbps . Well , the data rate is represented by ' n ' . Okay ? Either data rate or bit rate , okay ? We represent it with ' n ' . Although we could have represented it with ' B ' . But since it is bit rate , it should have been represented by ' B ' . But no , we represent it with ' n ' . Bandwidth is represented by ' B ' . And signal rate or baud rate is represented by ' S ' . So , you must remember this . The data rate , i.e. , the value of ' n ' given to us is ? 1 Mbps .

**[3:09]:** What is the bandwidth using 4B / 5B for NRZI ? NRZI and Manchester encoding , meaning you have to find the bandwidth for 4B / 5B NRZI as well as for 4B / 5B Manchester coding . Now , what is this Manchester coding ? We skipped this in the previous lecture , so let's take a look ; it is the third scheme of polar , which we call bi-phase . It is named bi-phase because it has two phases . One we call Manchester , and the other we call Differential Manchester . Okay ? Manchester and Differential Manchester . And you must also remember its bandwidth . What is it ? B = n , while what is the bandwidth for NRZI ? B = n / 2 ; this will be used in our numerical . So , what have we been asked ? The bandwidth of NRZI has been asked .

**[4:02]:** So , what is the data rate N given to us ? 1 Mbps . Okay ? Now , we have to find it for 4B / 5B . So , what will we do ? And the new value we get , what we need to do is ... We need to multiply this one by 5/4 . Okay ? You just have to remember this . Multiply it by 5/4 . Okay ? So , just memorize this . Don't do it by 4/5 . Do it by 5/4 . Now , why do this ? Even I don't know that . Okay ? So , just multiply it . The answer we get will be 1.25 Mbps . Now , this is our new data rate . Now , we have to find it for NRZ-I . Or , sorry , for NRZ-I . Now , for NRZ-I , we know what the bandwidth is equal to , right ?

**[4:38]:** It is equal to N / 2 . Meaning , what do we do to the data rate ? We halve it . Then we get the bandwidth . Just like it is written behind , NRZ-I = N / 2 , okay ? B = N / 2 for NRZ-I , so what will we do ? We will take this 1.25 and ... We will halve it . So what will we get ? We will get the bandwidth of what ? The NRZ-I scheme , which is ... 0.625 MHz . Now we have to find it for Manchester . For Manchester , B = N itself . Okay ? Meaning , we don't have to use 1.25 , but rather the same data rate that was given to us , 1 Mbps , that is what we write as the answer . For Manchester , bandwidth is equal to N , meaning it will be 1 Mbps .

**[5:18]:** Or we can call it 1000 Kbps . Okay ? There are 1000 Kbps in 1 Mbps . You have to remember this as well .

**[5:27]:** After that , the next is scrambling . This is also a technique of digital-to-digital transmission . Why is it used ? It is used because there were some lags in line coding and block coding . Okay ? There were some flaws . Which ones were they ? You have to remember that too . Okay ? The line coding scheme , meaning whose scheme was line coding ? It belonged to line coding . It has the flaw that it is used for LANs . Meaning it is suitable for Local Area Networks , not for WANs , meaning Wide Area Networks , it is not suitable for that . Okay ? If we combine line coding and block coding , specifically NRZ-I , it solves the sync issue , meaning the issue where blocks of bits were not received at the same time . So , that issue is resolved , but we also have to add a DC component along with it .

**[6:17]:** The drawback is that while combining line and block coding solves the sync issue , we are forced to include a DC component . And the third point is if we use Bipolar AMI . It solves the problem related to the DC component . Meaning , there is no DC component in it . But what happens inside it then ? The sync issue arises . So , these three or four points were some drawbacks . Okay ? Of line coding and block coding . So , you have to remember these drawbacks . That is why we use the scrambling method . It's a short question . I think it appeared in my own exam to name two scrambling techniques . Which scrambling techniques do we use ? So , what are they ? The first one is B8ZS . Okay ? B8ZS stands for Bipolar with 8 - Zero Substitution .

**[7:04]:** And the second is HDB3 . Okay ? High-Density Bipolar 3 - Zero . So , this is important . You must memorize these two scrambling techniques well .

**[7:14]:** Next , we will study Analog-to-Digital conversion . Meaning , we previously looked at Digital-to-Digital . How do we perform transmission ? We have covered all those methods . Okay ? Line coding , block coding , and scrambling . Now we are going to look at how we perform Analog-to-Digital transmission or conversion . So , what do we call this process ? Okay ? The process of converting analog data into digital data is called digitization . Okay ? And secondly , what is the process of converting digital data into analog data called ? It is called modulation . You have to remember this as well . Now , which two techniques are used in this ? To convert analog data into digital data , we use two techniques . Their names are PCM , meaning Pulse Code Modulation , and DM , Delta Modulation . These are very easy .

**[7:57]:** Okay ? The names might sound a bit difficult right now , but they are very easy . Okay ? PCM and DM are used for analog-to-digital conversion , while line coding , block coding , and scrambling are used for digital transmission . I repeat this so that it gets firmly set in your mind . Now , what is PCM ? PCM is a technique that involves three processes . First , samples are taken . Right ? A sample means this is a wave . Right ? Analog is a wave . A wave . When we have to convert this to digital , what do we do ? We take small samples within this wave . Like a sample taken here . Taken here . Taken here . What do we do after taking samples ? We quantize them . Quantizing means assigning specific values to the samples we've taken .

**[8:41]:** We assign them certain levels . Right ? That this is level zero . This is level two . Right ? This is level two . This is level three ; we assign values like this to the samples taken . After assigning values , the next step is encoding . Encoding means that these values , like zero , are encoded . That is , we need to convert them to digital . So to convert to digital , what is the binary for two ? Sorry , what is it for zero ? Zero is 00 , two is 10 , and three is 11 . So , what do we do ? We encode them . What ? We encode the samples we quantized in the end . So these are the three processes . First , sampling is done . Then quantization , and finally encoding is performed .

**[9:24]:** Now , sampling is of three types . Right ? We can take samples in three ways . Right ? These types are ideal sampling , natural sampling , and flat-top sampling . Right ? How do these three work ? Right ? Let’s look at this on mobile . Yes . Yes , these are the three types of sampling . First is ideal sampling . In it , you can see that straight lines are drawn or small samples are taken . If you look at the difference with natural sampling , it’s that the two samples are just connected . Right ? From top to bottom . So , this is our natural sampling . And lastly , there is flat-top sampling . In flat-top sampling , the top part is flat . Okay ? In natural sampling , you can see it's slightly slanted . Okay ?

**[10:07]:** It's diagonal . But in flat-top sampling , the top of the two samples that are combined is completely flat . It is straight . So , these are the three types of sampling . If you are given a graph and asked what kind of sampling this is ? Then you have to identify which sampling this is . Next , we will study Nyquist rate sampling . Within Nyquist rate sampling , there are three types of sampling . Out of those three , one is the ideal one . Which one is that ? That is f = 2f . Meaning , if you have to take a sample , when we take very few samples , we call it under-sampling , which we term as f = f . Meaning , in a wave , if you are taking only one sample , then we call it under-sampling or f = f .

**[10:48]:** After that , there is taking too many samples , okay . When very high accuracy is needed , we take many more samples , so we set f = 4f . Meaning , if one sample was taken , we take four times more samples than that . Okay ? So , we call this over-sampling . So , this is under-sampling . This is over-sampling . The best one lies between these two . Which we call f = 2f . Okay ? We call this Nyquist rate sampling or ideal sampling . Which is in which case ? In this case . Okay ? In this case , you can see that too many samples have been taken . Here too , here too , here too , here too , here too . So , an analog wave is usually very long . Okay ? This is just one full cycle provided .

**[11:30]:** Okay ? But the actual wave is much longer . So , if you take this many samples here , your memory consumption will be high . Okay ? That will be a disadvantage for you . So , the most ideal sampling is of this type . Meaning , if we take fewer samples , that is the best . Next is the quantization process . Okay ? We have seen the process of quantizing , where we take those samples and what do we do with them ? We assign them a value or create a level for them . Right ? Based on how much accuracy is needed . Meaning , if more accuracy is needed , we take more samples or assign more values . Like this is two . Right ? It is going up to two , right ? So , we can call it two , or if you need more accuracy , you can call it 2.1 , right ?

**[12:09]:** Meaning you create more levels . Right ? Or 2.2 , by creating more levels like this , you can make them more accurate . But if you don't want that much accuracy , then by saying 1 , 2 , 3 , you can just get by . So , this is what we call the process of quantizing . The next step is encoding . Meaning , those quantized levels , what do we do with them ? We convert them into equivalent encoded codes . We convert them . For example , if we had created a level for zero , what is the binary coding for zero ? 0 , if we created one for one , then what would it be ? 01 , meaning what did we do ? Analog data , meaning this analog signal that you see , what did we do with it ?

**[12:44]:** We converted it into a digital form . Now , look at this 0 1 0 1 , what is this ? It is a digital form . So , this process is about analog-to-digital conversion . In the next lecture , we will look at delta modulation . So , until then , goodbye .
