{"id":2504,"date":"2017-01-10T20:54:58","date_gmt":"2017-01-10T13:54:58","guid":{"rendered":"http:\/\/www.payitforward.edu.vn\/wordpress\/?page_id=2504"},"modified":"2017-01-11T21:00:18","modified_gmt":"2017-01-11T14:00:18","slug":"bai-4","status":"publish","type":"page","link":"https:\/\/payitforward.edu.vn\/wordpress\/tutorials\/dien-tu-co-ban-cho-sv-nam-nhat\/bai-4\/","title":{"rendered":"B\u00e0i 4"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span style=\"color: #008080;\">Gi\u1edbi thi\u1ec7u v\u1ec1 IC logic v\u00e0 IC latch 74HC595<\/span><\/h1>\n<p style=\"text-align: justify;\">Trong b\u00e0i n\u00e0y ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u v\u1ec1 c\u00e1c lo\u1ea1i IC Logic th\u00f4ng d\u1ee5ng v\u00e0 IC ch\u1ed1t 74HC595.<\/p>\n<h3 style=\"padding: none;\"><strong>I. C\u00e1c lo\u1ea1i IC Logic: <\/strong><\/h3>\n<h3 style=\"padding-left: 30px;\"><strong>1. S\u01a1 l\u01b0\u1ee3c v\u1ec1 m\u1ee9c logic:<\/strong><\/h3>\n<p style=\"text-align: justify;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0M\u1ee9c Logic l\u00e0 1 \u0111\u1ecbnh ngh\u0129a trong to\u00e1n h\u1ecdc v\u1ec1 nh\u1ecb ph\u00e2n. C\u00f3 2 m\u1ee9c l\u00e0 m\u1ee9c \u201c1\u201d (ph\u1ed5 bi\u1ebfn l\u00e0 t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\u1ee9c\u00a0\u0111i\u1ec7n \u00e1p 12*VCC) v\u00e0 m\u1ee9c \u201c0\u201d (t\u01b0\u01a1ng \u1ee9ng v\u1edbi \u0111i\u1ec7n \u00e1p 1\u20442 VCC). M\u1ee9c \u201c1\u201d c\u0169ng c\u00f2n \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 m\u1ee9c HIGH (m\u1ee9c cao). M\u1ee9c \u201c0\u201d c\u0169ng \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 m\u1ee9c LOW (m\u1ee9c th\u1ea5p).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/92\/b0\/72\/92b072846a88faf708be222111d60b13.png\" alt=\"m\u1ee9c logic\" \/><\/p>\n<p style=\"text-align: justify;\"><em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* VCC l\u00e0 \u0111i\u1ec7n \u00e1p c\u1ea5p ngu\u1ed3n cho chip (IC) ho\u1ea1t \u0111\u1ed9ng, v\u00ed d\u1ee5 5V, 3.3V, 12V&#8230;<\/em><\/p>\n<h3 style=\"text-align: justify;\"><strong>\u00a0 \u00a0 \u00a0 2. Ph\u00e9p to\u00e1n logic v\u00e0 c\u00e1c lo\u1ea1i IC logic:<\/strong><\/h3>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <strong>a. NOT:<\/strong><\/h4>\n<p style=\"text-align: justify;\">Ph\u00e9p to\u00e1n n\u00e0y c\u00f2n \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 ph\u00e9p \u0111\u1ea3o tr\u1ea1ng th\u00e1i logic. C\u1ee5 th\u1ec3 l\u00e0 n\u1ebfu ng\u00f5 v\u00e0o c\u00f3 m\u1ee9c logic l\u00e0 1 th\u00ec ng\u00f5 ra s\u1ebd c\u00f3 m\u1ee9c logic l\u00e0 0 v\u00e0 ng\u01b0\u1ee3c l\u1ea1i.<br \/>\nK\u00fd hi\u1ec7u to\u00e1n: x\u2019= v\u1edbi x l\u00e0 t\u00edn hi\u1ec7u v\u00e0o, v\u00e0 x\u2019 l\u00e0 ng\u00f5 ra.<br \/>\nK\u00fd hi\u1ec7u tr\u00ean m\u1ea1ch \u0111i\u1ec7n v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/9e\/0b\/12\/9e0b12d8da3ad40243a5b034efd3f78f.png\" alt=\"not symbol\" width=\"221\" height=\"97\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/41\/d1\/1d\/41d11dd4a1c13297ab4ee03fcf75dfa9.jpg\" alt=\"table\" width=\"176\" height=\"108\" \/><br \/>\nIC NOT: 74HC14. C\u00e1c em xem datasheet \u0111\u1ec3 bi\u1ebft r\u00f5 v\u1ec1 ch\u00e2n c\u1eb3ng c\u1ee7a n\u00f3 (\u0111\u1ec3 bi\u1ebft ch\u00e2n n\u00e0o l\u00e0 ng\u00f5 v\u00e0o (Input), ch\u00e2n n\u00e0o l\u00e0 ng\u00f5 ra (output), ch\u00e2n c\u1ea5p ngu\u1ed3n (VCC) v\u00e0 ch\u00e2n n\u1ed1i \u0111\u1ea5t (GND)).<br \/>\n*<em>GND (Ground) th\u01b0\u1eddng \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 ch\u00e2n \u201c\u0111\u1ea5t\u201d, th\u1ef1c t\u1ebf kh\u00f4ng ph\u1ea3i l\u00e0 d\u00f9ng d\u00e2y \u0111i\u1ec7n n\u1ed1i ch\u00e2n \u0111\u00f3 xu\u1ed1ng \u201c\u0111\u1ea5t\u201d<\/em><br \/>\n<em> Ngu\u1ed3n c\u1ea5p cho m\u1ea1ch \u0111i\u1ec7n t\u1eed ho\u1ea1t \u0111\u1ed9ng l\u00e0 ngu\u1ed3n DC (m\u1ed9t chi\u1ec1u), trong \u0111\u00f3 c\u1ef1c d\u01b0\u01a1ng n\u1ed1i v\u00e0o ch\u00e2n VCC, v\u00e0 c\u1ef1c \u00e2m n\u1ed1i v\u00e0o ch\u00e2n GND.<\/em><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/6c\/60\/7a\/6c607a3a5ac6c4e30279fc319973ffa9.png\" alt=\"74HC14\" width=\"194\" height=\"203\" \/><\/p>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<strong>b. AND:<\/strong><\/h4>\n<p style=\"text-align: justify;\">V\u1edbi to\u00e1n t\u1eed n\u00e0y, ng\u00f5 ra\u00a0ch\u1ec9 b\u1eb1ng 1 ch\u1ec9 khi t\u1ea5t c\u1ea3 c\u00e1c ng\u00f5 v\u00e0o b\u1eb1ng 1.<br \/>\nK\u00fd hi\u1ec7u tr\u00ean m\u1ea1ch v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/30\/46\/0e\/30460e86829f9c90982da835e441d108.jpg\" alt=\"and gate\" width=\"232\" height=\"85\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/3b\/06\/5f\/3b065f2693167651b485f4d4dcba441f.jpg\" alt=\"and table\" width=\"138\" height=\"136\" \/><\/p>\n<p style=\"text-align: justify;\">IC 74HC08:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/41\/ff\/63\/41ff63d38d476348d6d3b7d30b935500.png\" alt=\"74hc08\" width=\"187\" height=\"147\" \/><\/p>\n<h4><strong>\u00a0 \u00a0 \u00a0 \u00a0 c. NAND:<\/strong><\/h4>\n<p>To\u00e1n t\u1eed tr\u00ean ng\u01b0\u1ee3c l\u1ea1i v\u1edbi AND. Ng\u00f5 ra b\u1eb1ng 0 ch\u1ec9 khi t\u1ea5t c\u1ea3 ng\u00f5 v\u00e0o b\u1eb1ng 1.<br \/>\nK\u00fd hi\u1ec7u v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/www.electrical4u.com\/wp-content\/uploads\/2013\/07\/symbol-of-nand-gate.gif\" alt=\"nand gate\" width=\"195\" height=\"91\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/8a\/6b\/ba\/8a6bbaa3f2c3a5f3ea172bef7bb25718.jpg\" alt=\"nand table\" width=\"145\" height=\"132\" \/><br \/>\nIC 74HC00:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/3e\/b6\/89\/3eb689ff3f064bdce0429585af9a27db.png\" alt=\"74HC00\" width=\"196\" height=\"145\" \/><\/p>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 <strong>d. OR:<\/strong><\/h4>\n<p>Ng\u00f5 ra b\u1eb1ng 1 khi c\u00f3 \u00edt nh\u1ea5t 1 ng\u00f5 v\u00e0o b\u1eb1ng 1. Ng\u01b0\u1ee3c l\u1ea1i ng\u00f5 ra b\u1eb1ng 0 khi t\u1ea5t c\u1ea3 c\u00e1c ng\u00f5 v\u00e0o b\u1eb1ng 0.<br \/>\nK\u00fd hi\u1ec7u v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/www.electronicshub.org\/wp-content\/uploads\/2015\/06\/or-gate-logic-symbol.jpg\" alt=\"or gate\" width=\"154\" height=\"107\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/78\/7e\/7a\/787e7a8855f1e10dbe32214bbf30b274.jpg\" alt=\"or table\" width=\"139\" height=\"132\" \/><br \/>\nIC OR: 74HC32:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/22\/13\/b8\/2213b834a45c33a1851c7d6e9996840b.png\" alt=\"74HC32\" width=\"171\" height=\"140\" \/><\/p>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 <strong>e. NOR:<\/strong><\/h4>\n<p>Ng\u01b0\u1ee3c l\u1ea1i v\u1edbi to\u00e1n t\u1eed OR, gi\u00e1 tr\u1ecb ng\u00f5 ra b\u1eb1ng 0 khi c\u00f3 \u00edt nh\u1ea5t m\u1ed9t ng\u00f5 v\u00e0o b\u1eb1ng 1, ng\u01b0\u1ee3c l\u1ea1i ng\u00f5 ra b\u1eb1ng 1 khi t\u1ea5t c\u1ea3 c\u00e1c ng\u00f5 v\u00e0o b\u1eb1ng 0.<br \/>\nK\u00fd hi\u1ec7u v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/www.thephysicsmill.com\/blog\/wp-content\/uploads\/nor-gate.png\" alt=\"nor gate\" width=\"184\" height=\"73\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/11\/a8\/c3\/11a8c389b57c3e8ced79af8e6846cba5.png\" alt=\"nor table\" width=\"142\" height=\"120\" \/><br \/>\nIC NOR: 74HC02<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/21\/cb\/99\/21cb997d62460d41f17a78bb27ce5154.png\" alt=\"74HC02\" width=\"170\" height=\"143\" \/><\/p>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0<strong>f. XOR:<\/strong><\/h4>\n<p>V\u1edbi ph\u00e9p to\u00e1n n\u00e0y, ng\u00f5 ra b\u1eb1ng 1 khi hai ng\u00f5 v\u00e0o kh\u00e1c nhau. Ng\u01b0\u1ee3c l\u1ea1i, n\u1ebfu hai ng\u00f5 v\u00e0o gi\u1ed1ng nhau th\u00ec ng\u00f5 ra b\u1eb1ng 0.<br \/>\nK\u00fd hi\u1ec7u v\u00e0 b\u1ea3ng gi\u00e1 tr\u1ecb:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/encrypted-tbn2.gstatic.com\/images?q=tbn:ANd9GcQIAW6hwPqMbkJmBYhbXMC-UU97fivKRHb99CMNcDfpZ-ItOWrI\" alt=\"Xor gate\" width=\"187\" height=\"51\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/14\/b8\/04\/14b8042f951463642c7841f10b7d9ee5.png\" alt=\"xor table\" width=\"139\" height=\"122\" \/><br \/>\nIC XOR: 74HC86<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/0c\/f7\/8e\/0cf78ee9557537849bf0b386a6a7c80b.png\" alt=\"74HC86\" width=\"171\" height=\"135\" \/><\/p>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 <strong>g. XNOR:<\/strong><\/h4>\n<p>To\u00e1n t\u1eed tr\u00ean ng\u01b0\u1ee3c v\u1edbi ph\u00e1p nor, ng\u00f5 ra ch\u1ec9 b\u1eb1ng 1 khi hai ng\u00f5 v\u00e0o b\u1eb1ng nhau.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/macao.communications.museum\/images\/exhibits\/2_18_3_4.png\" alt=\"Xnor\" width=\"161\" height=\"60\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/34\/73\/14\/3473140f4d643a888ae5b9c6bc147cd5.jpg\" alt=\"xnor table\" width=\"132\" height=\"125\" \/><br \/>\nIC XNOR: 74HC266<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/e0\/75\/c5\/e075c5b4749367f62bdf3d45d116ecb6.png\" alt=\"74hc266\" width=\"144\" height=\"174\" \/><\/p>\n<h3>\u00a0 \u00a0 \u00a0 \u00a0 <strong>3. IC 74HC595:<\/strong><\/h3>\n<p>IC 74HC595 c\u00f2n g\u1ecdi l\u00e0 IC d\u1ecbch ch\u1ed1t v\u1edbi m\u1ed1i quan h\u1ec7 \u201c v\u00e0o n\u1ed1i ti\u1ebfp v\u00e0 ra song song 8 bit\u201d v\u00e0 c\u00f3 3 tr\u1ea1ng th\u00e1i ng\u00f5 ra.<br \/>\n<strong>\u201c D\u1ecbch \u201c<\/strong> \u1edf \u0111\u00e2y c\u00f3 th\u1ec3 hi\u1ec3u m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n ta c\u00f3 th\u1ec3 \u0111\u01b0a l\u1ea7n l\u01b0\u1ee3t nhi\u1ec1u gi\u00e1 tr\u1ecb logic v\u00e0o m\u1ed9t ng\u00f5 v\u00e0o c\u1ee7a IC \u0111\u00f3 \u0111\u1ec3 n\u00f3 l\u01b0u v\u00e0o b\u1ed9 nh\u1edb ch\u1edd \u0111\u1ebfn khi c\u00f3 l\u1ec7nh x\u1eed l\u00ed.<br \/>\n\u0110\u1ed1i v\u1edbi ng\u00f5 v\u00e0o n\u1ed1i ti\u1ebfp: c\u00e1c gi\u00e1 tr\u1ecb \u0111\u01b0\u1ee3c n\u1ea1p v\u00e0o IC m\u1ed9t c\u00e1ch t\u1eeb t\u1eeb \u1edf t\u1eebng th\u1eddi \u0111i\u1ec3m kh\u00e1c nhau tr\u00ean c\u00f9ng m\u1ed9t ng\u00f5 v\u00e0o.<br \/>\n\u0110\u1ed1i v\u1edbi ng\u00f5 ra song song: c\u00f3 nhi\u1ec1u ng\u00f5 ra v\u00e0 c\u00e1c gi\u00e1 tr\u1ecb s\u1ebd \u0111\u01b0\u1ee3c n\u1ea1p v\u00e0o IC tr\u01b0\u1edbc \u0111\u00f3 \u0111\u01b0\u1ee3c xu\u1ea5t c\u00f9ng m\u1ed9t l\u00fac.<br \/>\nS\u01a1 \u0111\u1ed3 ch\u00e2n IC 74HC595:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/06\/5d\/af\/065daf63e3010818f735c3b9b6b9693c.png\" width=\"287\" height=\"216\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/82\/31\/a3\/8231a30456788f0fee87584e25986afa.png\" width=\"170\" height=\"243\" \/><\/p>\n<ul>\n<li><strong>C\u00e1c ch\u00e2n t\u1eeb 1 t\u1edbi 7 v\u00e0 ch\u00e2n s\u1ed1 15:<\/strong> l\u00e0 ng\u00f5 ra c\u1ee7a IC (\u1ee9ng v\u1edbi Q 0 v\u00e0 Q 1 ,\u2026,Q 7).<\/li>\n<li><strong>Ch\u00e2n DS (ch\u00e2n s\u1ed1 14):<\/strong> l\u00e0 ng\u00f5 v\u00e0o c\u1ee7a IC (\u0111\u00e2y l\u00e0 IC v\u00e0o n\u1ed1i ti\u1ebfp n\u00ean ta ch\u1ec9 c\u1ea7n 1 ng\u00f5 v\u00e0o l\u00e0 \u0111\u1ee7).<\/li>\n<li><strong>Ch\u00e2n 16 \u2013 VCC:<\/strong> l\u00e0 ch\u00e2n c\u1ea5p ngu\u1ed3n d\u01b0\u01a1ng (t\u1eeb 2V \u0111\u1ebfn 6V).<\/li>\n<li><strong>Ch\u00e2n s\u1ed1 8 GND:<\/strong> l\u00e0 ch\u00e2n c\u1ea5p Ground \u2013 c\u1ef1c (-) c\u1ee7a ngu\u1ed3n.<\/li>\n<li><strong>Ch\u00e2n SHCP:<\/strong> l\u00e0 ch\u00e2n \u0111\u01b0a xung clock (xung nh\u1ecbp) v\u00e0o IC v\u00e0 khi c\u00f3 c\u1ea1nh l\u00ean c\u1ee7a xung th\u00ec IC \u0111\u01b0a t\u00edn hi\u1ec7u \u1edf ng\u00f5 v\u00e0o v\u00e0o b\u1ed9 nh\u1edb c\u1ee7a IC \u0111\u1ec3 ch\u1edd x\u1eed l\u00fd.V\u1eady c\u1ea1nh l\u00ean c\u1ee7a xung l\u00e0 nh\u01b0 th\u1ebf n\u00e0o ?<br \/>\nC\u1ea1nh l\u00ean l\u00e0 khi xung clock chuy\u1ec3n tr\u1ea1ng th\u00e1i t\u1eeb 0 l\u00ean 1, c\u00f2n c\u1ea1nh xu\u1ed1ng l\u00e0 th\u1eddi \u0111i\u1ec3m khi chuy\u1ec3n t\u1eeb 1 xu\u1ed1ng 0.<\/li>\n<li><strong>Ch\u00e2n STCP:<\/strong> l\u00e0 ch\u00e2n \u0111\u01b0a xung clock v\u00e0o IC \u0111\u1ec3 khi c\u00f3 c\u1ea1nh l\u00ean c\u1ee7a xung th\u00ec IC \u0111\u01b0a to\u00e0n b\u1ed9 8 bit data \u0111\u00e3 \u0111\u01b0\u1ee3c l\u01b0u (\u0111\u00e3 n\u00f3i \u1edf ch\u00e2n SHCP) ra ng\u00f5 ra c\u1ee7a IC.<\/li>\n<li><strong>Ch\u00e2n <span style=\"text-decoration: overline;\"><strong>MR<\/strong><\/span><\/strong>\u00a0: l\u00e0 ch\u00e2n reset IC (t\u1ee9c l\u00e0 tr\u1ea3 IC v\u1ec1 tr\u1ea1ng th\u00e1i ban \u0111\u1ea7u). Khi ch\u00e2n n\u00e0y t\u00edch c\u1ef1c th\u00ec to\u00e0n b\u1ed9 b\u1ed9 nh\u1edb c\u1ee7a IC s\u1ebd b\u1ecb xo\u00e1 t\u1ea5t c\u1ea3 b\u1eb1ng 0, tuy nhi\u00ean l\u01b0u \u00fd l\u00e0 l\u00fac n\u00e0y t\u00edn hi\u1ec7u \u1edf ng\u00f5 ra kh\u00f4ng b\u1ecb xo\u00e1 m\u00e0 v\u1eabn gi\u1eef nguy\u00ean gi\u00e1 tr\u1ecb tr\u01b0\u1edbc \u0111\u00f3) v\u00e0 ch\u00e2n n\u00e0y t\u00edch c\u1ef1c m\u1ee9c th\u1ea5p (LOW active) c\u00f3 ngh\u0129a l\u00e0 mu\u1ed1n reset IC th\u00ec ph\u1ea3i \u0111\u01b0a 0V v\u00e0o ch\u00e2n n\u00e0y.<\/li>\n<li><strong>Ch\u00e2n <span style=\"text-decoration: overline;\"><strong>OE<\/strong><\/span>:<\/strong>\u00a0l\u00e0 ch\u00e2n Output Enable ch\u00e2n khi \u0111\u01b0\u1ee3c t\u00edch c\u1ef1c th\u00ec m\u1edbi cho ph\u00e9p ta \u0111i\u1ec1u ch\u1ec9nh \u0111\u01b0\u1ee3c gi\u00e1 tr\u1ecb ng\u00f5 ra.<\/li>\n<li><strong>Ch\u00e2n Q7S:<\/strong> Ch\u1eef S \u1edf \u0111\u00e2y l\u00e0 vi\u1ebft t\u1eaft cho t\u1eeb Serial (n\u1ed1i ti\u1ebfp) ch\u00e2n n\u00e0y th\u01b0\u1eddng \u0111\u01b0\u1ee3c d\u00f9ng khi ta n\u1ed1i ti\u1ebfp c\u00e1c IC 74HC595 v\u1edbi nhau . Khi bit th\u1ee9 9 \u0111\u01b0\u1ee3c \u0111\u01b0a v\u00e0o thanh ghi d\u1ecbch th\u00ec bit cu\u1ed1i c\u00f9ng t\u1ea1i Q7 hi\u1ec7n t\u1ea1i s\u1ebd \u0111\u01b0\u1ee3c d\u1ecbch sang ch\u00e2n Q7S. V\u00e0 c\u1ee9 nh\u01b0 th\u1ebf bit th\u1ee9 10 , 11 , &#8230; th\u00ec bit tr\u00ean con IC n\u1ed1i ti\u1ebfp c\u0169ng d\u1ebd \u0111\u01b0\u1ee3c d\u1ecbch theo chi\u1ec1u nh\u01b0 chi\u1ec1u tr\u00ean t\u1eeb Q0 &#8211;&gt; Q7.<\/li>\n<\/ul>\n<p>M\u1ea1ch m\u1edf r\u1ed9ng ng\u00f5 ra:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/59\/45\/3b\/59453bb6d3131c025e7daa5a7a2696ef.png\" alt=\"mo rong ngo ra\" width=\"283\" height=\"248\" \/><\/p>\n<h3><strong> 4. M\u1ea1ch t\u1ea1o password:<\/strong><\/h3>\n<p>File m\u00f4 ph\u1ecfng Proteus password circuit:<a href=\"https:\/\/drive.google.com\/drive\/folders\/0B-j6C0spiJMiV2JDNlZ5YndNMXc\">link file proteus<\/a><br \/>\nS\u01a1 \u0111\u1ed3 m\u1ea1ch:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s-media-cache-ak0.pinimg.com\/originals\/ef\/13\/9b\/ef139b2a95690b9b0f1f4334f48a06bc.png\" alt=\"mach tao password\" width=\"515\" height=\"231\" \/><br \/>\nCh\u1ee9c n\u0103ng c\u1ee7a m\u1ea1ch n\u00e0y l\u00e0 t\u1ea1o \u0111\u01b0\u1ee3c c\u00e1c t\u00edn hi\u1ec7u ngo\u0303 ra c\u1ee7a con 74HC595 b\u1eb1ng 3 n\u00fat nh\u1ea5n.<br \/>\n<strong>\u00a0Nguy\u00ean l\u00fd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a m\u1ea1ch:<\/strong><br \/>\n+ Khi ta nh\u1ea5n Button Set 1 th\u00ec s\u1ebd \u0111\u01b0a m\u1ee9c logic 1 v\u00e0o ch\u00e2n SDI ( Serial Data Input) \u0111\u1ed3ng th\u1eddi qua diode D1 xu\u1ed1ng n\u1ea1p \u0111i\u1ec7n cho t\u1ee5 C2 sao 1 th\u1eddi gian th\u00ec m\u1ee9c \u0111i\u1ec7n \u00e1p \u0111\u0103t tr\u00ean ch\u00e2n SRCLK l\u00e0 5v ( logic 1) nh\u01b0 v\u1eady t\u1ee5 C2 l\u00e0 \u0111\u1ec3 t\u1ea1o th\u1eddi gian delay gi\u1eefa t\u00edn hi\u1ec7u v\u00e0o v\u00e0 c\u1ea1nh xung c\u1ee7a xung clock \u0111\u1ea3m b\u1ea3o cho IC nh\u1eadn \u0111\u00fang t\u00edn hi\u1ec7u v\u00e0o \u0111\u1ec3 \u0111\u01b0a v\u00e0o b\u1ed9 nh\u1edb \u0111\u1ec7m ch\u1edd khi c\u00f3 m\u1ee9c logic 1 \u0111\u1eb7t v\u00e0o ch\u00e2n RCLK th\u00ec th\u1ef1c hi\u1ec7n \u0111\u01b0a data ra ng\u00f5 ra.<br \/>\n+ C\u00f2n khi ta nh\u1ea5n Button Set 0 th\u00ec ch\u1ec9 c\u00f3 ch\u1ee9c n\u0103ng n\u1ea1p \u0111i\u1ec7n cho t\u1ee5 C2 ch\u1ee9 kh\u00f4ng th\u1ec3 \u0111\u01b0a t\u00edn hi\u1ec7u v\u00e0o ch\u00e2n SDI \u0111\u01b0\u1ee3c do s\u1ef1 ph\u00e2n c\u1ef1c ng\u01b0\u1ee3c c\u1ee7a diode. Do \u0111\u00f3 m\u1ee9c logic \u0111\u01b0a v\u00e0o ch\u00e2n SDI trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y l\u00e0 0 (0v do c\u00f3 \u0111i\u1ec7n tr\u1edf k\u00e9o xu\u1ed1ng mass). IC s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c data l\u00e0 0.<br \/>\n+ Khi nh\u1ea5n SW 3 th\u00ec ta s\u1ebd \u0111\u01b0a m\u1ee9c logic v\u00e0o ch\u00e2n RCLK th\u1ef1c hi\u1ec7n \u0111\u01b0a data l\u01b0u trong b\u1ed9 nh\u1edb \u0111\u1ec7m c\u1ee7a IC ra c\u00e1c ng\u00f5 ra.<br \/>\n+ C\u00f2n kh\u1ed1i m\u1ea1ch reset b\u00ecnh th\u01b0\u1eddng khi kh\u00f4ng c\u00f3 t\u00e1c \u0111\u1ed9ng g\u00ec th\u00ec m\u1ee9c logic \u0111\u01b0a v\u00e0o ch\u00e2n CLR l\u00e0 1 ( ch\u00e2n n\u00e0y t\u00edch c\u1ef1c th\u1ea5p). Khi c\u00f3 s\u1ef1 ki\u1ec7n nh\u1ea5n n\u00fat SW5 th\u00ec ch\u00e2n CLR s\u1ebd \u0111\u01b0\u1ee3c \u0111\u01b0a xu\u1ed1ng mass ( logic 0) -&gt; IC s\u1ebd b\u1ecb reset, to\u00e0n b\u1ed9 ng\u00f5 ra s\u1ebd v\u1ec1 0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gi\u1edbi thi\u1ec7u v\u1ec1 IC logic v\u00e0 IC latch 74HC595 Trong b\u00e0i n\u00e0y ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u v\u1ec1 c\u00e1c lo\u1ea1i IC Logic th\u00f4ng d\u1ee5ng v\u00e0 IC ch\u1ed1t 74HC595. I. C\u00e1c lo\u1ea1i IC Logic: 1. S\u01a1 l\u01b0\u1ee3c v\u1ec1 m\u1ee9c logic: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0M\u1ee9c Logic l\u00e0 1 \u0111\u1ecbnh ngh\u0129a trong to\u00e1n h\u1ecdc v\u1ec1 nh\u1ecb ph\u00e2n. C\u00f3 2 m\u1ee9c l\u00e0 m\u1ee9c \u201c1\u201d (ph\u1ed5 bi\u1ebfn l\u00e0 t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\u1ee9c\u00a0\u0111i\u1ec7n \u00e1p 12*VCC) v\u00e0 m\u1ee9c \u201c0\u201d (t\u01b0\u01a1ng \u1ee9ng v\u1edbi \u0111i\u1ec7n \u00e1p 1\u20442 VCC). M\u1ee9c \u201c1\u201d c\u0169ng c\u00f2n \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 m\u1ee9c HIGH (m\u1ee9c cao). M\u1ee9c \u201c0\u201d c\u0169ng \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 m\u1ee9c LOW (m\u1ee9c \u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/payitforward.edu.vn\/wordpress\/tutorials\/dien-tu-co-ban-cho-sv-nam-nhat\/bai-4\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"parent":2382,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2504","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/pages\/2504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/comments?post=2504"}],"version-history":[{"count":4,"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/pages\/2504\/revisions"}],"predecessor-version":[{"id":2517,"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/pages\/2504\/revisions\/2517"}],"up":[{"embeddable":true,"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/pages\/2382"}],"wp:attachment":[{"href":"https:\/\/payitforward.edu.vn\/wordpress\/wp-json\/wp\/v2\/media?parent=2504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}