{"id":99,"date":"2014-05-14T19:49:03","date_gmt":"2014-05-14T19:49:03","guid":{"rendered":"http:\/\/daqdesign.wordpress.com\/?p=99"},"modified":"2024-10-23T19:25:36","modified_gmt":"2024-10-23T19:25:36","slug":"the-nand-gate","status":"publish","type":"post","link":"https:\/\/daq-design.co.uk\/blog\/?p=99","title":{"rendered":"The NAND gate"},"content":{"rendered":"<p>Digital logic ICs come in all types but to my mind the NAND gate is the most flexible device to have in your component box. NAND is a NOT AND gate and can be considered complementary to an AND gate meaning that the truth table is an AND gate in reverse. Why is that? Let&#8217;s take a look at the truth table for a common two input NAND gate<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-416\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/nand.png\" alt=\"\" width=\"196\" height=\"170\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The NAND gate has beautiful flexibility because it can be configured to work as an inverter, AND gate, OR gate quite easily. For example want an AND gate? Then all you need to do is wire the output pin (Z) to both inputs of another NAND gate as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-414\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/andgate2-300x61.png\" alt=\"\" width=\"339\" height=\"69\" srcset=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/andgate2-300x61.png 300w, https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/andgate2.png 344w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This reverses the truth table above and you have an an AND gate.<\/p>\n<p>Want an inverter? then just connect both inputs A and B together and the output will be the inverse of the input signal as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-413\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/inverter2.png\" alt=\"\" width=\"224\" height=\"81\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This is really beautiful isn&#8217;t it? An OR gate is slightly more complicated and will require 3 NAND gates to accomplish our task.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-415\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/orgate2-300x126.png\" alt=\"\" width=\"359\" height=\"151\" srcset=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/orgate2-300x126.png 300w, https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/orgate2.png 357w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now isn&#8217;t that just beautiful pure logic? \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Digital logic ICs come in all types but to my mind the NAND gate is the most flexible device to have in your component box. NAND is a NOT AND gate and can be considered complementary to an AND gate &hellip; <a href=\"https:\/\/daq-design.co.uk\/blog\/?p=99\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17,27],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-ics","tag-nand-gate","tag-truth-table"],"_links":{"self":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":1,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}