{"id":94257,"date":"2021-03-13T00:15:52","date_gmt":"2021-03-12T18:15:52","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=94257"},"modified":"2022-01-08T12:04:50","modified_gmt":"2022-01-08T06:04:50","slug":"%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d1%80%d1%8b%d0%b2%d0%b0%d0%bd%d0%b8%d1%8f%d0%bc%d0%b8-int0-%d0%b8-int1","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=94257","title":{"rendered":"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 INT0 \u0438 INT1"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>Atmega328<\/strong><\/p>\n<hr \/>\n<p><strong>INT0<\/strong>\u00a0\u0438\u00a0<strong>INT1\u00a0<\/strong>&#8212; \u044d\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 INT0 \u0438 INT1. \u0412\u043d\u0435\u0448\u043d\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 INT0 \u0438 INT1, \u0430 \u0441\u0430\u043c\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u043a \u043f\u043e \u0444\u0440\u043e\u043d\u0442\u0443, \u0442\u0430\u043a \u0438 \u043f\u043e \u0443\u0440\u043e\u0432\u043d\u044e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout.jpg\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-94295\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout.jpg\" alt=\"\" width=\"1193\" height=\"583\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout.jpg 1193w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout-200x98.jpg 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout-500x244.jpg 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout-768x375.jpg 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/328Pinout-1024x500.jpg 1024w\" sizes=\"auto, (max-width: 1193px) 100vw, 1193px\" \/><\/a><\/p>\n<p>\u0417\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0442\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430.<\/p>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 <strong>EICRA\u00a0<\/strong>&#8212; \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>ICS11<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>ICS10<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>ICS01<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>ICS00<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"MyNormal\">\u0411\u0438\u0442\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430<strong>\u00a0ICS01<\/strong>\u00a0\u0438\u00a0<strong>ICS00<\/strong> \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430 <strong>INT0<\/strong>,\u00a0 <strong>ICS11<\/strong>\u00a0\u0438\u00a0<strong>ICS10<\/strong> \u0437\u0430 <strong>INT1.<\/strong><\/p>\n<p class=\"MyNormal\">\u0422\u0438\u043f\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435:<\/p>\n<ul>\n<li class=\"MyNormal\"><strong>00<\/strong> \u2013 \u041d\u0438\u0437\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 INT0 \u0438\u043b\u0438 INT1<\/li>\n<li class=\"MyNormal\"><strong>01<\/strong> \u2013 \u041b\u044e\u0431\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 INT0 \u0438\u043b\u0438 INT1<\/li>\n<li class=\"MyNormal\"><strong>10<\/strong> \u2013 \u043d\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0444\u0440\u043e\u043d\u0442 \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 INT0 \u0438\u043b\u0438 INT1<\/li>\n<li class=\"MyNormal\"><strong>11<\/strong> \u2013 \u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0444\u0440\u043e\u043d\u0442 \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 INT0 \u0438\u043b\u0438 INT1<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p><strong>EICRA |= (1&lt;&lt;ISC01);<\/strong> \/\/ \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 INT0<\/p>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 <strong>EIMSK\u00a0<\/strong>&#8212; \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>INT1<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>INT0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p><strong>EIMSK |= (1&lt;&lt;INT0);<\/strong> \/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 INT0<\/p>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0444\u043b\u0430\u0433\u043e\u0432<strong> EIFR\u00a0<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>INTF1<\/strong><\/td>\n<td style=\"width: 12.5%; height: 21px; text-align: center;\"><strong>INTF0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043b\u043e\u0433\u0438\u043a\u0430 \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c, \u0442\u043e \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c, \u0438 \u0432\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>&nbsp;<\/p>\n<p>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f <strong>ISR(INT0_vect)<\/strong> \u0438 <strong>ISR(INT1_vect)\u00a0<\/strong><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p><strong>ISR(INT0_vect){ \/\/ &#8212; \u043a\u043e\u0434 &#8212; \/\/} <\/strong>&#8212; \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 INT0 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \/\/ &#8212; \u043a\u043e\u0434 &#8212; \/\/<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><span style=\"color: #00979c;\">bool<\/span> <span style=\"color: #000000;\">i<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">DDRB<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">5<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ PB5 \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434<\/span>\r\n \u00a0<span style=\"color: #000000;\">DDRD<\/span> <span style=\"color: #434f54;\">&amp;=<\/span> <span style=\"color: #434f54;\">~<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ PD2 \u043a\u0430\u043a \u0432\u0445\u043e\u0434 (INT0)<\/span>\r\n \u00a0<span style=\"color: #000000;\">PORTD<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043a PD2 (INT0)<\/span>\r\n \u00a0<span style=\"color: #000000;\">EICRA<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #000000;\">ISC01<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0<span style=\"color: #434f54;\">\/\/\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f INT0 \u043f\u043e \u043d\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0444\u0440\u043e\u043d\u0442\u0443 INT0<\/span>\r\n \u00a0<span style=\"color: #000000;\">EIMSK<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #000000;\">INT0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0<span style=\"color: #434f54;\">\/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f INT0<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">PORTB<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">5<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">; <span style=\"color: #434f54;\">\/\/ PB5 \u0432\u044b\u0445\u043e\u0434 1<\/span><\/span>\r\n <span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">==<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">5000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">; <span style=\"color: #434f54;\">\/\/ \u043a\u0430\u043a \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c 5 \u0441\u0435\u043a\u0443\u043d\u0434<\/span><\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #000000;\">ISR<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">INT0_vect<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">PORTB<\/span> <span style=\"color: #434f54;\">&amp;=<\/span> <span style=\"color: #434f54;\">~<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">5<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">; <span style=\"color: #434f54;\">\/\/ PB5 \u0432\u044b\u0445\u043e\u0434 0<\/span><\/span>\r\n \u00a0<span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n<\/pre>\n<p>\u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 Arduino Uno \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a PB5 \u0433\u043e\u0440\u0438\u0442 \u0432\u0441\u0435\u0433\u0434\u0430, \u0435\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u044c \u0432\u0445\u043e\u0434 INT0 \u043d\u0430 GND, \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043f\u043e\u0433\u0430\u0441\u043d\u0435\u0442 \u043d\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0437\u0430\u0433\u043e\u0440\u0438\u0442\u0441\u044f \u0432\u043d\u043e\u0432\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Atmega328 INT0\u00a0\u0438\u00a0INT1\u00a0&#8212; \u044d\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 INT0 \u0438 INT1. \u0412\u043d\u0435\u0448\u043d\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 INT0 \u0438 INT1, \u0430 \u0441\u0430\u043c\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u043a \u043f\u043e \u0444\u0440\u043e\u043d\u0442\u0443, \u0442\u0430\u043a \u0438 \u043f\u043e \u0443\u0440\u043e\u0432\u043d\u044e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430. \u0417\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0442\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. &nbsp; \u0420\u0435\u0433\u0438\u0441\u0442\u0440 EICRA\u00a0&#8212; \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":94262,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[285],"tags":[],"class_list":["post-94257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-atmega328-arduino-ide"],"views":8641,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94257"}],"version-history":[{"count":15,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94257\/revisions"}],"predecessor-version":[{"id":111152,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94257\/revisions\/111152"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/94262"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94257"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}