[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655474-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655474-en":131,"doc-similar-655474":164},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","lecture-two-logic-gates-and-gate-or-gate-not-gate-universal-logic-gates","Lecture Two - Logic gates - AND gate - OR gate - NOT gate - Universal Logic Gates","","Lecture Two explains logic gates as the fundamental building blocks of digital systems, operating on binary values where HIGH represents 1 and LOW represents 0. It introduces three basic gates—AND, OR, and NOT—by describing their electronic behavior, standard symbols, and corresponding truth tables. Boolean algebra is used to express gate operations, including dot notation for AND and plus notation for OR. The lecture also presents universal logic gates, focusing on NAND and NOR as complements of AND and OR, respectively, and includes example exercises for Boolean expressions and truth tables.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/lecture-two-logic-gates-and-gate-or-gate-not-gate-universal-logic-gates/655474/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/lecture-two-logic-gates-and-gate-or-gate-not-gate-universal-logic-gates/655474.png","ImageObject",300,407,{"name":42,"@type":43},"Rizky","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How are HIGH and LOW voltages mapped to binary values in the lecture?","Question",{"text":63,"@type":64},"HIGH voltage corresponds to binary 1, and LOW voltage corresponds to binary 0.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"When does the AND gate output 1?",{"text":68,"@type":64},"The AND gate outputs 1 only when both input A and input B are 1; otherwise the output is 0.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the key behavior difference between the OR gate and the AND gate?",{"text":72,"@type":64},"The OR gate outputs 1 when either A or B is closed (including when both are closed), while the AND gate outputs 1 only when both inputs are 1.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655474,1793051827,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":33,"preview_urls":147},962085564807,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Lecture Two  \nLogic gates  \nThe logic gate is the basic building block in digital systems. Logic gates operate with binary numbers. Gates are therefore referred to as binary logic gates. All voltages used with logic gates will be either HIGH or LOW. In this lecture, a HIGH voltage will mean a binary 1, and a LOW voltage will mean a binary 0. Remember that logic gates are electronic circuits.  \nAll digital systems are constructed by using only three basic logic gates.  \nThese basic gates are:  \n1- AND gate,  \n2- OR gate,  \n3- NOT gate.  \n1- THE AND GATE  \nThe AND gate is called the “all or nothing” gate. The schematic in Fig. l shows the idea of the AND gate. The lamp (Y) will light only when both input switches (A and B) are closed.  \n\n| \u003Cbr>Input Switches |  | Output Light |\n| --- | --- | --- |\n| B | A | Y |\n| open | open | no |\n| open | close | no |\n| close | open | no |\n| close | close | yes |\n\nFigure 1.  \nThe standard logic symbol for the AND gate is drawn in Fig. 2. This symbol shows the inputs as A and B. The output is shown as Y. This is the symbol for a 2-input AND gate. The truth table for the 2-input AND gate is shown in Fig. 2. Note that only when both input A and input B are 1 will the output be 1.  \nA truth table defines the logical outputs (0 or 1) of a logic gate for all possible combinations of logical inputs  \n\n| Input |  | Output |\n| --- | --- | --- |\n| B | A | Y |\n| 0 | 0 | 0 |\n| 0 | 1 | 0 |\n| 1 | 0 | 0 |\n| 1 | 1 | 1 |\n\n(a) truth table (b) AND-gate symbol  \nFigure 2  \nBoolean algebra is a form of symbolic logic that shows how logic gates operate. A Boolean expression is a “shorthand” method of showing what is happening in a logic circuit.  \nA . B = Y  \nThe Boolean expression is read as A AND (. means AND) B equals the output Y. The dot ( . ) means the logic function AND in Boolean algebra, not multiply as in regular algebra, Sometimes the dot ( . ) is left out of the Boolean expression. The Boolean expression for the 2-input AND gate is then:  \nAB = Y  \nThe Boolean expression reads A AND B equals the output Y.  \nExample:  \n1- Write the Boolean expression for a 3-input AND gate  \nSolution:  \nA . B . C = Y or AB C = Y  \n2- Draw the logic symbol for a 3-input AND gate.  \nSolution:  \n3- Draw a truth table for a 3-input AND gate.  \nSolution:  \n\n| Input |  |  | Output |\n| --- | --- | --- | --- |\n| C | B | A | y |\n| 0 | 0 | 0 | 0 |\n| 0 | 0 | 1 | 0 |\n| 0 | 1 | 0 | 0 |\n| 0 | 1 | 1 | 0 |\n| 1 | 0 | 0 | 0 |\n| 1 | 0 | 1 | 0 |\n| 1 | 1 | 0 | 0 |\n| 1 | 1 | 1 | 1 |\n\n2- THE OR GATE  \nThe OR gate is called the “any or all” gate. The schematic in Fig. 3 shows the idea of the OR gate. The lamp (Y) will glow when either switch A or switch B is closed. The lamp will also glow when both switches A and B are closed. The lamp (Y) will not glow when both switches (A and B) are open.  \n\n| Input Switches |  | Output Light |\n| --- | --- | --- |\n| B | A | Y |\n| open | open | no |\n| open | close | yes |\n| close | open | yes |\n| close | close | yes |\n\nFigure 3  \nThe standard logic symbol for an OR gate is drawn in Fig. 4. Note the different shape of the OR gate. The OR gate has two inputs labeled A and B. The output is labeled Y. The shorthand Boolean expression for this OR function is given as A + B = Y. Note that the plus (+) symbol means OR in Boolean algebra. The expression (A + B = Y) is read asA OR (+ means OR) B equals output Y.  \n\n| Input |  | Output |\n| --- | --- | --- |\n| B | A | Y |\n| 0 | 0 | 0 |\n| 0 | 1 | 1 |\n| 1 | 0 | 1 |\n| 1 | 1 | 1 |\n\n(a) truth table (b) OR-gate symbol  \nFigure 4  \nExample:  \n1- Write the Boolean expression for a 3-input OR gate.  \nSolution:  \nA + B + C = Y  \n2- Draw the logic symbol for a 3-input OR gate.  \nSolution  \n3- Draw a truth table for a 3-input OR gate.  \nSolution  \n\n| Input |  |  | Output |\n| --- | --- | --- | --- |\n| C | B | A | y |\n| 0 | 0 | 0 | 0 |\n| 0 | 0 | 1 | 1 |\n| 0 | 1 | 0 | 1 |\n| 0 | 1 | 1 | 1 |\n| 1 | 0 | 0 | 1 |\n| 1 | 0 | 1 | 1 |\n| 1 | 1 | 0 | 1 |\n| 1 | 1 | 1 | 1 |\n\n3- THE NOT GATE  \nA NO","cbCaisfvnlmnynLd","https://ap.wps.com/l/cbCaisfvnlmnynLd","pdf",579949,14,"English","# Logic gates\n## AND gate\n## OR gate\n## NOT gate\n## Universal Logic Gates\n## NAND gate\n## NOR gate","[{\"question\":\"How are HIGH and LOW voltages mapped to binary values in the lecture?\",\"answer\":\"HIGH voltage corresponds to binary 1, and LOW voltage corresponds to binary 0.\"},{\"question\":\"When does the AND gate output 1?\",\"answer\":\"The AND gate outputs 1 only when both input A and input B are 1; otherwise the output is 0.\"},{\"question\":\"What is the key behavior difference between the OR gate and the AND gate?\",\"answer\":\"The OR gate outputs 1 when either A or B is closed (including when both are closed), while the AND gate outputs 1 only when both inputs are 1.\"}]","Lecture Two - Logic gates - AND gate - OR gate - NOT gate - Universal Logic Gates | PDF",1792961945,35,[148,152,156,160],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/71323790b501e59c1a1480beba711fe0.webp",983,1272,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6e0a630a15c8bd917fbe083f292c196e.webp",982,1270,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0a617b66e0da99ecdd823f19d408048b.webp",981,1269,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/72b2682cef0da916f5c1246b65750eb2.webp",980,1268,{"list":165,"token":11},[166,173,179,185,191,197,204,210,215,221],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":29,"create_tm":172},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=1796156999&Signature=8D7nMERuIixpk5ZhTHmpsy1c054%3D","logic-gates-and-typical-functional-blocks-lecture-notes",15,1792961922,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":116,"category_name":29,"create_tm":178},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=1796156999&Signature=DVcoE5KdZK3eEdVtx0Fi%2BbwMZ9Q%3D","gates-and-logic-from-transistors-to-logic-gates-and-logic-circuits",1792961927,{"doc_id":180,"doc_title":181,"file_type":138,"home_preview_img_url":182,"slug":183,"view_count":124,"category_name":29,"create_tm":184},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=1796156999&Signature=5F7N7LlItPrtbmnrvjlRpJyzwIA%3D","logic-gates-and-or-not-and-additional-logic-gates",1792961910,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":111,"category_name":29,"create_tm":190},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=1796156999&Signature=R5A1iOVarUQ9G3LqBRmx76m2xhk%3D","basic-logic-gates",1792986269,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":106,"category_name":29,"create_tm":196},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=1796156999&Signature=tKGZQYCt6yMapNq9SI%2F%2FiF6DEgc%3D","basics-of-digital-systems-boolean-algebra-logic-gates",1793970602,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},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=1796156999&Signature=5S1gJ%2B2ZMY24YDF4DsfxY%2BOQ5Bs%3D","lecture-3-logic-gates-ii",12,1792986267,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":111,"category_name":29,"create_tm":209},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=1796156999&Signature=1WBAxAhvrPoHl0LRm4PVp%2FGm5MM%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":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":124,"category_name":29,"create_tm":145},655475,"Introduction to Logic Gates - Basic Gates - Negative Gates - Exclusive Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082902/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796156999&Signature=9pPZILYppCRDimde5fYkDz%2FLbtg%3D","introduction-to-logic-gates-basic-gates-negative-gates-exclusive-gates",{"doc_id":216,"doc_title":217,"file_type":138,"home_preview_img_url":218,"slug":219,"view_count":55,"category_name":29,"create_tm":220},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=1796156999&Signature=jQ%2FHVeFGKP0yxdyn8ABidM2EE6I%3D","chapter-9-discrete-control-using-programmable-logic-controllers",1792962539,{"doc_id":222,"doc_title":223,"file_type":138,"home_preview_img_url":224,"slug":225,"view_count":111,"category_name":29,"create_tm":226},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=1796156999&Signature=H%2FSs7IoiPzNnR5aoY%2FcFORQ5DE4%3D","digital-logic-gates-10-features-and-component-parameters-functional-descriptions",1792961912]