{"id":134,"date":"2014-05-24T18:04:50","date_gmt":"2014-05-24T18:04:50","guid":{"rendered":"http:\/\/daqdesign.wordpress.com\/?p=134"},"modified":"2024-10-23T13:14:24","modified_gmt":"2024-10-23T13:14:24","slug":"diode-logic","status":"publish","type":"post","link":"https:\/\/daq-design.co.uk\/blog\/?p=134","title":{"rendered":"Diode Logic"},"content":{"rendered":"<p>It&#8217;s a fairly trivial task to use small signal diodes to form digital logic gates. Diodes are cheap and it can be very cost effective to use them in place of dual-in-line integrated circuits.<\/p>\n<p><strong>or-gate.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-407\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-or-gate-287x300.png\" alt=\"\" width=\"343\" height=\"359\" srcset=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-or-gate-287x300.png 287w, https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-or-gate.png 338w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The output of the gate is connected via a tie-down resistor R1 to ground. This ensures that when no input signal is applied to input A or input B the output of the gate X remains low.<\/p>\n<p>When either of the inputs become high the diode will conduct and a current will flow through the resistor to ground. There will be a voltage drop across the diode of approx 0.7V when it&#8217;s conducting so the voltage at point X will be Vin-0.7 so for a 5V input the output will be at 4.3volts which is sufficient to be defined as as a &#8216;high&#8217; in logic terms.<\/p>\n<p>The &#8216;gate&#8217; in extensible so all you need to do is to add additional diodes to create more inputs.<\/p>\n<p><strong>and-gate.<\/strong><\/p>\n<p>The and gate is a simple modification of the or-gate logic. by connecting the resistor to a positive supply voltage and reverse biasing the diodes the circuit will now work as and and-gate<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-406\" src=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-and-gate-300x188.png\" alt=\"\" width=\"365\" height=\"229\" srcset=\"https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-and-gate-300x188.png 300w, https:\/\/daq-design.co.uk\/blog\/wp-content\/uploads\/2024\/10\/diode-and-gate.png 400w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/p>\n<p>When both inputs are low points A and B are virtual grounds and the supply voltage is dropped across the resistor so point X is at zero.<\/p>\n<p>Consider when A is high and B is low. D1 is now reversed biased no no current will flow through it, but it will flow through D2 and point X is at zero. The same argument holds when B is now high and A is low.<\/p>\n<p>Now when A and B are both high both diodes are reversed biased and no current will flow through the circuit so the supply voltage will appear at output point X and the output of the circuit is high.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s a fairly trivial task to use small signal diodes to form digital logic gates. Diodes are cheap and it can be very cost effective to use them in place of dual-in-line integrated circuits. or-gate. &nbsp; &nbsp; The output of &hellip; <a href=\"https:\/\/daq-design.co.uk\/blog\/?p=134\">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":[12,14,25],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-ics","tag-digital-logic-gates","tag-integrated-circuits","tag-signal-diodes"],"_links":{"self":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/134","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=134"}],"version-history":[{"count":1,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daq-design.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}