{"id":9082,"date":"2019-04-22T16:41:55","date_gmt":"2019-04-22T16:41:55","guid":{"rendered":"https:\/\/hocvienit.vn\/?p=9082"},"modified":"2025-05-23T15:02:55","modified_gmt":"2025-05-23T08:02:55","slug":"tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-and-or-not","status":"publish","type":"post","link":"https:\/\/hocvienit.vn\/?p=9082","title":{"rendered":"T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u00e1c c\u1ed5ng logic: AND, OR, NOT"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">Ki\u1ebfn th\u1ee9c v\u1ec1 ng\u00e0nh \u0111i\u1ec7n t\u1eed h\u1ecdc \u0111ang ng\u00e0y c\u00e0ng \u0111\u01b0\u1ee3c \u1ee9ng d\u1ee5ng nhi\u1ec1u trong cu\u1ed9c s\u1ed1ng nh\u1ea5t l\u00e0 \u0111\u1ed1i v\u1edbi d\u00e2n iT th\u00ec g\u1ea7n nh\u01b0 ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 \u0111i\u1ec7n t\u1eed h\u1ecdc l\u00e0 kh\u00f4ng th\u1ec3 thi\u1ebfu trong qu\u00e1 tr\u00ecnh h\u1ecdc. Do \u0111\u00f3, nh\u1eb1m gi\u00fap c\u00e1c h\u1ecdc vi\u00ean c\u00f3 c\u00e1i nh\u00ecn t\u1ed5ng quan nh\u1ea5t v\u1ec1 ng\u00e0nh \u0111i\u1ec7n t\u1eed h\u1ecdc, H\u1ecdc vi\u1ec7n iT s\u1ebd chia s\u1ebb m\u1ed9t v\u00e0i <strong>ki\u1ebfn th\u1ee9c v\u1ec1 c\u00e1c c\u1ed5ng logic\u00a0c\u01a1 b\u1ea3n<\/strong>.<\/span><\/p>\n<figure id=\"attachment_9104\" aria-describedby=\"caption-attachment-9104\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9104 size-full\" title=\"T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u1ed5ng logic: AND, OR, NOT\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-and-or-not.jpg\" alt=\"T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u1ed5ng logic: AND, OR, NOT\" width=\"600\" height=\"380\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-and-or-not.jpg 600w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-and-or-not-510x323.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-and-or-not-300x190.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-9104\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u1ed5ng logic: AND, OR, NOT<\/span><\/figcaption><\/figure>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 24px;\"><strong>C\u1ed5ng logic l\u00e0 g\u00ec?<\/strong><\/span><\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">C\u1ed5ng logic l\u00e0 m\u1ed9t m\u1ea1ch \u0111i\u1ec7n th\u1ef1c hi\u1ec7n m\u1ed9t h\u00e0m Boole l\u00fd t\u01b0\u1edfng h\u00f3a. Trong \u0111\u00f3, n\u00f3 c\u00f3 vai tr\u00f2 th\u1ef1c hi\u1ec7n m\u1ed9t ph\u00e9p to\u00e1n logic l\u00ean m\u1ed9t ho\u1eb7c nhi\u1ec1u logic \u0111\u1ea7u v\u00e0o. T\u1eeb \u0111\u00f3, cho ra m\u1ed9t k\u1ebft qu\u1ea3 duy nh\u1ea5t trong \u0111i\u1ec1u ki\u1ec7n th\u1eddi gian l\u00fd t\u01b0\u1edfng h\u00f3a l\u00e0 kh\u00f4ng c\u00f3 tr\u1ec5.<\/span><\/p>\n<p>C\u1ed5ng logic th\u1ef1c hi\u1ec7n c\u00e1c ph\u00e9p to\u00e1n logic \u0111\u01a1n gi\u1ea3n tr\u00ean t\u00edn hi\u1ec7u \u0111\u1ea7u v\u00e0o, t\u1ea1o ra t\u00edn hi\u1ec7u \u0111\u1ea7u ra d\u1ef1a tr\u00ean c\u00e1c quy t\u1eafc logic nh\u1ea5t \u0111\u1ecbnh. C\u1ed5ng logic \u0111\u00f3ng vai tr\u00f2 quan tr\u1ecdng trong vi\u1ec7c c\u1ea5u t\u1ea1o n\u00ean c\u00e1c m\u1ea1ch \u0111i\u1ec7n t\u1eed ph\u1ee9c t\u1ea1p, bao g\u1ed3m vi x\u1eed l\u00fd, vi \u0111i\u1ec1u khi\u1ec3n v\u00e0 c\u00e1c h\u1ec7 th\u1ed1ng nh\u00fang.<\/p>\n<p><strong>\u0110\u1eb7c \u0111i\u1ec3m ch\u00ednh c\u1ee7a c\u1ed5ng logic:<\/strong><\/p>\n<ul>\n<li><strong>Th\u1ef1c hi\u1ec7n ph\u00e9p to\u00e1n logic:<\/strong> C\u1ed5ng logic nh\u1eadn t\u00edn hi\u1ec7u \u0111\u1ea7u v\u00e0o \u1edf d\u1ea1ng nh\u1ecb ph\u00e2n (0 ho\u1eb7c 1) v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c ph\u00e9p to\u00e1n logic c\u01a1 b\u1ea3n nh\u01b0 AND, OR, NOT, NAND, NOR, EX-OR, EX-NOR.<\/li>\n<li><strong>C\u00f3 nhi\u1ec1u \u0111\u1ea7u v\u00e0o v\u00e0 m\u1ed9t \u0111\u1ea7u ra:<\/strong> M\u1ed7i c\u1ed5ng logic c\u00f3 th\u1ec3 c\u00f3 m\u1ed9t ho\u1eb7c nhi\u1ec1u \u0111\u1ea7u v\u00e0o, nh\u01b0ng ch\u1ec9 c\u00f3 duy nh\u1ea5t m\u1ed9t \u0111\u1ea7u ra. Gi\u00e1 tr\u1ecb t\u00edn hi\u1ec7u \u0111\u1ea7u ra ph\u1ee5 thu\u1ed9c v\u00e0o gi\u00e1 tr\u1ecb t\u00edn hi\u1ec7u t\u1ea1i c\u00e1c \u0111\u1ea7u v\u00e0o v\u00e0 quy t\u1eafc logic c\u1ee7a c\u1ed5ng.<\/li>\n<li><strong>C\u00f3 nhi\u1ec1u c\u00f4ng ngh\u1ec7 ch\u1ebf t\u1ea1o:<\/strong> C\u1ed5ng logic c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c ch\u1ebf t\u1ea1o b\u1eb1ng c\u00e1c c\u00f4ng ngh\u1ec7 kh\u00e1c nhau nh\u01b0 l\u01b0\u1ee1ng c\u1ef1c, MOS, ho\u1eb7c \u0111\u01b0\u1ee3c t\u00edch h\u1ee3p th\u00e0nh m\u1ea1ch t\u00edch h\u1ee3p (IC).<\/li>\n<li><strong>\u1ee8ng d\u1ee5ng r\u1ed9ng r\u00e3i:<\/strong> C\u1ed5ng logic \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong nhi\u1ec1u l\u0129nh v\u1ef1c kh\u00e1c nhau nh\u01b0 \u0111i\u1ec7n t\u1eed, m\u00e1y t\u00ednh, t\u1ef1 \u0111\u1ed9ng h\u00f3a, vi\u1ec5n th\u00f4ng,&#8230;<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: 24px;\"><strong>C\u00e1c c\u1ed5ng logic c\u01a1 b\u1ea3n nh\u1ea5t<\/strong><\/span><\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">Tr\u01b0\u1edbc khi \u0111i v\u00e0o t\u00ecm hi\u1ec3u m\u1ed9t s\u1ed1 lo\u1ea1i c\u1ed5ng logic c\u01a1 b\u1ea3n nh\u1ea5t, b\u1ea1n n\u00ean bi\u1ebft quy \u0111\u1ecbnh v\u1ec1 m\u1ee9c 0 v\u00e0 m\u1ee9c 1 nh\u01b0 sau:<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">+ N\u1ebfu IC c\u1ee7a TTL th\u00ec \u0111i\u1ec7n \u00e1p v\u00e0o l\u00e0 5V, khi \u0111\u00f3 ta c\u00f3 m\u1ee9c 1 = 5V v\u00e0 m\u1ee9c 0 l\u00e0 = 0V.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">+ N\u1ebfu IC c\u1ee7a CMOS th\u00ec \u0111i\u1ec7n \u00e1p v\u00e0o Vdd \u00a0= 3V &#8211; 18V cho n\u00ean m\u1ee9c 1 = Vdd v\u00e0 m\u1ee9c 0 v\u1eabn l\u00e0 = 0V.<\/span><\/p>\n<p>C\u00f3 7 lo\u1ea1i c\u1ed5ng logic c\u01a1 b\u1ea3n:<\/p>\n<ul>\n<li><strong>NOT (Kh\u00f4ng):<\/strong> Ph\u1ee7 \u0111\u1ecbnh t\u00edn hi\u1ec7u \u0111\u1ea7u v\u00e0o. N\u1ebfu \u0111\u1ea7u v\u00e0o l\u00e0 1, \u0111\u1ea7u ra l\u00e0 0. Ng\u01b0\u1ee3c l\u1ea1i, n\u1ebfu \u0111\u1ea7u v\u00e0o l\u00e0 0, \u0111\u1ea7u ra l\u00e0 1.<\/li>\n<li><strong>AND (V\u00e0):<\/strong> Ch\u1ec9 c\u00f3 \u0111\u1ea7u ra l\u00e0 1 khi t\u1ea5t c\u1ea3 c\u00e1c \u0111\u1ea7u v\u00e0o \u0111\u1ec1u l\u00e0 1.<\/li>\n<li><strong>OR (Ho\u1eb7c):<\/strong> C\u00f3 \u0111\u1ea7u ra l\u00e0 1 khi \u00edt nh\u1ea5t m\u1ed9t \u0111\u1ea7u v\u00e0o l\u00e0 1.<\/li>\n<li><strong>NAND (V\u00e0-Kh\u00f4ng):<\/strong> Ph\u1ee7 \u0111\u1ecbnh k\u1ebft qu\u1ea3 c\u1ee7a ph\u00e9p to\u00e1n AND.<\/li>\n<li><strong>NOR (Ho\u1eb7c-Kh\u00f4ng):<\/strong> Ph\u1ee7 \u0111\u1ecbnh k\u1ebft qu\u1ea3 c\u1ee7a ph\u00e9p to\u00e1n OR.<\/li>\n<li><strong>EX-OR (Ho\u1eb7c-Ngo\u1ea1i tr\u1eeb):<\/strong> Ch\u1ec9 c\u00f3 \u0111\u1ea7u ra l\u00e0 1 khi hai \u0111\u1ea7u v\u00e0o kh\u00e1c nhau.<\/li>\n<li><strong>EX-NOR (Ngo\u1ea1i tr\u1eeb-Ho\u1eb7c):<\/strong> Ch\u1ec9 c\u00f3 \u0111\u1ea7u ra l\u00e0 1 khi hai \u0111\u1ea7u v\u00e0o gi\u1ed1ng nhau.<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 20px;\">C\u1ed5ng logic V\u00c0 (AND) &#8211; M\u1ed9t trong c\u00e1c c\u1ed5ng logic c\u01a1 b\u1ea3n nh\u1ea5t<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">K\u00fd hi\u1ec7u c\u1ee7a c\u1ed5ng logic AND \u0111\u01b0\u1ee3c bi\u1ec3u di\u1ec5n qua h\u00ecnh v\u1ebd d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9083\" aria-describedby=\"caption-attachment-9083\" style=\"width: 750px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9083 size-full\" title=\"C\u1ed5ng logic AND\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-and.jpg\" alt=\"C\u1ed5ng logic AND\" width=\"750\" height=\"241\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-and.jpg 750w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-and-510x164.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-and-300x96.jpg 300w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-and-600x193.jpg 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption id=\"caption-attachment-9083\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ed5ng logic AND<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">\u0110\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c nguy\u00ean l\u00fd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u1ed5ng logic AND, ch\u00fang ta h\u00e3y nh\u00ecn v\u00e0o s\u01a1 \u0111\u1ed3 d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9087\" aria-describedby=\"caption-attachment-9087\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9087 size-full\" title=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic AND\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-and.jpg\" alt=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic AND\" width=\"600\" height=\"452\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-and.jpg 600w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-and-510x384.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-and-300x226.jpg 300w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-and-463x348.jpg 463w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-9087\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ea5u t\u1ea1o c\u1ed5ng logic AND<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-size: 16px;\"><span style=\"font-weight: 400;\">T\u1eeb s\u01a1 \u0111\u1ed3 ta c\u00f3 th\u1ec3 th\u1ea5y c\u1ea5u t\u1ea1o c\u1ee7a c\u1ed5ng logic AND bao g\u1ed3m hai \u0111\u1ea7u v\u00e0o l\u00e0 A v\u00e0 B, m\u1ed9t \u0111\u1ea7u ra l\u00e0 t\u00edch c\u1ee7a A v\u00e0 B. M\u1ea1ch n\u00e0y l\u1eafp \u0111\u1eb7t 2 Diode v\u00e0 1 \u0111i\u1ec7n tr\u1edf nh\u01b0 tr\u00ean h\u00ecnh v\u1ebd.\u00a0<\/span><span style=\"font-weight: 400;\">Trong \u0111\u00f3, <\/span><\/span><\/p>\n<ul>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p m\u1ed9t<\/strong> l\u00e0 khi \u0111i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o \u1edf m\u1ee9c 1 = 5V th\u00ec 2 Diode s\u1ebd b\u1ecb ph\u00e2n c\u1ef1c ngh\u1ecbch v\u00e0 \u0111i\u1ec1u \u0111\u00f3 c\u0169ng \u0111\u1ed3ng ngh\u0129a v\u1edbi vi\u1ec7c kh\u00f4ng c\u00f3 d\u00f2ng ch\u1ea1y trong 2 Diode. V\u1eady n\u00ean, \u1edf \u0111\u1ea7u ra c\u00f3 m\u1ee9c \u0111i\u1ec7n \u00e1p b\u1eb1ng v\u1edbi m\u1ee9c \u0111i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o l\u00e0 5V.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p th\u1ee9 hai<\/strong> l\u00e0 Diode A \u1edf m\u1ee9c 1, Diode B \u1edf m\u1ee9c 0, c\u00f3 ngh\u0129a l\u00e0 Diode A ph\u00e2n c\u1ef1c ngh\u1ecbch c\u00f2n Diode B ph\u00e2n c\u1ef1c thu\u1eadn. Do \u0111\u00f3, s\u1ebd kh\u00f4ng c\u00f3 d\u00f2ng \u0111i\u1ec7n qua \u0111\u1ea7u ra (0V).<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p th\u1ee9 ba<\/strong> l\u00e0 tr\u01b0\u1eddng h\u1ee3p ng\u01b0\u1ee3c l\u1ea1i v\u1edbi tr\u01b0\u1eddng h\u1ee3p tr\u00ean, t\u1ee9c l\u00e0 Diode A = 0V, Diode B = 5V th\u00ec t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi Diode A ph\u00e2n c\u1ef1c thu\u1eadn v\u00e0 Diode B ph\u00e2n c\u1ef1c ngh\u1ecbch v\u00e0 c\u0169ng cho ra k\u1ebft qu\u1ea3 t\u01b0\u01a1ng t\u1ef1 nh\u01b0 tr\u00ean (0V).<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p cu\u1ed1i c\u00f9ng<\/strong> l\u00e0 c\u1ea3 hai Diode \u0111\u1ec1u \u1edf m\u1ee9c 0 (0V). Suy ra c\u1ea3 hai Diode \u0111\u1ea7u ph\u00e2n c\u1ef1c thu\u1eadn v\u00e0 k\u1ebft qu\u1ea3 v\u1eabn l\u00e0 kh\u00f4ng c\u00f3 d\u00f2ng \u0111i\u1ec7n (0V).<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">T\u00f3m l\u1ea1i, ch\u1ec9 khi \u0111i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o c\u00f9ng b\u1eb1ng 1, \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra m\u1edbi b\u1eb1ng 5V (m\u1ee9c 1) v\u00e0 c\u00e1c tr\u01b0\u1eddng h\u1ee3p c\u00f2n l\u1ea1i \u0111\u1ec1u cho ra k\u1ebft qu\u1ea3 b\u1eb1ng 0.<\/span><\/p>\n<h3 style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 20px;\">C\u1ed5ng HO\u1eb6C (OR)<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">K\u00fd hi\u1ec7u c\u1ee7a c\u1ed5ng logic OR \u0111\u01b0\u1ee3c bi\u1ec3u di\u1ec5n qua h\u00ecnh v\u1ebd d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9084\" aria-describedby=\"caption-attachment-9084\" style=\"width: 750px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9084 size-full\" title=\"C\u1ed5ng logic OR\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-or.jpg\" alt=\"C\u1ed5ng logic OR\" width=\"750\" height=\"241\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-or.jpg 750w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-or-510x164.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-or-300x96.jpg 300w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-or-600x193.jpg 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption id=\"caption-attachment-9084\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ed5ng logic OR<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">\u0110\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c nguy\u00ean l\u00fd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u1ed5ng logic OR, ch\u00fang ta h\u00e3y nh\u00ecn v\u00e0o s\u01a1 \u0111\u1ed3 d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9088\" aria-describedby=\"caption-attachment-9088\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9088 size-full\" title=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic OR\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-or.jpg\" alt=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic OR\" width=\"600\" height=\"350\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-or.jpg 600w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-or-510x298.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-or-300x175.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-9088\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ea5u t\u1ea1o c\u1ed5ng logic OR<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">T\u1eeb s\u01a1 \u0111\u1ed3 ta c\u00f3 th\u1ec3 th\u1ea5y c\u1ea5u t\u1ea1o c\u1ee7a c\u1ed5ng logic OR bao g\u1ed3m hai \u0111\u1ea7u v\u00e0o l\u00e0 A v\u00e0 B, m\u1ed9t \u0111\u1ea7u ra l\u00e0 t\u1ed5ng c\u1ee7a A v\u00e0 B. M\u1ea1ch n\u00e0y l\u1eafp \u0111\u1eb7t 2 Diode v\u00e0 1 \u0111i\u1ec7n tr\u1edf nh\u01b0 tr\u00ean h\u00ecnh v\u1ebd.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">Ta c\u00f3 th\u1ec3 th\u1ea5y m\u1ea1ch c\u1ee7a c\u1ed5ng logic OR kh\u00f4ng kh\u00e1c g\u00ec nhi\u1ec1u so v\u1edbi m\u1ea1ch c\u1ee7a c\u1ed5ng logic AND, ch\u1ec9 c\u00f3 \u0111i\u1ec1u l\u00e0 c\u00e1ch l\u1eafp \u0111i\u1ec7n tr\u1edf ng\u01b0\u1ee3c l\u1ea1i so v\u1edbi c\u1ed5ng logic AND.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 16px;\"><strong>Nguy\u00ean l\u00fd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u1ed5ng logic OR nh\u01b0 sau:<\/strong><\/span><\/p>\n<ul>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 1:<\/strong> C\u1ea3 hai \u0111i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o \u0111\u1ec1u \u1edf m\u1ee9c 1 (5V), t\u01b0\u01a1ng \u1ee9ng v\u1edbi hai Diode ph\u00e2n c\u1ef1c thu\u1eadn v\u00e0 \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra l\u00e0 5V.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 2:<\/strong> Diode A \u1edf m\u1ee9c 1, Diode B \u1edf m\u1ee9c 0, t\u01b0\u01a1ng \u1ee9ng v\u1edbi Diode A ph\u00e2n c\u1ef1c thu\u1eadn c\u00f2n Diode B ph\u00e2n c\u1ef1c ngh\u1ecbch. Kh\u00e1c v\u1edbi c\u1ed5ng logic AND, \u1edf tr\u01b0\u1eddng h\u1ee3p n\u00e0y \u0111i\u1ec7n \u00e1p \u1edf \u0111\u1ea7u ra l\u00e0 5V.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 3:<\/strong> Diode A \u1edf m\u1ee9c 0, Diode B \u1edf m\u1ee9c 1, t\u01b0\u01a1ng \u1ee9ng v\u1edbi Diode A ph\u00e2n c\u1ef1c ngh\u1ecbch v\u00e0 Diode B ph\u00e2n c\u1ef1c thu\u1eadn. V\u00e0 k\u1ebft qu\u1ea3 \u0111\u1ea7u ra trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y l\u00e0 5V.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 4:<\/strong> C\u1ea3 hai \u0111i\u1ec7n \u00e1p \u1ea7u v\u00e0o \u0111\u1ec1u \u1edf m\u1ee9c 0 (0V). K\u1ebft qu\u1ea3 \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra l\u00e0 0V b\u1edfi v\u00ec kh\u00f4ng c\u00f3 d\u00f2ng \u0111i\u1ec7n ch\u1ea1y qua c\u1ea3 hai Diode.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">T\u00f3m l\u1ea1i, t\u1ea5t c\u1ea3 c\u00e1c tr\u01b0\u1eddng h\u1ee3p \u0111\u1ec1u cho ra k\u1ebft qu\u1ea3 \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra l\u00e0 5V, ngo\u1ea1i tr\u1eeb tr\u01b0\u1eddng h\u1ee3p Diode A = Diode B l\u00e0 m\u1ee9c \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra 0V.<\/span><\/p>\n<h3 style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 20px;\">C\u1ed5ng logic \u0110\u1ea2O (NOT)<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">K\u00fd hi\u1ec7u c\u1ee7a c\u1ed5ng logic NOT \u0111\u01b0\u1ee3c bi\u1ec3u di\u1ec5n qua h\u00ecnh v\u1ebd d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9085\" aria-describedby=\"caption-attachment-9085\" style=\"width: 750px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9085 size-full\" title=\"C\u1ed5ng logic NOT\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-not.jpg\" alt=\"C\u1ed5ng logic NOT\" width=\"750\" height=\"241\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-not.jpg 750w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-not-510x164.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-not-300x96.jpg 300w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cong-logic-not-600x193.jpg 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption id=\"caption-attachment-9085\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ed5ng logic NOT<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">\u0110\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c nguy\u00ean l\u00fd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u1ed5ng logic NOT, ch\u00fang ta h\u00e3y nh\u00ecn v\u00e0o s\u01a1 \u0111\u1ed3 d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n<figure id=\"attachment_9086\" aria-describedby=\"caption-attachment-9086\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9086 size-full\" title=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic NOT\" src=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-not.jpg\" alt=\"C\u1ea5u t\u1ea1o c\u1ed5ng logic NOT\" width=\"600\" height=\"452\" srcset=\"https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-not.jpg 600w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-not-510x384.jpg 510w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-not-300x226.jpg 300w, https:\/\/hocvienit.vn\/wp-content\/uploads\/2019\/04\/cau-tao-cong-logic-not-463x348.jpg 463w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-9086\" class=\"wp-caption-text\"><span style=\"font-size: 16px; color: #333333;\">C\u1ea5u t\u1ea1o c\u1ed5ng logic NOT<\/span><\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">T\u1eeb s\u01a1 \u0111\u1ed3 ta c\u00f3 th\u1ec3 th\u1ea5y c\u1ea5u t\u1ea1o c\u1ee7a c\u1ed5ng logic NOT bao g\u1ed3m m\u1ed9t \u0111\u1ea7u v\u00e0o v\u00e0 m\u1ed9t \u0111\u1ea7u ra. Ch\u00ednh b\u1edfi c\u1ea5u t\u1ea1o n\u00e0y c\u1ee7a m\u1ea1ch logic NOT m\u00e0 ch\u00fang ta ch\u1ec9 c\u00f3 hai tr\u01b0\u1eddng h\u1ee3p nh\u01b0 sau:<\/span><\/p>\n<ul>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 1:<\/strong> \u0110i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o b\u1eb1ng 0 th\u00ec \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra b\u1eb1ng 1.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\"><strong>Tr\u01b0\u1eddng h\u1ee3p 2:<\/strong> Ng\u01b0\u1ee3c l\u1ea1i v\u1edbi tr\u01b0\u1eddng h\u1ee3p tr\u00ean, khi \u0111i\u1ec7n \u00e1p \u0111\u1ea7u v\u00e0o b\u1eb1ng 1 th\u00ec \u0111i\u1ec7n \u00e1p \u0111\u1ea7u ra b\u1eb1ng 0.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">Tr\u00ean \u0111\u00e2y l\u00e0 chia s\u1ebb c\u1ee7a H\u1ecdc vi\u1ec7n iT v\u1ec1 c\u00e1c ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u1ed5ng logic. Hi v\u1ecdng ch\u00fang gi\u00fap \u00edch cho b\u1ea1n trong qu\u00e1 tr\u00ecnh s\u1eed d\u1ee5ng m\u00e1y t\u00ednh c\u0169ng nh\u01b0 h\u1ecdc t\u1eadp. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; font-size: 16px;\">Ngo\u00e0i ra, n\u1ebfu c\u00f3 b\u1ea5t c\u1ee9 th\u1eafc m\u1eafc n\u00e0o v\u1ec1 c\u00e1c ki\u1ebfn th\u1ee9c li\u00ean quan \u0111\u1ebfn m\u00e1y t\u00ednh kh\u00e1c th\u00ec b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ec3 l\u1ea1i b\u00ecnh lu\u1eadn b\u00ean d\u01b0\u1edbi b\u00e0i vi\u1ebft n\u00e0y. V\u00e0 \u0111\u1eebng qu\u00ean \u0111\u00f3n \u0111\u1ecdc c\u00e1c b\u00e0i vi\u1ebft m\u1edbi nh\u1ea5t c\u1ee7a H\u1ecdc vi\u1ec7n iT nh\u00e9.<\/span><\/p>\n<p style=\"text-align: justify; padding-left: 40px;\"><span style=\"font-weight: 400; font-size: 16px;\">B\u00e0i vi\u1ebft li\u00ean quan:\u00a0<\/span><\/p>\n<p style=\"text-align: justify; padding-left: 40px;\"><span style=\"font-weight: 400; font-size: 16px;\"><a href=\"https:\/\/hocvienit.vn\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-nor-nand\/\" target=\"_blank\" rel=\"noopener\">T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u00e1c c\u1ed5ng logic: NOR, NAND<\/a><\/span><\/p>\n<p style=\"padding-left: 40px;\"><span style=\"font-size: 16px;\"><a href=\"https:\/\/hocvienit.vn\/tong-hop-kien-thuc-co-ban-ve-cac-cong-logic-buffer-ex-or-ex-nor-aoi\/\" target=\"_blank\" rel=\"noopener\">T\u1ed5ng h\u1ee3p ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u1ec1 c\u00e1c c\u1ed5ng logic: BUFFER, EX-OR, EX-NOR, AOI<\/a><\/span><\/p>\n<p style=\"text-align: left;\"><i>M\u1ecdi chi ti\u1ebft xin vui l\u00f2ng li\u00ean h\u1ec7:<br \/>\n<\/i><strong>C\u00d4NG TY C\u1ed4 PH\u1ea6N H\u1eccC VI\u1ec6N IT<br \/>\n<\/strong><strong>MST: 0108733789<br \/>\n<\/strong><strong>Hotline: 0981 223 001<br \/>\n<\/strong><strong>Facebook:<\/strong>\u00a0<a href=\"http:\/\/www.fb.com\/hocvienit\" target=\"_blank\" rel=\"noopener\">www.fb.com\/hocvienit<\/a><br \/>\n<strong>\u0110\u0103ng k\u00fd k\u00eanh Youtube \u0111\u1ec3 theo d\u00f5i c\u00e1c b\u00e0i h\u1ecdc c\u1ee7a Hu\u1ea5n luy\u1ec7n vi\u00ean t\u1ed1t nh\u1ea5t:<\/strong>\u00a0<a href=\"http:\/\/bit.ly\/Youtube_HOCVIENiT\" target=\"_blank\" rel=\"noopener nofollow\">http:\/\/bit.ly\/Youtube_HOCVIENiT<\/a><br \/>\n<b>H\u1ec7 th\u1ed1ng c\u01a1 s\u1edf \u0111\u00e0o t\u1ea1o:\u00a0<\/b><a href=\"https:\/\/hocvienit.vn\/lien-he\/\" target=\"_blank\" rel=\"noopener\">https:\/\/hocvienit.vn\/lien-he\/<\/a><br \/>\n<strong><i>H\u1ecdc vi\u1ec7n IT.vn \u2013 Truy\u1ec1n ngh\u1ec1 th\u1ef1c t\u1ebf c\u00f9ng b\u1ea1n \u0111\u1ebfn th\u00e0nh c\u00f4ng!\u00a0<\/i><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0110\u1ec3 c\u00f3 c\u00e1i nh\u00ecn t\u1ed5ng quan nh\u1ea5t v\u1ec1 ng\u00e0nh \u0111i\u1ec7n t\u1eed h\u1ecdc, HocvieniT.vn s\u1ebd chia s\u1ebb ki\u1ebfn th\u1ee9c v\u1ec1 c\u00e1c c\u1ed5ng logic c\u01a1 b\u1ea3n: AND, OR, NOT, XOR, NAND<\/p>\n","protected":false},"author":95,"featured_media":9104,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[734],"tags":[319],"_links":{"self":[{"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/posts\/9082"}],"collection":[{"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/users\/95"}],"replies":[{"embeddable":true,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9082"}],"version-history":[{"count":0,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/posts\/9082\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=\/wp\/v2\/media\/9104"}],"wp:attachment":[{"href":"https:\/\/hocvienit.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hocvienit.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}