<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Digital Electronics Archives - ALL ABOUT ELECTRONICS</title>
	<atom:link href="https://www.allaboutelectronics.org/category/digital-electronics/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.allaboutelectronics.org/category/digital-electronics/</link>
	<description>Learn Everything about Electronics</description>
	<lastBuildDate>Fri, 14 Apr 2023 13:52:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.allaboutelectronics.org/wp-content/uploads/2019/03/cropped-logo_transperent-32x32.png</url>
	<title>Digital Electronics Archives - ALL ABOUT ELECTRONICS</title>
	<link>https://www.allaboutelectronics.org/category/digital-electronics/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181273092</site>	<item>
		<title>CMOS Logic Gates Explained</title>
		<link>https://www.allaboutelectronics.org/cmos-logic-gates-explained/</link>
					<comments>https://www.allaboutelectronics.org/cmos-logic-gates-explained/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 14 Apr 2023 13:47:38 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[cmos and and or gate]]></category>
		<category><![CDATA[cmos logic gates]]></category>
		<category><![CDATA[cmos nand and nor gate]]></category>
		<category><![CDATA[cmos xor gate]]></category>
		<category><![CDATA[why nmos passes strong logic &#039;0&#039; and weak logic &#039;1&#039;]]></category>
		<category><![CDATA[why pmos passes strong logic &#039;1&#039; and weak logic &#039;0&#039;]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=2021</guid>

					<description><![CDATA[<p>In this article, the CMOS Logic is explained, and how to design different logic gates using CMOS logic is explained in detail. What is CMOS Logic ? If you see any logic gate then its characteristics like its voltage levels, fan-out, speed, power consumption depends on the technology which is used to design these logic ... <a title="CMOS Logic Gates Explained" class="read-more" href="https://www.allaboutelectronics.org/cmos-logic-gates-explained/">Read more<span class="screen-reader-text">CMOS Logic Gates Explained</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/cmos-logic-gates-explained/">CMOS Logic Gates Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this article, the <a href="https://youtu.be/f3zRz0d9XA8" target="_blank" rel="noreferrer noopener">CMOS Logic</a> is explained, and how to design different logic gates using CMOS logic is explained in detail. </p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>What is CMOS Logic ?</strong></h2>



<p class="has-text-align-justify">If you see any logic gate then its characteristics like its voltage levels, fan-out, speed, power consumption depends on the technology which is used to design these logic gates.<br>There are different logic families like RTL, DTL, TTL and MOS, ECL logic family. Some of them are already obsolete, and are not used in the design these days. While some of the logic families like TTL, ECL, MOS and CMOS logic families are quite popular and widely used in the digital circuits. </p>



<p class="has-text-align-justify">CMOS stands for <strong>C</strong>omplementary <strong>M</strong>etal <strong>O</strong>xide <strong>S</strong>emiconductor. And CMOS based logic gates uses complementary pair of NMOS and PMOS transistors. When MOS transistors are used as logic gate then they are used as a switch.</p>



<p>In both NMOS and PMOS transistor, the voltage applied between the gate and source acts as a control voltage. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM.png"><img fetchpriority="high" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM-1024x943.png" alt="" class="wp-image-2051" width="442" height="407" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM-1024x943.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM-300x276.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM-768x707.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM-1536x1414.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-12.56.53-PM.png 1788w" sizes="(max-width: 442px) 100vw, 442px" /></a></figure>
</div>


<p class="has-text-align-justify">By controlling the gate to source voltage, PMOS and NMOS transistor can be used as a switch. And they can be used to design a logic gate.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM.png"><img decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-1024x855.png" alt="" class="wp-image-2052" width="498" height="416" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-1024x855.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-300x250.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-768x641.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-1536x1282.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.02.34-PM-2048x1710.png 2048w" sizes="(max-width: 498px) 100vw, 498px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>CMOS logic uses both NMOS and PMOS transistors. The PMOS transistors are used as pull-up network and NMOS transistors are used as pull-down network. And because of that, the <strong>static power consumption of the CMOS based logic gates and logic circuit is very low compared to the logic gates which is designed using only either NMOS or PMOS transistors.</strong> Moreover, <strong>CMOS based logic gates has higher noise margin compared to NMOS and PMOS based logic gates.</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM.png"><img decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1024x782.png" alt="" class="wp-image-2053" width="512" height="390" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1024x782.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-300x229.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-768x587.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1536x1173.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-2048x1564.png 2048w" sizes="(max-width: 512px) 100vw, 512px" /></a></figure>
</div>


<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>NMOS Inverter and the Issue of Power Dissipation with NMOS and PMOS Transistors</strong></h2>



<p>Using just either NMOS or PMOS transistors also, it is possible to design a logic gate. The basic design of NMOS inverter is shown below. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM-890x1024.png" alt="" class="wp-image-2055" width="352" height="405" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM-890x1024.png 890w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM-261x300.png 261w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM-768x884.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM-1335x1536.png 1335w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.24.31-PM.png 1538w" sizes="(max-width: 352px) 100vw, 352px" /></a></figure>
</div>


<p class="has-text-align-justify">Let&#8217;s assume that the threshold voltage (V<sub>T</sub>) of the NMOS transistor is 0.5 V. When V<sub>GS</sub> = 5V or when V<sub>GS</sub> &gt; V<sub>T </sub>, (Let&#8217;s assume that logic &#8216;1&#8217; is 5V) then MOSFET will be ON and acts as a close switch (Ideally, the ON resistance of the MOSFET is 0 ohm)  And the output will get connected to the ground. But actually, there will be some finite ON resistance of the MOSFET (10s of Ohm). And the drain resistor R<sub>D</sub> is in kilo-ohm. Therefore, in actual case also, the output will be very close to 0V or logic &#8216;0&#8217;.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-1024x588.png" alt="" class="wp-image-2056" width="578" height="331" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-1024x588.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-300x172.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-768x441.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-1536x882.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.28.41-PM-2048x1176.png 2048w" sizes="(max-width: 578px) 100vw, 578px" /></a></figure>
</div>


<p class="has-text-align-justify">Similarly, when V<sub>GS</sub> = 0V or logic &#8216;0&#8217; then MOSFET will be OFF and it will act as a open switch. And through the drain resistor, the output will get connected to the supply voltage. That means when input is 0 then output is V<sub>DD</sub>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-1024x587.png" alt="" class="wp-image-2057" width="619" height="355" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-1024x587.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-300x172.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-768x440.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-1536x880.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.32.50-PM-2048x1173.png 2048w" sizes="(max-width: 619px) 100vw, 619px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>And in this way, this circuit will act as an inverter.</p>



<p class="has-text-align-justify">Now, when we are designing this logic gate using a discrete components, then it is possible to include large drain resistor in the circuit. But in the integrated circuits, it is difficult to fabricate a resistor with a large value.<br>Therefore, in the ICs, instead of resistor, the MOSFET is used as an active load.<br>As shown below, the gate and drain terminals of the MOSFET are connected to V<sub>DD</sub>. That means the upper NMOS transistor remains in the ON condition. And in the ON condition, its ON resistance will provide the required drain resistance for the Lower NMOS transistor.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-1024x794.png" alt="" class="wp-image-2058" width="531" height="411" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-1024x794.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-300x233.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-768x595.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-1536x1191.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.39.30-PM-2048x1588.png 2048w" sizes="(max-width: 531px) 100vw, 531px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>Of course, by changing the MOSFETs device parameters, it is possible to ensure that, its ON resistance is in kΩ.</p>



<p class="has-text-align-justify">The issue with this design is that, there is a static power dissipation across the transistor.<br>For example, when the input to the inverter is ‘1’ then NMOS will be ON, and it provides very low resistance. And because of that, there is power dissipation across the NMOS transistor.<br>That means, if the input to the inverter is a clock signal which is continuously changing between ‘1’ and ‘0’ then for half of the total time, there will be a static power dissipation across the NMOS transistors.<br>And the same is case with the logic gate designed using PMOS transistors.</p>



<p class="has-text-align-justify">That means when we are designing the logic gates only using NMOS or PMOS transistors then there will be a static power dissipation. And the power dissipation becomes a critical factor when there are millions of such transistors in the circuit.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>NMOS passes weak logic &#8216;1&#8217; and Strong logic &#8216;0&#8217;</strong></h2>



<p>Apart from the power dissipation, the other issue with the NMOS transistor is that, it passes weak logic &#8216;1&#8217;. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-1024x717.png" alt="" class="wp-image-2060" width="582" height="407" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-1024x717.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-300x210.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-768x538.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-1536x1076.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.50.08-PM-2048x1434.png 2048w" sizes="(max-width: 582px) 100vw, 582px" /></a></figure>
</div>


<p class="has-text-align-justify">When the input to the inverter is logic ‘0’, then output of the inverter should be high and ideally, it should be equal to V<sub>DD</sub>. But actually, here the output will not go beyond V<sub>DD</sub> – V<sub>T</sub>.</p>



<p class="has-text-align-justify">Because, if output of the inverter goes to 5V, then the source terminal of the upper NMOS transistor will be at 5V and therefore, V<sub>GS</sub> will become 0V.<br>Now, for MOSFET to be in ON condition, V<sub>GS</sub> should be more than V<sub>T</sub>. That means in this case, the voltage at the source terminal of the upper MOSFET won’t go beyond V<sub>DD</sub> – V<sub>T</sub>.<br>Otherwise, the upper NMOS transistor will become OFF.<br>So, for example, if threshold voltage of NMOS is 0.5V and supply voltage is 5V then output will not go beyond 4.5 V.<br>That means we will not get full voltage swing. Or in other words, NMOS is weak to pass logic ‘1’.</p>



<p>But at the same time, NMOS transistor passes strong logic &#8216;0&#8217;. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-1024x781.png" alt="" class="wp-image-2061" width="551" height="420" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-1024x781.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-300x229.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-768x586.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-1536x1172.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.10.25-PM-2048x1562.png 2048w" sizes="(max-width: 551px) 100vw, 551px" /></a></figure>
</div>


<p class="has-text-align-justify">For example, if the input to the inverter is logic ‘1’ then NMOS will be in the ON condition and since source is connected to the ground, it will  pull down the voltage of the drain terminal to 0V.<br>That means NMOS passes weak logic ‘1’ but it passes logic ‘0’. And it can be used in the pull-down network to pull down the voltage of specific node to 0V.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>PMOS passes strong logic &#8216;1&#8217; and weak logic &#8216;0&#8217;</strong></h2>



<p class="has-text-align-justify">As shown below, here the source of PMOS is connected to 5V and drain is connected to capacitor.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-1024x607.png" alt="" class="wp-image-2063" width="532" height="315" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-1024x607.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-300x178.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-768x455.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-1536x911.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.15.53-PM-2048x1214.png 2048w" sizes="(max-width: 532px) 100vw, 532px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>Now, when input to PMOS is 0V then V<sub>SG</sub> is more than V<sub>T</sub> and PMOS will act as a closed switch.<br>So, capacitor at the drain terminal will start charging towards 5V and eventually the voltage at the drain terminal will be equal to 5V.<br>So, when we want to pull-up the voltage at the drain terminal to the supply voltage, then we can use the PMOS transistors.<br>But PMOS transistor is weak for passing logic ‘0’.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-1024x425.png" alt="" class="wp-image-2066" width="658" height="273" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-1024x425.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-300x125.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-768x319.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-1536x638.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.23.29-PM-2048x851.png 2048w" sizes="(max-width: 658px) 100vw, 658px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>Let’s say now the drain terminal is connected to ground. And capacitor is connected at the source terminal. And let’s assume that, initially, the voltage across the capacitor is 3V.<br>So, now when V<sub>G</sub> = 0V, then V<sub>SG</sub> is more than V<sub>T</sub>, and because of that, PMOS will conduct and it will try to bring down the voltage of the source terminal to 0V.<br>So, capacitor will start discharging. But as soon as the voltage at the source terminal reaches threshold voltage, then MOSFET will be turned off. Because now V<sub>SG</sub> = V<sub>T</sub>.<br>That means the voltage at the source terminal cannot go below threshold voltage.<br>So, for example, if the threshold voltage of the MOSFET is 0.5V then the voltage at the source terminal will not go below 0.5V. That means PMOS is weak to pass logic ‘0’.</p>



<p class="has-text-align-justify">And that is why it not preferable to use the PMOS transistor in the pull-down network. But it can be used in the pull-up network where we want to pull up the voltage of the specific node.</p>



<p class="has-text-align-justify">In the CMOS network both PMOS and NMOS transistors are used. The PMOS is used as a pull up network and NMOS transistors are used in the pull-down network.<br>And because of this configuration, there is almost no static power consumption in the CMOS logic gates.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>CMOS Inverter</strong></h2>



<p class="has-text-align-justify">As shown below, PMOS transistor is used as a pull-up transistor, so its source is connected to supply voltage and drain is connected to the output node.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM-905x1024.png" alt="" class="wp-image-2068" width="370" height="418" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM-905x1024.png 905w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM-265x300.png 265w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM-768x869.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM-1357x1536.png 1357w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-2.27.30-PM.png 1670w" sizes="(max-width: 370px) 100vw, 370px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>Similarly, the NMOS transistor is used as a pull-down transistor. That means its source terminal is connected to ground terminal and drain is connected to output node.<br>And the gate terminals of both PMOS and NMOS transistor is connected to the input.</p>



<h3 class="wp-block-heading has-text-color" style="color:#052fac"><strong>Working of CMOS Inverter:</strong></h3>



<p class="has-text-align-justify">When input is low or logic &#8216;0&#8217;, then V<sub>SG</sub> &gt; V<sub>T</sub> for this PMOS transistor and that’s why PMOS will be ON. On the other end, for NMOS transistor, V<sub>GS</sub> &lt; V<sub>T</sub>.<br>that means when input is logic &#8216;0&#8217;, PMOS transistor will be ON and NMOS transistor will be OFF.<br>And that’s why the output will be connected to 5V.<br>Moreover, since PMOS passes strong logic ‘1’ , the output will be very close to supply voltage.<br>That means when V<sub>in</sub> is logic &#8216;0&#8217; then output is logic ‘1’.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-1024x696.png" alt="" class="wp-image-2070" width="607" height="412" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-1024x696.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-300x204.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-768x522.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-1536x1043.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.16.57-PM-2048x1391.png 2048w" sizes="(max-width: 607px) 100vw, 607px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>On the other end, when Vin is logic ‘1’, then PMOS will be OFF and NMOS will ON.<br>So, in that case, the NMOS transistor will pull-down the output voltage to logic ‘0’. And since NMOS passes strong ‘0’, so output will be very close to 0V.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-1024x726.png" alt="" class="wp-image-2072" width="629" height="446" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-1024x726.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-300x213.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-768x545.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-1536x1089.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-3.30.30-PM-2048x1452.png 2048w" sizes="(max-width: 629px) 100vw, 629px" /></a></figure>
</div>


<p class="has-text-align-justify"><br>So, in this way, at any given time either PMOS transistor is ON or NMOS transistor is ON. And there is no direct path from supply to ground.<br>And because of that, the static power consumption of CMOS logic gate is almost negligible.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>Implementation of Logic Gates using CMOS Logic</strong></h2>



<p>In general any CMOS based logic gate consist of Pull-up network and pull-down network. The pull-up network consists of PMOS transistors while pull-down network consist of NMOS transistors. And inputs to both networks are same.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1024x782.png" alt="" class="wp-image-2053" width="410" height="312" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1024x782.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-300x229.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-768x587.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-1536x1173.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-1.08.54-PM-2048x1564.png 2048w" sizes="(max-width: 410px) 100vw, 410px" /></a></figure>
</div>


<p>So, we have already discussed about the CMOS inverter. Similarly, let’s see how to design other logic gates using CMOS logic.</p>



<h3 class="wp-block-heading has-text-color" style="color:#052fac"><strong>Implementation of NAND and NOR gate using CMOS Logic:</strong></h3>



<p><strong>NAND Gate:</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-1024x628.png" alt="" class="wp-image-2074" width="674" height="412" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-1024x628.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-300x184.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-768x471.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-1536x942.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.02.16-PM-2048x1256.png 2048w" sizes="(max-width: 674px) 100vw, 674px" /></a></figure>
</div>


<p>For two input NAND gate, if A and B are the inputs then its output Y = (A.B)&#8217;. </p>



<p>In NMOS network when we have AND operation between the two variables, then two NMOS transistors will get connected in series. And the output will be complement of it. </p>



<p>The PMOS network is dual of the NMOS network. In the NMOS network, if two transistors are connected in series then in the PMOS network, the two PMOS transistors will get connected in parallel.</p>



<p><strong>NOR Gate:</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-1024x659.png" alt="" class="wp-image-2077" width="589" height="379" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-1024x659.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-300x193.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-768x494.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-1536x988.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-4.25.13-PM-2048x1317.png 2048w" sizes="(max-width: 589px) 100vw, 589px" /></a></figure>
</div>


<p>For two input NOR gate, if A and B are the inputs then its output Y = (A+B)&#8217;.</p>



<p>In the NMOS network, whenever there is an OR operation between the two variables then two NMOS transistors will get connected in parallel. And the output will be complement of it. </p>



<p>The PMOS network will be the dual of the NMOS network. Therefore, in the PMOS network, the two PMOS transistors will get connected in series. </p>



<h3 class="wp-block-heading has-text-color" style="color:#052fac"><strong>Implementation of AND and OR gate using CMOS Logic:</strong></h3>



<p><strong>OR Gate:</strong></p>



<p>To implement the OR gate, just add the inverter at the output of the NOR gate. The CMOS OR gate is shown below. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-1024x757.png" alt="" class="wp-image-2080" width="610" height="450" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-1024x757.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-300x222.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-768x567.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-1536x1135.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.44.01-PM-2048x1513.png 2048w" sizes="(max-width: 610px) 100vw, 610px" /></a></figure>
</div>


<p><strong>AND Gate :</strong></p>



<p>Similarly, by connecting the inverter at the output of the NAND gate, we can implement AND gate. The CMOS AND gate is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-1024x791.png" alt="" class="wp-image-2082" width="566" height="437" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-1024x791.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-300x232.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-768x593.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-1536x1186.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-6.53.45-PM-2048x1582.png 2048w" sizes="(max-width: 566px) 100vw, 566px" /></a></figure>
</div>


<h3 class="wp-block-heading has-text-color" style="color:#052fac"><strong>Implementation  of XOR Gate and XNOR using CMOS Logic :</strong></h3>



<p>Similarly, the implementation of XOR and XNOR gate is shown below.</p>



<p><strong>XOR Gate: </strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.09.58-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.09.58-PM-927x1024.png" alt="" class="wp-image-2085" width="463" height="510" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.09.58-PM-927x1024.png 927w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.09.58-PM-271x300.png 271w" sizes="(max-width: 463px) 100vw, 463px" /></a></figure>
</div>


<p><strong>XNOR Gate :</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.13.55-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-14-at-7.13.55-PM-833x1024.png" alt="" class="wp-image-2087" width="453" height="555"/></a></figure>
</div>


<p>For more information, check this video on <a href="https://youtu.be/f3zRz0d9XA8" target="_blank" rel="noreferrer noopener">CMOS Logic gates</a>.</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fcmos-logic-gates-explained%2F&amp;linkname=CMOS%20Logic%20Gates%20Explained" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fcmos-logic-gates-explained%2F&amp;linkname=CMOS%20Logic%20Gates%20Explained" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fcmos-logic-gates-explained%2F&amp;linkname=CMOS%20Logic%20Gates%20Explained" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fcmos-logic-gates-explained%2F&amp;linkname=CMOS%20Logic%20Gates%20Explained" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Fcmos-logic-gates-explained%2F&#038;title=CMOS%20Logic%20Gates%20Explained" data-a2a-url="https://www.allaboutelectronics.org/cmos-logic-gates-explained/" data-a2a-title="CMOS Logic Gates Explained"></a></p><p>The post <a href="https://www.allaboutelectronics.org/cmos-logic-gates-explained/">CMOS Logic Gates Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/cmos-logic-gates-explained/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2021</post-id>	</item>
		<item>
		<title>Binary Multiplication Explained &#124; Multiplication of Fractional Binary Numbers</title>
		<link>https://www.allaboutelectronics.org/binary-multiplication-explained/</link>
					<comments>https://www.allaboutelectronics.org/binary-multiplication-explained/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 08 Apr 2023 15:37:22 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[binary multiplication]]></category>
		<category><![CDATA[binary multiplication all about electronics]]></category>
		<category><![CDATA[binary multiplication of unsigned binary numbers]]></category>
		<category><![CDATA[binary multiplication procedure]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[how to multiply two binary numbers]]></category>
		<category><![CDATA[multiplication of fractional binary numbers]]></category>
		<category><![CDATA[number system digital electronics]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1994</guid>

					<description><![CDATA[<p>In this article, the binary multiplication of unsigned binary numbers is explained using the examples. And you will also learn how to multiply two fractional binary numbers. Understanding Binary Multiplication: The binary multiplication is similar to the conventional decimal multiplication. In Binary Multiplication, the each digital of the second number is multiplied with each digit ... <a title="Binary Multiplication Explained &#124; Multiplication of Fractional Binary Numbers" class="read-more" href="https://www.allaboutelectronics.org/binary-multiplication-explained/">Read more<span class="screen-reader-text">Binary Multiplication Explained &#124; Multiplication of Fractional Binary Numbers</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/binary-multiplication-explained/">Binary Multiplication Explained | Multiplication of Fractional Binary Numbers</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this article, the binary multiplication of unsigned binary numbers is explained using the examples. And you will also learn how to multiply two fractional binary numbers.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>Understanding Binary Multiplication:</strong></h2>



<p class="has-text-align-justify">The <a href="https://youtu.be/hK1OYxYpwEc" target="_blank" rel="noreferrer noopener">binary multiplication</a> is similar to the conventional decimal multiplication. In Binary Multiplication, the each digital of the second number is multiplied with each digit of the first number. The first number in the multiplication is known as the &#8220;Multiplicand&#8221; and the second number is called as &#8220;Multiplier&#8221;. </p>



<p class="has-text-align-justify">In binary multiplication, each digit of the multiplier is multiplied with the multiplicand. Each multiplication gives the partial products. The partial products are adjusted according to their weights. And the summation of the partial products gives us the final result of the multiplication. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM-1024x650.png" alt="" class="wp-image-1996" width="561" height="355" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM-1024x650.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM-300x190.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM-768x487.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-2.09.39-PM.png 1510w" sizes="(max-width: 561px) 100vw, 561px" /></a></figure>
</div>


<p>Since the binary numbers involves only two digits (1s and 0s), the binary multiplication process in much simpler than decimal multiplication. </p>



<p>In binary multiplication, </p>



<p class="has-text-color" style="color:#2823f4"><strong>0 x 0 = 0</strong></p>



<p class="has-text-color" style="color:#2823fa"><strong>0 x 1 = 0</strong></p>



<p class="has-text-color" style="color:#2823fa"><strong>1 x 0 = 0</strong></p>



<p class="has-text-color" style="color:#2823fa"><strong>1 x 1 = 1 </strong></p>



<p>Using these simple rules of binary multiplication, it is possible to multiply two numbers.</p>



<p>Let&#8217;s take one example and through that let&#8217;s understand the process of binary multiplication. </p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>Example  1</strong></h2>



<p>Let&#8217;s say, we want to multiply 6 (110) and 5 (101) in binary. </p>



<p>To perform the binary multiplication, starting from the LSB of the multiplier, we will multiply each digit to the multiplicand.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-1024x416.png" alt="" class="wp-image-2000" width="757" height="307" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-1024x416.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-300x122.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-768x312.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-1536x624.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.08.35-PM-2048x831.png 2048w" sizes="(max-width: 757px) 100vw, 757px" /></a></figure>
</div>


<p>So, if we start from 1 then first, we will multiply it with 0, then 1 and at the last with this MSB (1).</p>



<p>Now, when we are multiplying the binary digits, then actually we are also multiplying their weights. And according to their weights, we will place the result in a particular column.</p>



<p>So, here first let’s multiply this 1 with 0. So, here the weight of both 0 and 1 is 2<sup>0</sup>. So, let’s multiply their weights separately.</p>



<p>So, as you know 1 x 0 is 0. And this 2<sup>0</sup> x 2<sup>0</sup> is also 2<sup>0</sup>. That means we will place the result in 2<sup>0</sup> column.</p>



<p>Similarly, when we multiply 1 with 1 then actually it is (1 x 1) ( 2<sup>0 </sup> x 2<sup>1</sup> ) = 1 x 2<sup>1</sup> . </p>



<p>Therefore, the result will be placed in 2<sup>1</sup> column.</p>



<p>Likewise, when we multiply 1 (the LSB of multiplier) with 1 (MSB of multiplicand), then actually it is (1 x 1) (2<sup>0</sup> x 2<sup>2</sup>) = 1 x 2<sup>2</sup> . Therefore, the result will be placed in 2<sup>2</sup> column. </p>



<p>The result of the multiplication is known as the partial product. The first partial product is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-1024x407.png" alt="" class="wp-image-2001" width="720" height="286" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-1024x407.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-300x119.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-768x305.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-1536x611.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.20.56-PM-2048x814.png 2048w" sizes="(max-width: 720px) 100vw, 720px" /></a></figure>
</div>


<p>Similarly, the second digit of the multiplier will be multiplied with the each digit of the multiplicand. And the result will be placed in appropriate columns according to their weights. The same is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-1024x526.png" alt="" class="wp-image-2003" width="722" height="370" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-1024x526.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-300x154.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-768x395.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-1536x790.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.29.01-PM-2048x1053.png 2048w" sizes="(max-width: 722px) 100vw, 722px" /></a></figure>
</div>


<p>And finally, the MSB of the multiplier will be multiplied with the each digit of the multiplicand. And once again the result will be placed in an appropriate columns according to their weights. The same is shown blow. </p>



<figure class="wp-block-image size-large"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM.png"><img loading="lazy" decoding="async" width="1024" height="546" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-1024x546.png" alt="" class="wp-image-2004" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-1024x546.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-300x160.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-768x410.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-1536x819.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.34.38-PM-2048x1092.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="has-text-align-justify">In this way, in the multiplication process, we got three partial products. As you can observe, the value of partial product is either 0 or, its value is same as the multiplicand. If the digit of the multiplier is 0 then partial product is 0 and if the digit of the multiplier is 1 then partial product is same as the multiplicand. </p>



<p>Also, as you can observe, as we move from LSB to MSB of the multiplier, each partial product is left shifted by 1 bit position. So, once we get all our partial products then final step is to add all the partial products to get the final result of the multiplication. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-1024x631.png" alt="" class="wp-image-2006" width="726" height="447" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-1024x631.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-300x185.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-768x473.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-1536x946.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-3.45.51-PM-2048x1261.png 2048w" sizes="(max-width: 726px) 100vw, 726px" /></a></figure>
</div>


<p>Once we add all the partial products, then result is <strong>11110</strong>. Its decimal equivalent is <strong>30</strong>. And in this way, we can perform the binary multiplication of two unsigned binary numbers. Let&#8217;s take another example to understand the multiplication procedure. </p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>Example 2 </strong></h2>



<p>Let&#8217;s say, we want to multiply 12 (1100) and 13 (1101). So, here 12 is multiplicand and 13 is a multiplier. Starting of the LSB of the multiplier, let&#8217;s multiply each digit with the multiplicand. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-1024x409.png" alt="" class="wp-image-2008" width="685" height="273" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-1024x409.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-300x120.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-768x307.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-1536x613.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.54.13-PM-2048x818.png 2048w" sizes="(max-width: 685px) 100vw, 685px" /></a></figure>
</div>


<p class="has-text-align-justify">Since the first digit is of the multiplier is 1, the partial product is same as the multiplicand. If we move to the next digit of the multiplier, then it is 0. Since it is 0, the partial product will be 0. But it will be left shifted by 1 bit position. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM-1024x510.png" alt="" class="wp-image-2009" width="673" height="335" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM-1024x510.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM-300x149.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM-768x383.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM-1536x765.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-7.57.48-PM.png 1730w" sizes="(max-width: 673px) 100vw, 673px" /></a></figure>
</div>


<p>Similarly, the next two bits are 1. So, partial product will be same as the multiplicand. But each partial product will be left shifted by 1 bit position. The same is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM-1024x631.png" alt="" class="wp-image-2010" width="652" height="402" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM-1024x631.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM-300x185.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM-768x473.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM-1536x946.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.01.33-PM.png 1802w" sizes="(max-width: 652px) 100vw, 652px" /></a></figure>
</div>


<p>The final step is to add all the partial products to get the result of the multiplication. If we add all the partial products then result is <strong>10011100</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM-1024x667.png" alt="" class="wp-image-2011" width="700" height="456" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM-1024x667.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM-300x195.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM-768x500.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM-1536x1000.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.05.14-PM.png 1954w" sizes="(max-width: 700px) 100vw, 700px" /></a></figure>
</div>


<p>In this way, it is possible to multiply two unsigned binary numbers. Similarly, now let&#8217;s see the multiplication procedure for fractional binary numbers.</p>



<h2 class="wp-block-heading has-text-color" style="color:#ca0966"><strong>Multiplication of Fractional Binary Numbers</strong></h2>



<p class="has-text-align-justify">The multiplication of fractional binary number is similar to the binary integers. Let&#8217;s take one example and through that, let&#8217;s understand the multiplication procedure. Let&#8217;s say, we want to multiply 6.25 and 3.5. </p>



<p class="has-text-align-justify">In the binary, two numbers are 110.01 and 11.10. In the first number (110.01), the number of digits after the binary point are 2. Similarly, in the second number (11.10), the number of digits after the binary point are 1. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM-1024x253.png" alt="" class="wp-image-2014" width="652" height="161" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM-1024x253.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM-300x74.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM-768x190.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM-1536x380.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.48.38-PM.png 1730w" sizes="(max-width: 652px) 100vw, 652px" /></a></figure>
</div>


<p class="has-text-align-justify">First of all, let&#8217;s write the two numbers without their binary points. And let&#8217;s multiply the two numbers like a binary integers. For the multiplication, align the two numbers from the LSB positions. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM-1024x268.png" alt="" class="wp-image-2015" width="646" height="168" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM-1024x268.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM-300x79.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM-768x201.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM-1536x402.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.51.09-PM.png 1924w" sizes="(max-width: 646px) 100vw, 646px" /></a></figure>
</div>


<p>After multiplying the two numbers, the result will be <strong>10101111</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM-1024x857.png" alt="" class="wp-image-2017" width="500" height="418" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM-1024x857.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM-300x251.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM-768x642.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-8.55.23-PM.png 1370w" sizes="(max-width: 500px) 100vw, 500px" /></a></figure>
</div>


<p class="has-text-align-justify">Now, we just need to put the binary point at the appropriate location. In the first number 6.25 (110.01) the number of digits after the binary point are 2. And similarly, in the second number 3.5 (11.1), the number of digits after the binary point are 1. The total number of digits are 3 (2 +1). Therefore, in the obtained result, put the binary point after the 3 digits from the LSB. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM-1024x907.png" alt="" class="wp-image-2018" width="441" height="390" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM-1024x907.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM-300x266.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM-768x680.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2023/04/Screenshot-2023-04-08-at-9.02.50-PM.png 1186w" sizes="(max-width: 441px) 100vw, 441px" /></a></figure>
</div>


<p>And therefore, the result after the multiplication is <strong>10101. 111. </strong>If we see its binary equivalent then it is equal to <strong>21.875</strong>. In this way, we can multiply two fractional binary numbers. </p>



<p></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fbinary-multiplication-explained%2F&amp;linkname=Binary%20Multiplication%20Explained%20%7C%20Multiplication%20of%20Fractional%20Binary%20Numbers" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fbinary-multiplication-explained%2F&amp;linkname=Binary%20Multiplication%20Explained%20%7C%20Multiplication%20of%20Fractional%20Binary%20Numbers" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fbinary-multiplication-explained%2F&amp;linkname=Binary%20Multiplication%20Explained%20%7C%20Multiplication%20of%20Fractional%20Binary%20Numbers" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fbinary-multiplication-explained%2F&amp;linkname=Binary%20Multiplication%20Explained%20%7C%20Multiplication%20of%20Fractional%20Binary%20Numbers" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Fbinary-multiplication-explained%2F&#038;title=Binary%20Multiplication%20Explained%20%7C%20Multiplication%20of%20Fractional%20Binary%20Numbers" data-a2a-url="https://www.allaboutelectronics.org/binary-multiplication-explained/" data-a2a-title="Binary Multiplication Explained | Multiplication of Fractional Binary Numbers"></a></p><p>The post <a href="https://www.allaboutelectronics.org/binary-multiplication-explained/">Binary Multiplication Explained | Multiplication of Fractional Binary Numbers</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/binary-multiplication-explained/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1994</post-id>	</item>
		<item>
		<title>Master Slave Flip-Flop Explained</title>
		<link>https://www.allaboutelectronics.org/master-slave-flip-flop-explained/</link>
					<comments>https://www.allaboutelectronics.org/master-slave-flip-flop-explained/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 03 Aug 2022 15:12:12 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[digital electronics]]></category>
		<category><![CDATA[JK flip-flop]]></category>
		<category><![CDATA[master slave flip-flop]]></category>
		<category><![CDATA[master slave flip-flop timing diagram]]></category>
		<category><![CDATA[master slave flip-flop working]]></category>
		<category><![CDATA[master slave JK flip-flop]]></category>
		<category><![CDATA[sequential circuits]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1886</guid>

					<description><![CDATA[<p>The Master Slave Flip-Flop is the combination two gated latches, where the one latch act as a Master and the second one act as a slave. The salve latch follows the master output. Using the master slave configuration, the race around condition in the JK flip-flop can be avoided. So, let&#8217;s briefly see the race ... <a title="Master Slave Flip-Flop Explained" class="read-more" href="https://www.allaboutelectronics.org/master-slave-flip-flop-explained/">Read more<span class="screen-reader-text">Master Slave Flip-Flop Explained</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/master-slave-flip-flop-explained/">Master Slave Flip-Flop Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-text-align-justify">The Master Slave Flip-Flop is the combination two gated latches, where the one latch act as a Master and the second one act as a slave. The salve latch follows the master output. Using the master slave configuration, the race around condition in the <a href="https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/" target="_blank" rel="noreferrer noopener">JK flip-flop</a> can be avoided. So, let&#8217;s briefly see the race around condition in the JK flip-flop. </p>



<h3 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Race Around Condition in JK Flip-Flop</strong></h3>



<p class="has-text-align-justify">In the level triggered JK flip-flop when, when both J and K input are 1 and when the ON time of the clock is more than the propagation delay of the flip-flop then the output of the flip-flop will toggle continuously between &#8216;1&#8217; and &#8216;0&#8217;. And because of that, it is difficult to predict the output of the flip-flop once the clock becomes low. The race around condition in undesirable condition in the flip-flop, and should be avoided to get the reliable flip-flop output. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png" alt="" class="wp-image-1857" width="359" height="358" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png 519w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition-300x300.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition-150x150.png 150w" sizes="(max-width: 359px) 100vw, 359px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Race Around Condition in JK Flip-Flop</strong></p>



<p>Using the JK flip-flop in master slave configuration, this race around condition can be avoided. </p>



<p></p>



<h3 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Circuit Diagram of Master Slave JK Flip-Flop</strong></h3>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_5.png"><img loading="lazy" decoding="async" width="1025" height="384" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_5.png" alt="" class="wp-image-1882" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_5.png 1025w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_5-300x112.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_5-768x288.png 768w" sizes="(max-width: 1025px) 100vw, 1025px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Circuit Diagram of Master Slave JK Flip-Flop</strong></p>



<p>As shown in the above figure, it consist of two gated SR latches. The first latch act as a master latch and the second latch act as a slave latch. The output of the master latch is connected to the slave latch. The Q&#8217; output of the slave latch is connected back to the master latch where J input is applied and similarly, Q output is connected back where the K input is applied. The clock signal to the slave latch is applied through an inverter. That means when clock signal is high then master is enabled and slave is disabled. And similarly, when clock is low then slave is active and master is disabled. </p>



<h3 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Working of Master Slave JK Flip-Flop</strong></h3>



<p>Let&#8217;s understand the working of Master Slave JK flip-flop using timing diagram.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_4.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_4.png" alt="" class="wp-image-1881" width="455" height="368" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_4.png 590w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_4-300x243.png 300w" sizes="(max-width: 455px) 100vw, 455px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Timing Diagram of Master Slave JK Flip-Flop</strong></p>



<p>Here, initially it has been assumed that the outputs of both master and slave are 0. (Both M and Q are 0). When the clock signal is high then master latch will get enabled and  will respond to the input signals. In this case, initially during the first clock, J = 0 and K = 1. So, output of the master latch will be 0. During ON time of the clock, the slave latch will remain disabled and it will hold its current state. Similarly, during the OFF time of the clock, the master will get disabled and it will hold its current state.  And at the same time, the slave latch will become active and will follow the master output. That means, the slave latch is following the master output during the off time of the clock. Or in other words, the  slave latch follows the master output after the delay of T<sub>ON</sub> . Where T<sub>ON</sub> is the ON time of the clock signal. This cycle repeats at every clock cycle. </p>



<p>During the ON time of the second clock, since J = 1 and K = 0, so master output M = 1. And the slave output Q will remain 0. (Since it is disabled) The slave latch will follow the master output during the OFF time of the clock. From the timing diagram, you can see that, the slave is following the master output after the delay of T<sub>ON</sub>. </p>



<p>For more information, please go through this video on the master slave flip-flop.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Master Slave JK Flip-Flop Explained | Digital Electronics" width="825" height="464" src="https://www.youtube.com/embed/XgRmLl9uRfI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p></p>



<h3 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Master Slave SR Flip-Flop and D Flip-Flop</strong></h3>



<p>Similar to the master slave JK flip-flop, the master slave D flip-flop and SR flip-flop can be designed. </p>



<p>The circuit diagram of the master slave SR flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_6.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_6.png" alt="" class="wp-image-1883" width="660" height="249" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_6.png 1017w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_6-300x113.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_6-768x290.png 768w" sizes="(max-width: 660px) 100vw, 660px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Master Slave SR Flip-Flop</strong></p>



<p></p>



<p>In a simplified manner, this is how it can be represented. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_2.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_2.png" alt="" class="wp-image-1879" width="509" height="220" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_2.png 819w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_2-300x130.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_2-768x332.png 768w" sizes="(max-width: 509px) 100vw, 509px" /></a></figure>
</div>


<p>Similarly, using two gated D latches, the master slave D flip-flop can be designed.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_3.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_3.png" alt="" class="wp-image-1880" width="501" height="227" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_3.png 770w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_3-300x136.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_3-768x349.png 768w" sizes="(max-width: 501px) 100vw, 501px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Master Slave D Flip-Flop</strong></p>



<p></p>



<p>The master slave flip-flop circuit works correctly when the input is constant during the ON time of the clock. If the input signal changes during the ON time of the clock, then slave will not be able to follow the master output. The same is shown in the below timing diagram.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_1.png" alt="" class="wp-image-1878" width="444" height="346" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_1.png 572w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Master-Slave-Flip-Flop_1-300x234.png 300w" sizes="(max-width: 444px) 100vw, 444px" /></a></figure>
</div>


<p>As you can see in the timing diagram, during the second clock cycle, the D input is changing during the ON time of the clock. Since the master is ON at that time, so master will follow the change in the input signal. But the slave will not be follow that input change. Because the slave is following the master output during the OFF time of the clock. Just at the end of the ON period of the second clock, the master output M is 1, so slave will follow the same output. That means, the slave is not able to follow the master output completely when the input is changing during the ON time of the clock. </p>



<p>That means, to use the master slave flip-flop in a correct manner, we need to ensure that the input is not changing during the ON time of the clock. </p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fmaster-slave-flip-flop-explained%2F&amp;linkname=Master%20Slave%20Flip-Flop%20Explained" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fmaster-slave-flip-flop-explained%2F&amp;linkname=Master%20Slave%20Flip-Flop%20Explained" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fmaster-slave-flip-flop-explained%2F&amp;linkname=Master%20Slave%20Flip-Flop%20Explained" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fmaster-slave-flip-flop-explained%2F&amp;linkname=Master%20Slave%20Flip-Flop%20Explained" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Fmaster-slave-flip-flop-explained%2F&#038;title=Master%20Slave%20Flip-Flop%20Explained" data-a2a-url="https://www.allaboutelectronics.org/master-slave-flip-flop-explained/" data-a2a-title="Master Slave Flip-Flop Explained"></a></p><p>The post <a href="https://www.allaboutelectronics.org/master-slave-flip-flop-explained/">Master Slave Flip-Flop Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/master-slave-flip-flop-explained/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1886</post-id>	</item>
		<item>
		<title>JK Flip-Flop Explained &#124; Race Around Condition in JK Flip-Flop &#124; JK Flip-Flop Truth Table, Excitation table and Timing Diagram</title>
		<link>https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/</link>
					<comments>https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 20 Jul 2022 11:28:07 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[all about electronics]]></category>
		<category><![CDATA[digital electronics]]></category>
		<category><![CDATA[excitation table of JK flip-flop]]></category>
		<category><![CDATA[flip flop]]></category>
		<category><![CDATA[JK flip-flop]]></category>
		<category><![CDATA[JK flip-flop truth table]]></category>
		<category><![CDATA[race around condition in JK flip-flop]]></category>
		<category><![CDATA[sequential circuit]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1859</guid>

					<description><![CDATA[<p>JK Flip-Flop Symbol and Truth Table In the SR Flip-Flop, when both inputs S and R are 1 then the output of the flip-flop is indeterminate. That issue can be resolved using the JK Flip-Flop. Similar to the SR Flip-Flop, the JK flip-flop has two inputs. And using the two inputs the flip-flop can be ... <a title="JK Flip-Flop Explained &#124; Race Around Condition in JK Flip-Flop &#124; JK Flip-Flop Truth Table, Excitation table and Timing Diagram" class="read-more" href="https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/">Read more<span class="screen-reader-text">JK Flip-Flop Explained &#124; Race Around Condition in JK Flip-Flop &#124; JK Flip-Flop Truth Table, Excitation table and Timing Diagram</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/">JK Flip-Flop Explained | Race Around Condition in JK Flip-Flop | JK Flip-Flop Truth Table, Excitation table and Timing Diagram</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>JK Flip-Flop Symbol and Truth Table</strong> </h2>



<p class="has-text-align-justify">In the <a href="https://youtu.be/xONsaRVYQmA" target="_blank" rel="noreferrer noopener">SR Flip-Flop</a>, when both inputs S and R are 1 then the output of the flip-flop is indeterminate. That issue can be resolved using the JK Flip-Flop. Similar to the SR Flip-Flop, the JK flip-flop has two inputs. And using the two inputs the flip-flop can be set, reset, hold (memory) or toggled. Unlike the SR flip-flop, in the JK flip-flop, when both inputs J and K are 1 then the output of the flip-flop toggles. The symbol of edge triggered JK flip-flop and its truth table is shown below. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table-1024x362.png" alt="" class="wp-image-1852" width="612" height="216" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table-1024x362.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table-300x106.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table-768x271.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table.png 1041w" sizes="(max-width: 612px) 100vw, 612px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>JK Flip-Flop Symbol and Truth Table</strong></p>



<p class="has-text-align-justify">In the JK flip-flop, at the rising edge of the clock, when<strong> J = 0 and K = 0</strong> then flip-flop <strong>retains (holds) the current state</strong>. When <strong>J = 0 and K = 1</strong>, then flop-flop <strong>resets to 0</strong>. When <strong>J = 1 and K = 0</strong>, then flip-flop <strong>sets the output to 1</strong>. And when <strong>J = 1 and K = 1</strong> then <strong>output of the flip-flop toggles</strong>. When the clock signal is low, then irrespective of the value of J and K inputs, the flop-flop retains the present state. The detailed truth table with all different possibilities of Qn, J and K inputs are shown below, where Qn is the present state and Q<sub>n+1</sub> is the next state of the flip-flop.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-truth-table.png" alt="" class="wp-image-1855" width="366" height="279" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-truth-table.png 605w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-truth-table-300x229.png 300w" sizes="(max-width: 366px) 100vw, 366px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>JK Flip-Flop Truth Table</strong></p>



<p>The negative edge triggered JK flip-flop is similar to the positive edge triggered flip-flop. But it responds to the inputs only at the falling edge of the clock. The symbol and truth table of negative edge triggered flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative-1024x356.png" alt="" class="wp-image-1853" width="598" height="208" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative-1024x356.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative-300x104.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative-768x267.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-FLip-Flop-symbol-and-truth-table_negative.png 1054w" sizes="(max-width: 598px) 100vw, 598px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Symbol and Truth Table of Negative Edge Triggered JK Flip-Flop</strong></p>



<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>JK Flip-Flop Circuit Diagram</strong></h2>



<p>With the little modification in the circuit of the SR flip-flop circuit, it can be used as the JK flip-flop. The circuit of JK flip-flop is shown below. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram-1024x542.png" alt="" class="wp-image-1854" width="562" height="297" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram-1024x542.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram-300x159.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram-768x406.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop_circuit-diagram.png 1047w" sizes="(max-width: 562px) 100vw, 562px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Circuit Diagram of Positive Edge Triggered JK Flip-Flop</strong> </p>



<p>As you can see from the circuit diagram, in the RS flip-flop circuit, the K input is applied in place of the R input while the J input is applied in place of the S input. Moreover, there is a feedback from output to input side. The Q output is connected back the AND gate where the K input is applied while the Q&#8217; output is connected back to the AND gate where the J input is applied. Here the clock transition circuit generates the narrow pulses at the every clock transition. The same is applied to the enable input of the latch. And in this way, the gated latch behaves as an edge triggered flip-flop. </p>



<p>The same circuit can also be implemented using the NAND gates. The circuit diagram of the JK flip-flop with the NAND gates is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate-1024x480.png" alt="" class="wp-image-1851" width="615" height="288" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate-1024x480.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate-300x141.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate-768x360.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-flip-flop-using-NAND-gate.png 1084w" sizes="(max-width: 615px) 100vw, 615px" /></a></figure>
</div>


<p class="has-text-align-center"><strong> Circuit Diagram of Positive Edge Triggered JK Flip-Flop (using NAND gates)</strong></p>



<p></p>



<h2 class="has-text-color wp-block-heading" style="color:#ca0966"> <strong>JK Flip-Flop Characteristic Equation</strong></h2>



<p>The characteristic equation shows the output of the flip-flop Q <sub>n+1 </sub>in terms of the present state Q <sub>n</sub> and the current inputs J and K. The characteristic table of the JK flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characterisitc-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characterisitc-table.png" alt="" class="wp-image-1848" width="323" height="337" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characterisitc-table.png 461w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characterisitc-table-288x300.png 288w" sizes="(max-width: 323px) 100vw, 323px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>The characteristic Table of JK Flip-Flop</strong></p>



<p>As per the characteristic equation, the output Q <sub>n+1</sub> is &#8216;1&#8217; for 4 different input combinations. ( 4 minterms). Using the K-map, the algebraic expression can be simplified further.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/K-map.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/K-map.png" alt="" class="wp-image-1856" width="478" height="225" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/K-map.png 777w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/K-map-300x142.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/K-map-768x363.png 768w" sizes="(max-width: 478px) 100vw, 478px" /></a></figure>
</div>


<p>As per the K-map, after the simplification the output of the flip-flop or the characteristic equation </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characteristic-equation.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characteristic-equation.png" alt="" class="wp-image-1849" width="217" height="47" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characteristic-equation.png 347w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/characteristic-equation-300x65.png 300w" sizes="(max-width: 217px) 100vw, 217px" /></a></figure>
</div>


<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>JK Flip-Flop Excitation Table</strong></h2>



<p>The excitation table of the flip-flop shows the required excitation to the flip-flop, or the required input to the flip-flop, to go from the given state to the next particular state.  The excitation table of the JK flip-flop is shown below. In the table, &#8216;X&#8217; represents that the value of input variable can be either &#8216;0&#8217; or &#8216;1&#8217;. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Excitation-table-1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Excitation-table-1.png" alt="" class="wp-image-1850" width="370" height="225" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Excitation-table-1.png 477w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/Excitation-table-1-300x182.png 300w" sizes="(max-width: 370px) 100vw, 370px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Excitation Table of JK Flip-Flop</strong></p>



<p></p>



<p></p>



<p><strong>For more information, please check the video on JK Flip-Flop</strong></p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="JK Flip-Flop Explained | Excitation Table and Characteristic Equation of JK Flip Flop" width="825" height="464" src="https://www.youtube.com/embed/LOPHyHOMcLI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p></p>



<p></p>



<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>JK Flip-Flop Timing Diagram</strong></h2>



<p>The below timing diagram shows, how the positive edge triggered JK Flip-Flop behaves when J and K input changes with time. Since it is a positive edge triggered flip-flop, so it will respond to the inputs only at the rising edge of the clock. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/timing-diagram.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/timing-diagram.png" alt="" class="wp-image-1858" width="438" height="487" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/timing-diagram.png 592w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/timing-diagram-270x300.png 270w" sizes="(max-width: 438px) 100vw, 438px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Timing Diagram of JK Flip-Flop</strong></p>



<p>At the first rising edge of the clock, when J = 0 and K = 1, then output Q becomes 0 and it remains in that state until next rising edge. In between, even if the input changes, the flip-flop does not responds to the input changes. </p>



<p>At the second rising edge, since J = 1 and K = 0, the output of the flip-flop becomes 1. And it remains in that state until next rising edge. </p>



<p>At the third rising edge, since both J and K inputs are 1, the output of the flip-flop toggles and it becomes 0.</p>



<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Race Around Condition in JK Flip-Flop</strong></h2>



<p class="has-text-align-justify">In the level triggered JK Flip-Flop, when J=K=1, and the ON time of the clock is more than the propagation delay of the JK Flip-Flop ,then because of the feedback from output to the input, the output of the flip-flop may toggle continuously between &#8216;1&#8217; and &#8216;0&#8217;. This condition is known as the Race Around condition. Because of the Race Around Condition&#8217;, we cannot predict the output of the flip-flop at the end of the clock. It can be either &#8216;0&#8217; or &#8216;1&#8217;. That&#8217;s why this Race Around Condition is undesired in the JK Flip-Flop. The issue of Race Around Condition can be resolved using the Master-Slave Flip-Flop. The below diagram shows the Race Around Condition in the JK Flip-Flop.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png" alt="" class="wp-image-1857" width="414" height="413" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition.png 519w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition-300x300.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/race-around-condition-150x150.png 150w" sizes="(max-width: 414px) 100vw, 414px" /></a></figure>
</div>


<p class="has-text-align-center"><strong>Race Around Condition in the JK Flip-Flop</strong></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fjk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram%2F&amp;linkname=JK%20Flip-Flop%20Explained%20%7C%20Race%20Around%20Condition%20in%20JK%20Flip-Flop%20%7C%20JK%20Flip-Flop%20Truth%20Table%2C%20Excitation%20table%20and%20Timing%20Diagram" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fjk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram%2F&amp;linkname=JK%20Flip-Flop%20Explained%20%7C%20Race%20Around%20Condition%20in%20JK%20Flip-Flop%20%7C%20JK%20Flip-Flop%20Truth%20Table%2C%20Excitation%20table%20and%20Timing%20Diagram" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fjk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram%2F&amp;linkname=JK%20Flip-Flop%20Explained%20%7C%20Race%20Around%20Condition%20in%20JK%20Flip-Flop%20%7C%20JK%20Flip-Flop%20Truth%20Table%2C%20Excitation%20table%20and%20Timing%20Diagram" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fjk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram%2F&amp;linkname=JK%20Flip-Flop%20Explained%20%7C%20Race%20Around%20Condition%20in%20JK%20Flip-Flop%20%7C%20JK%20Flip-Flop%20Truth%20Table%2C%20Excitation%20table%20and%20Timing%20Diagram" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Fjk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram%2F&#038;title=JK%20Flip-Flop%20Explained%20%7C%20Race%20Around%20Condition%20in%20JK%20Flip-Flop%20%7C%20JK%20Flip-Flop%20Truth%20Table%2C%20Excitation%20table%20and%20Timing%20Diagram" data-a2a-url="https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/" data-a2a-title="JK Flip-Flop Explained | Race Around Condition in JK Flip-Flop | JK Flip-Flop Truth Table, Excitation table and Timing Diagram"></a></p><p>The post <a href="https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/">JK Flip-Flop Explained | Race Around Condition in JK Flip-Flop | JK Flip-Flop Truth Table, Excitation table and Timing Diagram</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/jk-flip-flop-explained-race-around-condition-in-jk-flip-flop-jk-flip-flop-truth-table-excitation-table-and-timing-diagram/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1859</post-id>	</item>
		<item>
		<title>T Flip-Flop Explained &#124; Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop</title>
		<link>https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/</link>
					<comments>https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 11 Jul 2022 09:49:38 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[digital electronics]]></category>
		<category><![CDATA[flip-flop]]></category>
		<category><![CDATA[T flip-flop characteristic equation]]></category>
		<category><![CDATA[T flip-flop circuit diagram]]></category>
		<category><![CDATA[T flip-flop excitation table]]></category>
		<category><![CDATA[T flip-flop truth table]]></category>
		<category><![CDATA[T flip-flop working]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1816</guid>

					<description><![CDATA[<p>T Flip-Flop Symbol and Truth Table The T flip-Flop has one input. When the input is 1 then its output toggles. Let&#8217;s say the present state of the flip-flop is Qn. So, with T = 1, if Qn = 0 then in the next state, the output of the flip-flop Qn+1 will become 0. And ... <a title="T Flip-Flop Explained &#124; Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop" class="read-more" href="https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/">Read more<span class="screen-reader-text">T Flip-Flop Explained &#124; Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/">T Flip-Flop Explained | Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>T Flip-Flop Symbol and Truth Table</strong></h2>



<p class="has-text-align-justify">The T flip-Flop has one input. When the input is 1 then its output toggles. Let&#8217;s say the present state of the flip-flop is Qn. So, with T = 1, if Qn = 0 then in the next state, the output of the flip-flop Qn+1 will become 0. And similarly currently if Qn is 1 then in the next state, the output will become 0.</p>



<p>With T = 1 input, since the output of the flip-flop <strong>toggles </strong>at every clock pulse, so it is known as T flip-flop.  When T = 0, then the flip-flop will remain in the same state. The symbol and the truth table of the T flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Symbol.png"><img loading="lazy" decoding="async" width="419" height="254" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Symbol.png" alt="" class="wp-image-1814" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Symbol.png 419w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Symbol-300x182.png 300w" sizes="(max-width: 419px) 100vw, 419px" /></a><figcaption><strong>Symbol of Positive Edge Triggered T Flip-Flop</strong></figcaption></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Truth-Table-1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Truth-Table-1.png" alt="" class="wp-image-1815" width="449" height="219" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Truth-Table-1.png 492w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-Truth-Table-1-300x146.png 300w" sizes="(max-width: 449px) 100vw, 449px" /></a><figcaption><strong>Truth Table</strong> <strong>of Positive Edge Triggered T Flip-Flop</strong></figcaption></figure>
</div>


<p>The symbol which is shown above is the symbol of the positive edge triggered flip-flop. The triangle in the symbol indicates that, the flip-flop responds to the input only at the rising edge of the clock. Similarly, the symbol of the negative edge triggered ?T flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered.png" alt="" class="wp-image-1811" width="381" height="279" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered.png 380w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered-300x219.png 300w" sizes="(max-width: 381px) 100vw, 381px" /></a><figcaption><strong>Symbol of Negative Edge Triggered T Flip-Flop</strong></figcaption></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered-truth-table.png" alt="" class="wp-image-1810" width="513" height="269" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered-truth-table.png 564w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/negative-edge-triggered-truth-table-300x157.png 300w" sizes="(max-width: 513px) 100vw, 513px" /></a><figcaption><strong>Truth Table of</strong> <strong>Negative Edge Triggered T Flip-Flop</strong></figcaption></figure>
</div>


<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Characteristic Equation of T Flip-Flop</strong></h2>



<p>The characteristic equation of the flip-flop is the algebraic representation of the next state of the Flip-Flop (Q<sub>n+1</sub>) in terms of the present state (Q<sub>n</sub>) and the current input (T).</p>



<p>That means, here the input variables are Q<sub>n </sub>and T, while the output is Q<sub>n+1 .</sub> </p>



<p>From the truth table, as you can see, the output Q<sub> n+1</sub> is 1 for two different input combination of Q<sub>n </sub>and T. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/t-flip-flop-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/t-flip-flop-truth-table.png" alt="" class="wp-image-1812" width="415" height="326" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/t-flip-flop-truth-table.png 498w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/t-flip-flop-truth-table-300x236.png 300w" sizes="(max-width: 415px) 100vw, 415px" /></a></figure>
</div>


<p>Let&#8217;s write down these two input combinations in the K-map, and let&#8217;s try to simplify the Boolean expression. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-K-map.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-K-map.png" alt="" class="wp-image-1813" width="460" height="364" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-K-map.png 543w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/T-Flip-Flop-K-map-300x238.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a></figure>
</div>


<p>From the K-map, the two minterms are T Q<sub>n</sub> &#8216; and T &#8216; Q<sub>n</sub> . That means the characteristic equation of the T flip-flop is</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/equation.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/equation.png" alt="" class="wp-image-1805" width="361" height="140" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/equation.png 557w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/equation-300x116.png 300w" sizes="(max-width: 361px) 100vw, 361px" /></a></figure>
</div>


<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Excitation Table of T Flip-Flop</strong></h2>



<p>The excitation table of the flip-flop shows the required excitation to the flip-flop, or the required input to the flip-flop, to go from the given state to the next particular state. For the T input, when T = 0 then the flip-flop remains in the same state and when T = 1 then the output of the flip-flop toggles at every clock pulse. The excitation table of the T flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/excitation-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/excitation-table.png" alt="" class="wp-image-1806" width="400" height="327" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/excitation-table.png 488w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/excitation-table-300x245.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></a></figure>
</div>


<h2 class="has-text-color wp-block-heading" style="color:#ca0966"><strong>Circuit Diagram of T Flip-Flop</strong></h2>



<p>With the little modification, the JK flip-flop can be used as a T flip-flop. The truth table of the T flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-1024x366.png" alt="" class="wp-image-1808" width="675" height="241" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-1024x366.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-300x107.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-768x274.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK.png 1070w" sizes="(max-width: 675px) 100vw, 675px" /></a></figure>
</div>


<p class="has-text-align-justify">As you can see form the truth table, when both inputs of JK flip-flop are 0 then it hold the current state. And when its both inputs are 1, then the output of the flip-flop toggles. That means by connecting both inputs of the JK flip-flop together, it can be used as a T flip-flop.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-to-T.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-to-T.png" alt="" class="wp-image-1807" width="637" height="225" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-to-T.png 979w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-to-T-300x106.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/JK-to-T-768x271.png 768w" sizes="(max-width: 637px) 100vw, 637px" /></a></figure>
</div>


<p>That means with the little modification in the circuit of the JK flip-flop, it can be used as a T flip-flop. The circuit of the T flip-flop is shown below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram-1024x499.png" alt="" class="wp-image-1804" width="694" height="338" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram-1024x499.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram-300x146.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram-768x374.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/07/circuit-diagram.png 1079w" sizes="(max-width: 694px) 100vw, 694px" /></a></figure>
</div>


<p><strong>For more information, check this video on T flip-Flop.</strong></p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="T Flip-Flop Explained | Circuit Diagram, Excitation Table and Characteristic Equation" width="825" height="464" src="https://www.youtube.com/embed/hw2rWOlg9x4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Ft-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop%2F&amp;linkname=T%20Flip-Flop%20Explained%20%7C%20Working%2C%20Circuit%20diagram%2C%20Excitation%20Table%20and%20Characteristic%20Equation%20of%20T%20Flip-Flop" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Ft-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop%2F&amp;linkname=T%20Flip-Flop%20Explained%20%7C%20Working%2C%20Circuit%20diagram%2C%20Excitation%20Table%20and%20Characteristic%20Equation%20of%20T%20Flip-Flop" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Ft-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop%2F&amp;linkname=T%20Flip-Flop%20Explained%20%7C%20Working%2C%20Circuit%20diagram%2C%20Excitation%20Table%20and%20Characteristic%20Equation%20of%20T%20Flip-Flop" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Ft-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop%2F&amp;linkname=T%20Flip-Flop%20Explained%20%7C%20Working%2C%20Circuit%20diagram%2C%20Excitation%20Table%20and%20Characteristic%20Equation%20of%20T%20Flip-Flop" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Ft-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop%2F&#038;title=T%20Flip-Flop%20Explained%20%7C%20Working%2C%20Circuit%20diagram%2C%20Excitation%20Table%20and%20Characteristic%20Equation%20of%20T%20Flip-Flop" data-a2a-url="https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/" data-a2a-title="T Flip-Flop Explained | Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop"></a></p><p>The post <a href="https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/">T Flip-Flop Explained | Working, Circuit diagram, Excitation Table and Characteristic Equation of T Flip-Flop</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/t-flip-flop-working-circuit-diagram-excitation-table-and-characteristic-equation-of-t-flip-flop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1816</post-id>	</item>
		<item>
		<title>Half Adder and Full Adder Explained</title>
		<link>https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/</link>
					<comments>https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 14 Feb 2022 17:43:54 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[full adder logic circuit]]></category>
		<category><![CDATA[full adder truth table]]></category>
		<category><![CDATA[full adder using half adder]]></category>
		<category><![CDATA[half adder and full adder]]></category>
		<category><![CDATA[half adder logic circuit]]></category>
		<category><![CDATA[half adder truth table]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1761</guid>

					<description><![CDATA[<p>In this article, the logic circuit, the truth table, and the working of half adder and full adder are explained. Half Adder The half adder is the logic circuit that adds the two bits and generates the sum bit (S) and carry bit (C) as an output. The truth table of the half adder is ... <a title="Half Adder and Full Adder Explained" class="read-more" href="https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/">Read more<span class="screen-reader-text">Half Adder and Full Adder Explained</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/">Half Adder and Full Adder Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this article, the logic circuit, the truth table, and the working of half adder and full adder are explained. </p>



<h2 class="has-text-color wp-block-heading" id="half-adder" style="color:#0f3698"><strong>Half Adder</strong></h2>



<p>The half adder is the logic circuit that adds the two bits and generates the sum bit (S) and carry bit (C) as an output. The truth table of the half adder is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_2.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_2.png" alt="" class="wp-image-1768" width="403" height="165" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_2.png 616w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_2-300x123.png 300w" sizes="(max-width: 403px) 100vw, 403px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_3.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_3.png" alt="" class="wp-image-1763" width="317" height="234" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_3.png 479w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_3-300x222.png 300w" sizes="(max-width: 317px) 100vw, 317px" /></a><figcaption><strong>Truth Table of Half Adder</strong></figcaption></figure></div>



<p>As per the truth table, the sum output is 1 for two input combinations. That means when A is 1 and B is 0 OR A is 0 and B is 1. </p>



<p>Algebraically, <strong>S = A&#8217; B + A B&#8217; = A ⊕ B</strong></p>



<p>Likewise, the carry output is logic &#8216;1&#8217; only for one input combination (when A = 1 and B = 1). </p>



<p>If we denote the carry output as C, then <strong>C = AB</strong></p>



<p>Figure. 1 shows the Boolean expression and the logic circuit of the half adder.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_4.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_4.png" alt="" class="wp-image-1764" width="298" height="134" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_4.png 431w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_4-300x135.png 300w" sizes="(max-width: 298px) 100vw, 298px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_5.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_5.png" alt="" class="wp-image-1765" width="290" height="266" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_5.png 467w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_5-300x276.png 300w" sizes="(max-width: 290px) 100vw, 290px" /></a></figure></div>



<p class="has-text-align-center"><strong>Fig. 1 The Boolean expressions and the logic circuit of the Half Adder</strong></p>



<p class="has-text-align-justify">The half adder circuit is suitable for the addition of two bits at the LSB (Least Significant Bit) position. Because during the addition of two bits at the LSB position, there is no incoming carry. But whenever there is an incoming carry (C<sub>in</sub>) along with the two bits, then a full adder circuit can be used. </p>



<h2 class="has-text-color wp-block-heading" id="full-adder" style="color:#0f3698"><strong>Full Adder</strong></h2>



<p>The full adder is the combinational circuit that adds the two bits along with the incoming carry (C<sub>in</sub>) and generates the sum bit (S)  and an outgoing carry bit (C<sub>out</sub>) as an output. The truth table of the full adder is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_6.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_6.png" alt="" class="wp-image-1769" width="500" height="207" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_6.png 706w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_6-300x124.png 300w" sizes="(max-width: 500px) 100vw, 500px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_7.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_7.png" alt="" class="wp-image-1770" width="372" height="403" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_7.png 571w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_7-277x300.png 277w" sizes="(max-width: 372px) 100vw, 372px" /></a><figcaption><strong>The Truth table of the Full Adder</strong></figcaption></figure></div>



<p>As per the truth table of the full-adder, the sum and carry outputs are logic &#8216;1&#8217; for 4 different input combinations. So, let&#8217;s find the simplified algebraic expression of sum (S) and carry (C<sub>out</sub>) </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_8.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_8.png" alt="" class="wp-image-1771" width="401" height="252" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_8.png 635w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_8-300x189.png 300w" sizes="(max-width: 401px) 100vw, 401px" /></a></figure></div>



<p>Similarly, using the K-map, it is possible to find the simplified boolean expression for the carry output. The K-map for the carry output of the full adder is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_12.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_12.png" alt="" class="wp-image-1772" width="553" height="285" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_12.png 943w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_12-300x155.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_12-768x397.png 768w" sizes="(max-width: 553px) 100vw, 553px" /></a></figure></div>



<p>After the simplification, the carry output <strong>C<sub>out </sub>= AB + B C<sub>in</sub> + AC<sub>in</sub></strong></p>



<p>Moreover, the carry output can also be written as follows:</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_9.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_9.png" alt="" class="wp-image-1774" width="469" height="316" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_9.png 717w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_9-300x202.png 300w" sizes="(max-width: 469px) 100vw, 469px" /></a></figure></div>



<p>Based on these Boolean expressions, the logic circuit for the sum (S) and the carry (C<sub>out</sub>) output is shown below. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_10.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_10.png" alt="" class="wp-image-1776" width="404" height="108" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_10.png 636w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_10-300x80.png 300w" sizes="(max-width: 404px) 100vw, 404px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_11.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_11.png" alt="" class="wp-image-1777" width="492" height="234" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_11.png 778w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_11-300x143.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/slide_11-768x365.png 768w" sizes="(max-width: 492px) 100vw, 492px" /></a></figure></div>



<p>As it can be seen from the logic circuit, we require 5 two-input gates and 1 three-input gate to implement the full adder. So, in total, we require 6 logic gates. But using another expression of C<sub>out</sub> <strong>(C<sub>out</sub> = AB + Cin ( A ⊕ B) )</strong>, we can reduce the total number of gates.</p>



<p>The same circuit is shown below. And if you closely observe then the circuit consist of two half-adders and one OR gate. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_14.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_14.png" alt="" class="wp-image-1779" width="523" height="335" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_14.png 936w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_14-300x192.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_14-768x492.png 768w" sizes="(max-width: 523px) 100vw, 523px" /></a></figure></div>



<p>The same thing can also be shown in terms of the Half adder blocks. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13-1024x348.png" alt="" class="wp-image-1780" width="604" height="205" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13-1024x348.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13-300x102.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13-768x261.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/02/Slide_13.png 1128w" sizes="(max-width: 604px) 100vw, 604px" /></a><figcaption><strong>Full Adder using Two Half Adders</strong></figcaption></figure></div>



<p>For more information, do check this video on Half Adder and Full Adder.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Half Adder and Full Adder Explained | The Full Adder using Half Adder" width="825" height="464" src="https://www.youtube.com/embed/5XbRIVWFRIw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fhalf-adder-and-full-adder-explained%2F&amp;linkname=Half%20Adder%20and%20Full%20Adder%20Explained" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fhalf-adder-and-full-adder-explained%2F&amp;linkname=Half%20Adder%20and%20Full%20Adder%20Explained" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fhalf-adder-and-full-adder-explained%2F&amp;linkname=Half%20Adder%20and%20Full%20Adder%20Explained" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Fhalf-adder-and-full-adder-explained%2F&amp;linkname=Half%20Adder%20and%20Full%20Adder%20Explained" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Fhalf-adder-and-full-adder-explained%2F&#038;title=Half%20Adder%20and%20Full%20Adder%20Explained" data-a2a-url="https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/" data-a2a-title="Half Adder and Full Adder Explained"></a></p><p>The post <a href="https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/">Half Adder and Full Adder Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/half-adder-and-full-adder-explained/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1761</post-id>	</item>
		<item>
		<title>Logic Gates Explained</title>
		<link>https://www.allaboutelectronics.org/logic-gates-explained/</link>
					<comments>https://www.allaboutelectronics.org/logic-gates-explained/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 03 Jan 2022 18:04:49 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[AND gate]]></category>
		<category><![CDATA[logic gates]]></category>
		<category><![CDATA[NAND gate]]></category>
		<category><![CDATA[NOR gate]]></category>
		<category><![CDATA[NOT gate]]></category>
		<category><![CDATA[Truth table of logic gates]]></category>
		<category><![CDATA[what is logic gate]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1704</guid>

					<description><![CDATA[<p>What is Logic Gate? The logic gates are very basic building blocks of digital systems. The logic gates are electronic circuits that consist of one or more inputs and one output. The relation between the input and output is based on certain logic. The logic gates have the ability to make certain logical decisions. And ... <a title="Logic Gates Explained" class="read-more" href="https://www.allaboutelectronics.org/logic-gates-explained/">Read more<span class="screen-reader-text">Logic Gates Explained</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/logic-gates-explained/">Logic Gates Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>What is Logic Gate?</strong></h2>



<p>The logic gates are very basic building blocks of digital systems.</p>



<p>The logic gates are electronic circuits that consist of one or more inputs and one output. The relation between the input and output is based on certain logic. The logic gates have the ability to make certain logical decisions. And because of its ability to make these logical decisions, these gates are known as logic gates. By interconnecting or cascading the different logic gates, it is possible to implement various Boolean functions. </p>



<h2 class="wp-block-heading"><strong>Types of Logic Gates</strong></h2>



<p>Here is the list of the different logic gates.</p>



<ol class="wp-block-list"><li>AND</li><li>OR</li><li>NOT</li><li>NAND</li><li>NOR</li><li>X-OR (Exclusive OR)</li><li>X-NOR (Exclusive NOR)</li></ol>



<p class="has-text-align-justify">The AND, OR, and NOT are three basic logic gates. Using these three gates, it is possible to design and logic circuits or it is possible to implement any Boolean function.</p>



<p class="has-text-align-justify">The NAND and NOR are <strong>Universal Logic Gates</strong>. Because using any of the two gates alone, it is possible to implement any Boolean function or logic circuit. Apart from that, the other two gates are X-OR and X-NOR gates.</p>



<h3 class="wp-block-heading"><strong>AND Gate</strong></h3>



<p>The logic symbol and the Boolean expression of the AND gate are shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_1.png" alt="" class="wp-image-1709" width="380" height="281" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_1.png 414w, https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_1-300x222.png 300w" sizes="(max-width: 380px) 100vw, 380px" /></a></figure></div>



<p class="has-text-align-justify">The output of the AND gate is 1 when all the inputs are high or logic &#8216;1&#8217;. If any one of the inputs is low or logic &#8216;0&#8217; then the output of the AND gate is low. The truth table of the AND gate is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_Truth-Table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_Truth-Table.png" alt="" class="wp-image-1711" width="422" height="351" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_Truth-Table.png 519w, https://www.allaboutelectronics.org/wp-content/uploads/2021/09/AND-gate_Truth-Table-300x250.png 300w" sizes="(max-width: 422px) 100vw, 422px" /></a><figcaption><strong>Truth Table of 2-input AND gate</strong></figcaption></figure></div>



<p>Similar to the 2-input AND gate, more than 2 input AND gates are also available. The symbol of the 3-input AND gate and its Boolean expression is shown below. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/3-input-AND-gate.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/3-input-AND-gate.png" alt="" class="wp-image-1712" width="367" height="229" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/3-input-AND-gate.png 425w, https://www.allaboutelectronics.org/wp-content/uploads/2021/09/3-input-AND-gate-300x187.png 300w" sizes="(max-width: 367px) 100vw, 367px" /></a></figure></div>



<h3 class="wp-block-heading"><strong>OR Gate</strong></h3>



<p>The logic Symbol and the Boolean expression of the OR gate are shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/OR-gate.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/OR-gate.png" alt="" class="wp-image-1714" width="377" height="313" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/OR-gate.png 412w, https://www.allaboutelectronics.org/wp-content/uploads/2021/09/OR-gate-300x249.png 300w" sizes="(max-width: 377px) 100vw, 377px" /></a></figure></div>



<p class="has-text-align-center"></p>



<p>The output of the OR gate is low or logic &#8216;0&#8217; when all the inputs are low. If any one of the inputs is high then the output of the OR gate is high or logic &#8216;1&#8217;. The truth table of the 2-input OR gate is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/Or-gate-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/Or-gate-truth-table.png" alt="" class="wp-image-1716" width="432" height="356" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/09/Or-gate-truth-table.png 524w, https://www.allaboutelectronics.org/wp-content/uploads/2021/09/Or-gate-truth-table-300x247.png 300w" sizes="(max-width: 432px) 100vw, 432px" /></a><figcaption><strong>Truth Table of 2-input OR gate</strong></figcaption></figure></div>



<p>Similarly, we can also have an OR gate with more than 2 inputs. The logic symbol of the 3-input OR gate and the corresponding Boolean expression is shown below. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/3-input-OR-gate.png"><img loading="lazy" decoding="async" width="385" height="227" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/3-input-OR-gate.png" alt="" class="wp-image-1718" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/3-input-OR-gate.png 385w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/3-input-OR-gate-300x177.png 300w" sizes="(max-width: 385px) 100vw, 385px" /></a><figcaption><strong>3-input OR gate and its Boolean Expression</strong></figcaption></figure></div>



<h3 class="wp-block-heading"><strong>NOT Gate</strong></h3>



<p>The NOT gate is also known as the inverter gate. Because the output is the complement of the input signal. The logic symbol and the Boolean Expression of the NOT gate are shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate.png"><img loading="lazy" decoding="async" width="410" height="319" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate.png" alt="" class="wp-image-1719" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate.png 410w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate-300x233.png 300w" sizes="(max-width: 410px) 100vw, 410px" /></a><figcaption><strong>Logic Symbol and Boolean Expression of NOT gate</strong></figcaption></figure></div>



<p>The NOT gate inverts the Logic &#8216;0&#8217; to Logic &#8216;1&#8217; and Logic &#8216;1&#8217; to Logic &#8216;0&#8217;. The truth table of the NOT gate is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate-truth-table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate-truth-table.png" alt="" class="wp-image-1720" width="284" height="227" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate-truth-table.png 354w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOT-gate-truth-table-300x240.png 300w" sizes="(max-width: 284px) 100vw, 284px" /></a><figcaption><strong>The Truth Table of NOT Gate</strong></figcaption></figure></div>



<h3 class="wp-block-heading"><strong>NAND Gate</strong> </h3>



<p>The symbol of the 2-input NAND gate is shown below. It is similar to the AND gate, but there is a bubble on the output side. The NAND gate is the combination of the AND gate followed by the NOT gate. That means the output of the NAND gate is equivalent to the output of the AND gate followed by the NOT gate. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-1.png" alt="" class="wp-image-1723" width="472" height="371" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-1.png 612w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-1-300x236.png 300w" sizes="(max-width: 472px) 100vw, 472px" /></a></figure></div>



<p class="has-text-align-center"><strong>Logic Symbol and the equivalent logic circuit of the NAND gate</strong></p>



<p class="has-text-align-justify">Here is the truth table of AND gate followed by NOT gate. The inputs are A and B. Z is the output of the AND gate, while Y is the output of the NOT gate. Z&#8217; (Z- bar) is the same as the output of the 2-input NAND gate. The output of the NAND gate is logic &#8216;0&#8217; when all the inputs are high. When any one of the inputs is logic &#8216;0&#8217; or all the inputs are logic &#8216;0&#8217; then output is logic &#8216;1&#8217;. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-Truth-Table.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-Truth-Table.png" alt="" class="wp-image-1725" width="395" height="306" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-Truth-Table.png 554w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NAND-gate-Truth-Table-300x232.png 300w" sizes="(max-width: 395px) 100vw, 395px" /></a><figcaption><strong>Truth Table of AND gate followed by NOT gate</strong></figcaption></figure></div>



<h3 class="wp-block-heading"><strong>NOR Gate</strong></h3>



<p>The symbol of the 2-input NOR gate is shown below. It is similar to the OR gate, but there is a bubble on the output side. The NOR gate is the combination of the OR gate followed by the NOT gate. That means the output of the NOR gate is equivalent to the output of the OR gate followed by the NOT gate. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOR-gate-1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOR-gate-1.png" alt="" class="wp-image-1733" width="450" height="389" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOR-gate-1.png 582w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/NOR-gate-1-300x259.png 300w" sizes="(max-width: 450px) 100vw, 450px" /></a><figcaption><strong>Logic Symbol and Equivalent Logic circuit of NOR gate</strong></figcaption></figure></div>



<p>Here is the truth table of OR gate followed by NOT gate. A and B are the inputs. Z is the output of the OR gate. Y is the output of the NOT gate. Z&#8217; (Z- bar) is the same as the output of the 2-input NOR gate. The output of the NOR gate is logic &#8216;1&#8217; when all the inputs are low. When any one of the inputs is logic &#8216;1&#8217; or all the inputs are logic &#8216;1&#8217; then output is logic &#8216;0&#8217;.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/Truth-table-NOR-gate.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/Truth-table-NOR-gate.png" alt="" class="wp-image-1735" width="413" height="325" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/10/Truth-table-NOR-gate.png 550w, https://www.allaboutelectronics.org/wp-content/uploads/2021/10/Truth-table-NOR-gate-300x236.png 300w" sizes="(max-width: 413px) 100vw, 413px" /></a></figure></div>



<p>For more information about the different logic gates, check this video.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="What is Logic Gate ? Logic Gates Explained" width="825" height="464" src="https://www.youtube.com/embed/0lwhoQ5aQe8?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<h3 class="wp-block-heading"><strong>XOR gate</strong></h3>



<p>The logical symbol and the truth table of the 2 input XOR gate are shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-medium"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/XOR.png"><img loading="lazy" decoding="async" width="300" height="83" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/XOR-300x83.png" alt="" class="wp-image-1745" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/XOR-300x83.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/XOR.png 558w" sizes="(max-width: 300px) 100vw, 300px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.06.00-PM.png"><img decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.06.00-PM.png" alt="" class="wp-image-1746" width="-506" height="-512" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.06.00-PM.png 888w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.06.00-PM-296x300.png 296w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.06.00-PM-768x778.png 768w" sizes="(max-width: 888px) 100vw, 888px" /></a></figure></div>



<p class="has-text-align-center"><strong>The Logic Symbol and Truth Table of 2 input XOR gate</strong></p>



<p>As It can be seen from the truth table, the output of the 2-input XOR gate is logic &#8216;1&#8217; when both inputs are different. </p>



<h3 class="wp-block-heading"><strong>XNOR gate :</strong></h3>



<p>The Symbol of the 2-input XNOR gate is shown below. It is similar to the XOR gate, but there is a bubble at the output side. The XNOR gate is the combination of the XOR gate, followed by the NOT gate.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM.png"><img decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM-1024x596.png" alt="" class="wp-image-1747" width="-483" height="-280" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM-1024x596.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM-300x175.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM-768x447.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.22.03-PM.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p class="has-text-align-center"><strong>The logic Symbol and the Equivalent logic circuit of the XNOR gate</strong></p>



<p class="has-text-align-justify">The truth table of the two-input XNOR gate is shown below. As you can see, the output of the two input XNOR gate is logic &#8216;1&#8217; when both inputs are the same. when both inputs are different, the output is logic &#8216;0&#8217;.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM.png"><img decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM-949x1024.png" alt="" class="wp-image-1748" width="-746" height="-805" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM-949x1024.png 949w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM-278x300.png 278w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM-768x829.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2022/01/Screenshot-2022-01-03-at-11.27.01-PM.png 990w" sizes="(max-width: 949px) 100vw, 949px" /></a></figure></div>



<p class="has-text-align-center"><strong>The Truth Table of the 2-input XNOR gate</strong></p>



<p>These logic gates (XOR and XNOR) gates are very useful in designing the arithmetic and code converter circuits. </p>



<p>Typically, more than 2-input XOR and XNOR gates are not readily available and they are designed using the 2-input gates. </p>



<p>For more information about XOR and XNOR gate, check this video.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Logic Gates : XOR and XNOR gates Explained | XOR and XNOR gate as Inverter" width="825" height="464" src="https://www.youtube.com/embed/Uf0KKh2zRuA?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Flogic-gates-explained%2F&amp;linkname=Logic%20Gates%20Explained" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Flogic-gates-explained%2F&amp;linkname=Logic%20Gates%20Explained" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Flogic-gates-explained%2F&amp;linkname=Logic%20Gates%20Explained" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2Flogic-gates-explained%2F&amp;linkname=Logic%20Gates%20Explained" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2Flogic-gates-explained%2F&#038;title=Logic%20Gates%20Explained" data-a2a-url="https://www.allaboutelectronics.org/logic-gates-explained/" data-a2a-title="Logic Gates Explained"></a></p><p>The post <a href="https://www.allaboutelectronics.org/logic-gates-explained/">Logic Gates Explained</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/logic-gates-explained/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1704</post-id>	</item>
		<item>
		<title>1s Complement and 2s Complement of Binary Numbers &#124; Signed Binary Number Representation</title>
		<link>https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/</link>
					<comments>https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 15:01:51 +0000</pubDate>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[number system]]></category>
		<guid isPermaLink="false">https://www.allaboutelectronics.org/?p=1559</guid>

					<description><![CDATA[<p>1s complement and 2s complement are way of representing the signed binary numbers. In general, the binary number can be represented in two ways. Unsigned Binary Numbers Signed Binary Numbers Unsigned Binary Numbers Using unsigned binary number representation, only positive binary numbers can be represented. For n-bit unsigned binary numbers, all n-bits are used to ... <a title="1s Complement and 2s Complement of Binary Numbers &#124; Signed Binary Number Representation" class="read-more" href="https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/">Read more<span class="screen-reader-text">1s Complement and 2s Complement of Binary Numbers &#124; Signed Binary Number Representation</span></a></p>
<p>The post <a href="https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/">1s Complement and 2s Complement of Binary Numbers | Signed Binary Number Representation</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>1s complement and 2s complement are way of representing the signed binary numbers.</p>



<p>In general, the binary number can be represented in two ways.</p>



<ol class="wp-block-list"><li>Unsigned Binary Numbers</li><li>Signed Binary Numbers</li></ol>



<h3 class="has-text-color wp-block-heading" style="color:#c90d74"><strong>Unsigned Binary Numbers</strong></h3>



<p>Using unsigned binary number representation, only positive binary numbers can be represented. For n-bit unsigned binary numbers, all n-bits are used to represent the magnitude of the number. </p>



<p>For example, if we represent decimal 12 in 5- bit unsigned number form then (12)<sub>10</sub> = (01100)<sub>2</sub>. Here all 5 bit are used to represent the magnitude of the number.</p>



<p>In unsigned binary number representation, using n-bits, we can represent the numbers from 0 to 2<sup>n</sup> &#8211; 1. For example, using 4 -bits we can represent the number from 0 to 15 in unsigned binary number representation. </p>



<h3 class="has-text-color wp-block-heading" style="color:#c90d74"><strong>Signed Binary Numbers</strong></h3>



<p>Using signed binary number representation both positive and negative numbers can be represented.</p>



<p>In signed binary number representation the most significant bit (MSB) of the number is a sign bit. For positive numbers, the sign bit is 0 and for negative number, the sign bit is 1. </p>



<p>There are three different ways the signed binary numbers can be represented. </p>



<ol class="wp-block-list"><li>Signed Magnitude Form</li><li>1&#8217;s Complement Form</li><li>2&#8217;s Complement Form</li></ol>



<h3 class="has-text-color wp-block-heading" style="color:#1500a3"><strong>Sign Magnitude Representation</strong></h3>



<p>In sign-magnitude representation, the Most Significant bit of the number is a sign bit and the remaining bit represents the magnitude of the number in a true binary form. For example, if some signed number is represented in the 8-bit sign-magnitude form then MSB is a sign bit and the remaining 7 bits represent the magnitude of the number in a true binary form.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_1.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_1.png" alt="" class="wp-image-1568" width="237" height="110" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_1.png 567w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_1-300x139.png 300w" sizes="(max-width: 237px) 100vw, 237px" /></a></figure></div>



<p>Here is the representation of + 34 and -34 in a 8-bit sign-magnitude form. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_2.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_2.png" alt="" class="wp-image-1570" width="370" height="141" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_2.png 786w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_2-300x115.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_2-768x293.png 768w" sizes="(max-width: 370px) 100vw, 370px" /></a></figure></div>



<p>Since the magnitude of both numbers is the same, the first 7 bits in the representation are the same for both numbers. For +34, the MSB is 0, and for -34, the MSB or sign bit is 1. </p>



<p>In sign magnitude representations, there are two different representations for 0. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3-1024x347.png" alt="" class="wp-image-1575" width="331" height="111" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3-1024x347.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3-300x102.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3-768x260.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/SMR_3.png 1090w" sizes="(max-width: 331px) 100vw, 331px" /></a></figure></div>



<p>Using n-bits, the range of numbers that can be represented in Sign Magnitude Representation is from <strong>&#8211; (2<sup>n-1</sup> &#8211; 1) to (2<sup>n -1</sup> &#8211; 1)</strong>.</p>



<h3 class="has-text-color wp-block-heading" style="color:#1500a3"><strong>1&#8217;s Complement Representation</strong></h3>



<p>In 1&#8217;s complement representation, the representation of the positive number is same as the negative number. But the representation of the negative number is different. </p>



<p>For example, if we want to represent -34 in 8-bit 1&#8217;s complement form, then first write the positive number (+34). And invert all 1s in that number by 0s and 0s by 1s in that number. The corresponding inverted number represents the -34 in 1&#8217;s complement form. It is also called 1s complement of the number +34. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement-1024x376.png" alt="" class="wp-image-1572" width="477" height="174" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement-1024x376.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement-300x110.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement-768x282.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement.png 1270w" sizes="(max-width: 477px) 100vw, 477px" /></a></figure></div>



<p>Here is another example which shows how to represent -60 in 8-bit 1&#8217;s complement form.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2-1024x346.png" alt="" class="wp-image-1573" width="483" height="163" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2-1024x346.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2-300x101.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2-768x260.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_2.png 1281w" sizes="(max-width: 483px) 100vw, 483px" /></a></figure></div>



<p>Using n-bits, the range of numbers that can be represented in 1&#8217;s complement form is from <strong> &#8211; (2<sup>n-1</sup> &#8211; 1) to (2<sup>n -1</sup> &#8211; 1)</strong>. For example, using 4-bits, it is possible to represent integers numbers from -7 to +7 in a 1&#8217;s complement form representation. </p>



<p>Similar to sign-magnitude form, there are two different representations of 0 in 1&#8217;s complement form representation. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3-1024x347.png" alt="" class="wp-image-1576" width="334" height="112" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3-1024x347.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3-300x102.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3-768x260.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/1s-complement_3.png 1090w" sizes="(max-width: 334px) 100vw, 334px" /></a></figure></div>



<h3 class="has-text-color wp-block-heading" style="color:#1500a3"><strong>2&#8217;s Complement Representation</strong></h3>



<p>In 2&#8217;s complement representation also, the representation of the positive number is same as1&#8217;s complement and sign-magnitude form. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement-1024x269.png" alt="" class="wp-image-1578" width="594" height="155" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement-1024x269.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement-300x79.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement-768x202.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement-1536x404.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement.png 1941w" sizes="(max-width: 594px) 100vw, 594px" /></a></figure></div>



<p>But the representation of the negative number is different. For example, if we want to represent -34 in 2&#8217;s complement form then </p>



<ol class="wp-block-list"><li>Write the number corresponding to +34. </li><li>Starting from Least Significant Bit (LSB), just copy all the bits until the first 1 is encountered in the number.</li><li>After the first &#8216;1&#8217; is encountered, invert all the 1s in the number with 0s and 0s in the number with 1s (including the sign bit)</li><li>The resultant number is 2&#8217;s complement representation of the number -34.</li></ol>



<p>The same is shown below. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2-1024x623.png" alt="" class="wp-image-1579" width="549" height="333" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2-1024x623.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2-300x183.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2-768x467.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2-1536x934.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_2.png 1841w" sizes="(max-width: 549px) 100vw, 549px" /></a></figure></div>



<p>The second way of representing -34 in 2&#8217;s complement form is</p>



<ol class="wp-block-list"><li>Write the number corresponding to +34. </li><li>Find 1&#8217;s complement of +34</li><li>Add &#8216;1&#8217; to the 1&#8217;s complement number</li><li>The resultant is 2&#8217;s complement representation of -34</li></ol>



<p>The same is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3-1024x539.png" alt="" class="wp-image-1580" width="558" height="293" srcset="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3-1024x539.png 1024w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3-300x158.png 300w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3-768x404.png 768w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3-1536x808.png 1536w, https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_3.png 1844w" sizes="(max-width: 558px) 100vw, 558px" /></a></figure></div>



<p>For n-bit number N, its 2&#8217;s complement is (2<sup>n</sup> &#8211; N). For example, the 2&#8217;s complement of +34 in 8-bit form is (2<sup>8 </sup> &#8211; 34). In binary, it is 100000000 &#8211; 00100010 = 11011110. That is a third way of finding the 2&#8217;s complement. </p>



<p>Here is the representation of -60 in sign-magnitude form, 1&#8217;s complement, and 2&#8217;s complement form.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_4.png"><img loading="lazy" decoding="async" src="https://www.allaboutelectronics.org/wp-content/uploads/2021/04/2s-complement_4-1024x269.png" alt="" class="wp-image-1582" width="562" height="146"/></a></figure></div>



<p>Using n-bits, the range of number which can be represented in 2&#8217;s complement form is from &#8211; (2<sup>n-1</sup> ) to 2<sup>n-1</sup> &#8211; 1. For example, using 4-bits, it is possible to represent numbers from -8 to +7. Unlike 1&#8217;s complement and sign magnitude form, there is a unique way of representing 0 in this 2&#8217;s complement form.</p>



<p>For information about signed binary number representation, check this video:</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="1&#039;s complement and 2&#039;s complement | Signed Binary Numbers Explained" width="825" height="464" src="https://www.youtube.com/embed/MuUnffIpX7Y?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2F1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation%2F&amp;linkname=1s%20Complement%20and%202s%20Complement%20of%20Binary%20Numbers%20%7C%20Signed%20Binary%20Number%20Representation" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2F1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation%2F&amp;linkname=1s%20Complement%20and%202s%20Complement%20of%20Binary%20Numbers%20%7C%20Signed%20Binary%20Number%20Representation" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2F1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation%2F&amp;linkname=1s%20Complement%20and%202s%20Complement%20of%20Binary%20Numbers%20%7C%20Signed%20Binary%20Number%20Representation" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.allaboutelectronics.org%2F1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation%2F&amp;linkname=1s%20Complement%20and%202s%20Complement%20of%20Binary%20Numbers%20%7C%20Signed%20Binary%20Number%20Representation" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.allaboutelectronics.org%2F1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation%2F&#038;title=1s%20Complement%20and%202s%20Complement%20of%20Binary%20Numbers%20%7C%20Signed%20Binary%20Number%20Representation" data-a2a-url="https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/" data-a2a-title="1s Complement and 2s Complement of Binary Numbers | Signed Binary Number Representation"></a></p><p>The post <a href="https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/">1s Complement and 2s Complement of Binary Numbers | Signed Binary Number Representation</a> appeared first on <a href="https://www.allaboutelectronics.org">ALL ABOUT ELECTRONICS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1559</post-id>	</item>
	</channel>
</rss>
