{"id":94285,"date":"2021-03-13T20:17:07","date_gmt":"2021-03-13T14:17:07","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=94285"},"modified":"2022-01-08T11:55:14","modified_gmt":"2022-01-08T05:55:14","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-pcint0-7","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=94285","title":{"rendered":"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 PCINT0&#8230;7"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>ATtiny2313<\/strong><\/p>\n<hr \/>\n<p><strong>PCINT0&#8230;7 <\/strong>\u2014 \u044d\u0442\u043e \u0432\u0445\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 PCINT7..0.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/03\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2021-03-01-235639.png\" \/><\/p>\n<p>\u0414\u043b\u044f ATtiny2313 \u0432\u0445\u043e\u0434\u044b PCINT0..7 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432\u0445\u043e\u0434\u0430\u043c PB0..7.<\/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>GIMSK<\/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=\"height: 51;\" border=\"1\" width=\"700\">\n<tbody>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCIE<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0430\u0445 PCINT0&#8230;7 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u0435\u0441\u043b\u0438 PCIE \u0431\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 1. \u041b\u044e\u0431\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 PCINT0&#8230;7 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435.<\/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>GIMSK |= (1 &lt;&lt; PCIE); <\/strong>\/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 PCINT0&#8230;7<\/p>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 <strong>PCMSK<\/strong> &#8212; \u043c\u0430\u0441\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439<\/p>\n<table style=\"height: 51;\" border=\"1\" width=\"700\">\n<tbody>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT7<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT6<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT5<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT4<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT3<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT2<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT1<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCINT0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0438\u0442 \u0438\u0437 PCINT0&#8230;7 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0432\u044b\u0432\u043e\u0434. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0438\u0442\u0430 \u0438\u0437 PCINT0&#8230;7 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>\u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f.<\/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> PCMSK |= (1&lt;&lt;PCINT0) | (1 &lt;&lt; PCINT3); <\/strong>\/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u0430\u043c PCINT0 \u0438 PCINT3 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439.<\/p>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0444\u043b\u0430\u0433\u043e\u0432 &#8212; <strong>EIFR<\/strong><\/p>\n<table style=\"height: 51;\" border=\"1\" width=\"700\">\n<tbody>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><strong>7<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>6<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>5<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>4<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>3<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>2<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>1<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><strong>PCIF<\/strong><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<td style=\"width: 70px; text-align: center;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 PCINT0&#8230;7 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0444\u043b\u0430\u0433 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f PCIF. \u042d\u0442\u043e\u0442 \u0444\u043b\u0430\u0433 \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\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>PCINT_vect<\/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(PCINT_vect){ \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/} <\/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 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><span style=\"color: #00979c;\">byte<\/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;\">DDRD<\/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;\">\/\/ \u00a0PD5 - \u0432\u044b\u0445\u043e\u0434<\/span>\r\n \u00a0<span style=\"color: #000000;\">DDRB<\/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;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><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;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u0432\u0445\u043e\u0434 PCINT0 \u043a\u0430\u043a \u0432\u0445\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440<\/span>\r\n \u00a0<span style=\"color: #000000;\">DDRB<\/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;\">3<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><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;\">3<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u0432\u0445\u043e\u0434 PCINT3 \u043a\u0430\u043a \u0432\u0445\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440<\/span>\r\n \u00a0\r\n \u00a0<span style=\"color: #000000;\">GIMSK<\/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;\">PCIE<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 PCIN<\/span>\r\n\r\n \u00a0<span style=\"color: #000000;\">PCMSK<\/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;\">PCINT0<\/span><span style=\"color: #000000;\">)<\/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;\">PCINT3<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u044b\u0445\u043e\u0434\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/span>\r\n\r\n<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\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;\">5<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ PD5 \u0432\u044b\u0445\u043e\u0434 1<\/span>\r\n \u00a0\u00a0<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> <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>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #000000;\">ISR<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PCINT_vect<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">PORTD<\/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>\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\r\n<\/pre>\n<p>\u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u0432\u044b\u0445\u043e\u0434\u0443 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 PCINT0 \u0438\u043b\u0438 PCINT3 \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>ATtiny2313 PCINT0&#8230;7 \u2014 \u044d\u0442\u043e \u0432\u0445\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0430\u0445 PCINT7..0. \u0414\u043b\u044f ATtiny2313 \u0432\u0445\u043e\u0434\u044b PCINT0..7 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432\u0445\u043e\u0434\u0430\u043c PB0..7. \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 GIMSK &#8212; \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f 7 6 5 4 3 2 1 0 PCIE \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0430\u0445 PCINT0&#8230;7 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u0435\u0441\u043b\u0438 PCIE \u0431\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 1. [&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-94285","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-attiny2313-arduino-ide"],"views":3921,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94285","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=94285"}],"version-history":[{"count":5,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94285\/revisions"}],"predecessor-version":[{"id":111149,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/94285\/revisions\/111149"}],"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=94285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}