[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655475-105":59,"doc-detail-655475-en":134,"doc-similar-655475":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","introduction-to-logic-gates-basic-gates-negative-gates-exclusive-gates","Introduction to Logic Gates - Basic Gates - Negative Gates - Exclusive Gates","","Introduction to Logic Gates explains how logic gates build logical circuits using input values represented as 1/0 or true/false, producing a single output in the same format. The guide categorizes gates into basic gates (AND, OR), negative gates (NOT, NAND, NOR, plus XNOR context), and exclusive gates (XOR, XNOR). For each gate, it provides truth-table behavior, textual boolean forms, and notes on typical uses such as combining multiple conditions, meeting at least one requirement, reversing outputs, and expressing “only one” versus “matching” input cases. It also describes De Morgan’s Law connecting negated AND/OR combinations.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/introduction-to-logic-gates-basic-gates-negative-gates-exclusive-gates/655475/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/introduction-to-logic-gates-basic-gates-negative-gates-exclusive-gates/655475.png","ImageObject",300,407,{"name":92,"@type":93},"Nguyễn Văn Học","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"What are logic gates used for in logical circuits?","Question",{"text":112,"@type":113},"Logic gates are used to design logical circuits where inputs are combined to produce a single output, enabling computations for building larger systems like calculators and computer memory.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do AND and OR gates differ in their output behavior?",{"text":117,"@type":113},"An AND gate returns true only when both inputs are true, while an OR gate returns true when at least one input is true.",{"name":119,"@type":110,"acceptedAnswer":120},"What does De Morgan’s Law relate in this guide’s NAND and NOR discussions?",{"text":121,"@type":113},"De Morgan’s Law shows equivalences between negated AND/OR expressions, such as NAND corresponding to (NOT A) OR (NOT B) and NOR corresponding to (NOT A) AND (NOT B).",{"name":123,"@type":110,"acceptedAnswer":124},"When should you use XOR versus XNOR in logic design?",{"text":125,"@type":113},"Use XOR when you need the output true for exactly one input being true, and use XNOR when the output should be true only when both inputs match (both true or both false).","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},655475,1792961945,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":52,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":19,"language":143,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":144,"faqs":145,"seo_title":146,"seo_description":67,"update_tm":133,"read_time":52,"preview_page_count":19,"preview_urls":147},1374402739827,"https://ap-avatar.wpscdn.com/avatar/14000c97e7351f1a627?x-image-process=image/resize,m_fixed,w_180,h_180&k=1787885694763230660","Introduction to Logic Gates  \nIntroduction  \nLogic gates are used when designing logical circuits for machines. Logic gates usually take in two inputs, which can be represented with 1 and 0, true and false, or on and off. While two inputs are traditional, some diagrams will draw gates with multiple inputs to save space. In reality this would be done with multiple copies of the gate. Logic gates always have a single output give in the same format as their inputs. Logic gates can be broken down into three categories: basic gates, negative gates, and exclusive gates.  \nLogic gates are used to perform various calculations and run through computations. They may seem simple but when used together they can create things like calculators and computer memory. Each logic gate has a visual representation, and using these representations, larger scale diagrams can be made.  \nThe most common application of logic gates is probably in Minecraft, which is the main reason the game is encouraged to begin an interest in computer programming. Minecraft uses things called Redstone to make wires, and the gates do not exist themselves, but are actually made from just wires and an on switch.  \nBasic Gates  \nThere are two main basic gates, the AND gate and the OR gate. These two gates, along with NOT gates which will be explained later, can make any other gate explained in this guide.  \nAND Gate  \nThe AND gate takes two inputs and returns true when both inputs are true. The primary use of this gate is to make sure multiple conditions are met. In essence, if this gate were a door, it would not open unless you have all required keys.  \nAND can be represented textually with the symbol ˄ The AND gate’s diagram and output is shown below:  \n| A | B | Q |\n| --- | --- | --- |\n| 0 | 0 | 0 |\n| 0 | 1 | 0 |\n| 1 | 0 | 0 |\n| 1 | 1 | 1 |\n\nOR Gate  \nThe OR gate takes two inputs and returns true when an input is true. The primary use of this gate is to make sure you meet at least one requirement. In essence, if this gate were a door, any of its keys would open it.  \nOR can be represented textually with the symbol ˅ The OR gate’s diagram and output is shown below:  \n| A | B | Q |\n| --- | --- | --- |\n| 0 | 0 | 0 |\n| 0 | 1 | 1 |\n| 1 | 0 | 1 |\n| 1 | 1 | 1 |\n\nNegative Gates  \nAll negative gates follow the basic idea of a not gate, which is “reverse the output.” There are four gates that fall under the category of negative gates, the NOT, NAND, NOR, and NXOR. We will discuss XNOR with exclusive gates, since we’ve yet to discuss XOR. When drawing diagrams for negative gates, a circle is used to indicate the negation.  \nNOT Gate  \nThe NOT gate is the only gate to not follow the two input one output rule. This gate takes one input and then reverses it.  \nNOT can be represented textually in a multitude of ways, ~A, A’ and ̅􀜣 are all valid, The NOT gate’s diagram and output is shown below:  \n| A | OUT |\n| --- | --- |\n| 0 | 1 |\n| 1 | 0 |\n\nNAND Gate  \nThe NAND gate is the inverse of the AND gate. It is simply comprised of an AND gate with a NOT gate atthe end, however it is easier and faster to represent it as its own entity. This gate works very similarly to the AND gate, however it is used to make sure that at least one of multiple conditions is not met.  \nNAND would be represented textually as ~(A ˄ B) The NAND gate’s diagram and output is shown below:  \n| A | B | Q |\n| --- | --- | --- |\n| 0 | 0 | 1 |\n| 0 | 1 | 1 |\n| 1 | 0 | 1 |\n| 1 | 1 | 0 |\n\nNOR Gate  \nThe NOR gate is the inverse of the OR gate. As one would predict, it is made by placing a NOT gate at the end of an OR gate. This gate works similarly to the OR gate, however this gate makes sure absolutely none of the conditions are met.  \nNOR would be represented textually as ~(A ˅ B) The NOR gate’s diagram and output is shown below:  \n| A | B | Q |\n| --- | --- | --- |\n| 0 | 0 | 1 |\n| 0 | 1 | 0 |\n| 1 | 0 | 0 |\n| 1 | 1 | 0 |\n\nDe Morgan’s Law:  \nWhile not a gate, there is an interesting rule observed by De Morgan when utilizing","cbCaiiI9rrd1y2ss","https://ap.wps.com/l/cbCaiiI9rrd1y2ss","pdf",352547,"English","# Introduction to Logic Gates\n## Introduction\n## Basic Gates\n### AND Gate\n### OR Gate\n## Negative Gates\n### NOT Gate\n### NAND Gate\n### NOR Gate\n### De Morgan’s Law\n## Exclusive Gates\n### XOR Gate\n### XNOR Gate","[{\"question\":\"What are logic gates used for in logical circuits?\",\"answer\":\"Logic gates are used to design logical circuits where inputs are combined to produce a single output, enabling computations for building larger systems like calculators and computer memory.\"},{\"question\":\"How do AND and OR gates differ in their output behavior?\",\"answer\":\"An AND gate returns true only when both inputs are true, while an OR gate returns true when at least one input is true.\"},{\"question\":\"What does De Morgan’s Law relate in this guide’s NAND and NOR discussions?\",\"answer\":\"De Morgan’s Law shows equivalences between negated AND/OR expressions, such as NAND corresponding to (NOT A) OR (NOT B) and NOR corresponding to (NOT A) AND (NOT B).\"},{\"question\":\"When should you use XOR versus XNOR in logic design?\",\"answer\":\"Use XOR when you need the output true for exactly one input being true, and use XNOR when the output should be true only when both inputs match (both true or both false).\"}]","Introduction to Logic Gates - Basic Gates - Negative Gates - Exclusive Gates | PDF",[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1875a67b1b081fc019d2ea7e739100b8.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3a010b068caaa610a0f892833847bcfa.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7a0706d1052408f9115861dc954dcd7b.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2259380d22f4d171ba2053e4b6782c01.webp",980,1268,{"list":165,"token":66},[166,173,179,185,191,198,204,210,217,224],{"doc_id":167,"doc_title":168,"file_type":141,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":30,"create_tm":172},657681,"Lecture 3 - Logic Gates (II)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975144440/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ysO%2BGV7o323GO0leQg5lkGFM0sM%3D","lecture-3-logic-gates-ii",12,1792986267,{"doc_id":174,"doc_title":175,"file_type":141,"home_preview_img_url":176,"slug":177,"view_count":39,"category_name":30,"create_tm":178},657684,"Basic Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975660853/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=nXOShaUh6wH5H3ybKcPoPnLJ43U%3D","basic-logic-gates",1792986269,{"doc_id":180,"doc_title":181,"file_type":141,"home_preview_img_url":182,"slug":183,"view_count":39,"category_name":30,"create_tm":184},655465,"Digital Logic Gates 1.0 - Features and Component Parameters - Functional Descriptions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773809/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=IKoS0PTOSz2vZpGdcITWyRzA78U%3D","digital-logic-gates-10-features-and-component-parameters-functional-descriptions",1792961912,{"doc_id":186,"doc_title":187,"file_type":141,"home_preview_img_url":188,"slug":189,"view_count":44,"category_name":30,"create_tm":190},655473,"Gates and Logic - From Transistors to Logic Gates and Logic Circuits","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082828/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=%2FnTkLXEKop%2Fk6DAUELHKViy8Uzc%3D","gates-and-logic-from-transistors-to-logic-gates-and-logic-circuits",1792961927,{"doc_id":192,"doc_title":193,"file_type":141,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":30,"create_tm":197},655471,"Logic Gates and Typical Functional Blocks - Lectures Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773833/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=Uzf7q5W4R18yNelXTqZ0utgYGUQ%3D","logic-gates-and-typical-functional-blocks-lecture-notes",15,1792961922,{"doc_id":199,"doc_title":200,"file_type":141,"home_preview_img_url":201,"slug":202,"view_count":39,"category_name":30,"create_tm":203},655478,"Basic Logic Gates in Digital Electronics - What are Basic Logic Gates, Basic and Derived Logic Gates, Derived Logic Gates, and Differences","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082926/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=gytzySwR4v3q1vKA4u6LAtGiF%2FM%3D","basic-logic-gates-in-digital-electronics-what-are-basic-logic-gates-basic-and-derived-logic-gates-derived-logic-gates-and-differences",1792961954,{"doc_id":205,"doc_title":206,"file_type":141,"home_preview_img_url":207,"slug":208,"view_count":34,"category_name":30,"create_tm":209},682430,"Basics of Digital Systems - Boolean Algebra & Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998912456/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=bv8x2TmI0oRpQiZcy3540uILm3U%3D","basics-of-digital-systems-boolean-algebra-logic-gates",1793970602,{"doc_id":211,"doc_title":212,"file_type":141,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":30,"create_tm":216},655483,"Logic Gates - Principles and Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082996/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=FJPIZ4NXXwdEiZGFHlXjBwfwz0U%3D","logic-gates-principles-and-operations",11,1792961968,{"doc_id":218,"doc_title":219,"file_type":141,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":30,"create_tm":223},655545,"Chapter 9 - Discrete Control Using Programmable Logic Controllers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284838/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ITGXHsTgJ%2BC4YjqKRGzE3lr8sC4%3D","chapter-9-discrete-control-using-programmable-logic-controllers",13,1792962539,{"doc_id":225,"doc_title":226,"file_type":141,"home_preview_img_url":227,"slug":228,"view_count":52,"category_name":30,"create_tm":229},655464,"Logic Gates - AND, OR, NOT and Additional Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082792/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ANcBxiFzlgBO2hsvTPESRXsfhRs%3D","logic-gates-and-or-not-and-additional-logic-gates",1792961910]