{"id":94273,"date":"2021-03-13T11:57:07","date_gmt":"2021-03-13T05:57:07","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=94273"},"modified":"2022-01-08T11:58:12","modified_gmt":"2022-01-08T05:58:12","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-2","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=94273","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>ATtiny2313<\/strong><\/p>\n<hr \/>\n<p><strong>INT0<\/strong>\u00a0\u0438\u00a0<strong>INT1\u00a0<\/strong>\u2014 \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>\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>MCUCR\u00a0<\/strong>\u2014 \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=\"width: 700px;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"text-align: center; width: 50px;\"><strong>7<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>6<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>5<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>4<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>3<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>2<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>1<\/strong><\/td>\n<td style=\"text-align: center; width: 50px;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>ICS11<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>ICS10<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>ICS01<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><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>\u00a0\u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u00a0<strong>INT0<\/strong>,\u00a0\u00a0<strong>ICS11<\/strong>\u00a0\u0438\u00a0<strong>ICS10<\/strong>\u00a0\u0437\u0430\u00a0<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>\u00a0\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>\u00a0\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>\u00a0\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>\u00a0\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>MCUCR |= (1&lt;&lt;ISC01);<\/strong>\u00a0\/\/ \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<div id=\"marketWidget\"><\/div>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 <strong>GIMSK\u00a0<\/strong>\u2014 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/p>\n<table style=\"width: 700px; height: 63px;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"text-align: center; width: 75px;\"><strong>7<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>6<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>5<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>4<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>3<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>2<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>1<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; width: 75px;\"><strong>INT1<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>INT0<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/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>GIMSK |= (1&lt;&lt;INT0);<\/strong>\u00a0\/\/ \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 <\/strong><\/p>\n<table style=\"width: 700px;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"text-align: center; width: 75px;\"><strong>7<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>6<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>5<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>4<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>3<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>2<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>1<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; width: 75px;\"><strong>INTF1<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><strong>INTF0<\/strong><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/td>\n<td style=\"text-align: center; width: 75px;\"><\/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\u00a0<strong>ISR(INT0_vect)<\/strong>\u00a0\u0438\u00a0<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){ \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/}\u00a0<\/strong>\u2014 \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 \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/<\/p>\n<hr \/>\n<blockquote>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/rcl-radio.ru\/?p=94074\">ATtiny2313 + Arduino IDE<\/a><\/strong><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>ATtiny2313 INT0\u00a0\u0438\u00a0INT1\u00a0\u2014 \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 MCUCR\u00a0\u2014 \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":[286],"tags":[],"class_list":["post-94273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-attiny2313-arduino-ide"],"views":4513,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94273","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=94273"}],"version-history":[{"count":6,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94273\/revisions"}],"predecessor-version":[{"id":111151,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94273\/revisions\/111151"}],"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=94273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94273"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}