{"id":120423,"date":"2022-03-13T16:40:09","date_gmt":"2022-03-13T10:40:09","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=120423"},"modified":"2022-03-13T16:41:09","modified_gmt":"2022-03-13T10:41:09","slug":"atmega88-%d1%8d%d0%bd%d0%ba%d0%be%d0%b4%d0%b5%d1%80-ky-040-arduino-ide","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=120423","title":{"rendered":"Atmega88 + \u044d\u043d\u043a\u043e\u0434\u0435\u0440 (KY-040) (Arduino IDE)"},"content":{"rendered":"<p>\u0421\u0435\u0440\u0438\u044f \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 Atmega48, Atmega88 \u043c\u043e\u0433\u0443\u0442 \u0441\u0442\u0430\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0440\u043e\u0436\u0430\u0432\u0448\u0438\u0445 \u043f\u043b\u0430\u0442 Arduino Nano. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043d\u0430 \u043f\u043b\u0430\u0442\u0430\u0445 Arduino Nano \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u044a\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c Arduino Nano \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0435\u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0412 Atmega48, Atmega88 \u0438\u043c\u0435\u044e\u0442 8 \u043a\u0411 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 Flash \u043f\u0430\u043c\u044f\u0442\u0438, 1\u043a\u0411 SRAM \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 512 \u0431\u0430\u0439\u0442\u0430 EEPROM.<\/p>\n<p>\u041c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b Atmega48, Atmega88 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Arduino IDE, \u0442\u0430\u043a \u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u0441 \u044d\u0442\u0438\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p style=\"text-align: left;\">\u041d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 KY-040 \u043a \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 ATmega88. \u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \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 PCINT0..23.<\/p>\n<table border=\"1\" width=\"761\">\n<tbody>\n<tr>\n<td style=\"width: 329px;\">\n<p style=\"text-align: center;\"><strong>KY-040<\/strong><\/p>\n<p><a class=\"highslide-image\" href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/%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-2020-08-24-163629.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-83119\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/%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-2020-08-24-163629.png\" sizes=\"auto, (max-width: 186px) 100vw, 186px\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-08-24-163629.png 436w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-08-24-163629-200x212.png 200w\" alt=\"\" width=\"186\" height=\"197\" \/><\/a><\/td>\n<td style=\"width: 424px;\"><a class=\"highslide-image\" href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/%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-2020-08-24-164156.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83120\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/%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-2020-08-24-164156.png\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-08-24-164156.png 360w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-08-24-164156-200x164.png 200w\" alt=\"\" width=\"360\" height=\"295\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\"><strong>Atmega88<\/strong><\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/%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-2022-02-19-120644.png\" \/><\/p>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u00a0 Atmega48, Atmega88 \u0432 Arduino IDE \u0412\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0445\u0435\u043c\u0443:<\/p>\n<p><a class=\"highslide-image\" href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/atmegs88.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-113042\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/atmegs88.png\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/atmegs88.png 626w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/atmegs88-200x147.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/02\/atmegs88-500x367.png 500w\" alt=\"\" width=\"626\" height=\"459\" \/><\/a><\/p>\n<p>\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Atmega88 \u0432 \u0441\u0440\u0435\u0434\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Arduino IDE \u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438\u00a0<a href=\"http:\/\/rcl-radio.ru\/?p=113040\">http:\/\/rcl-radio.ru\/?p=113040<\/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 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432:<\/p>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u00a0<strong>PCICR<\/strong>\u00a0\u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0430\u043a\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0432\u0445\u043e\u0434\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\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\u044f:<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160124.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120425\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160124.png\" alt=\"\" width=\"768\" height=\"91\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160124.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160124-200x24.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160124-500x59.png 500w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:\u0413\u0440\u0443\u043f\u043f\u0430 PCIE2 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u0445\u043e\u0434\u044b PCINT[23:16], PCIE1 \u0437\u0430 PCINT[14:8], \u0430 \u0433\u0440\u0443\u043f\u043f\u0430 PCIE0 \u0437\u0430 \u0432\u0445\u043e\u0434\u044b PCINT[7:0].<\/p>\n<p><strong>PCICR |= (1 &lt;&lt; PCIE0);<\/strong>\u00a0\/\/ \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0443 \u0432\u0445\u043e\u0434\u043e\u0432 PCIE0 PCINT0\u20267<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434 PCINT\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0435:<\/p>\n<ul>\n<li>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u00a0<strong>PCMSK2<\/strong>\u00a0\u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434\u044b PCINT[23:16]<\/li>\n<\/ul>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160807.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120431\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160807.png\" alt=\"\" width=\"671\" height=\"79\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160807.png 671w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160807-200x24.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160807-500x59.png 500w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/a><\/p>\n<ul>\n<li>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 <strong>PCMSK1<\/strong>\u00a0\u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434\u044b PCINT[14:8]<\/li>\n<\/ul>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160819.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120430\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160819.png\" alt=\"\" width=\"657\" height=\"79\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160819.png 657w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160819-200x24.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160819-500x60.png 500w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/a><\/p>\n<ul>\n<li>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u00a0<strong>PCMSK0<\/strong>\u00a0\u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434\u044b PCINT[7:0]<\/li>\n<\/ul>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160827.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120429\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160827.png\" alt=\"\" width=\"652\" height=\"73\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160827.png 652w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160827-200x22.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-160827-500x56.png 500w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p>\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\u202623 \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>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u00a0<strong>PCINTx_vect<\/strong>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u044b.<\/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(<b>PCINT0_vect<\/b>){ \/\/ \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 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/<\/p>\n<p><strong>ISR(<b>PCINT1_vect<\/b>){ \/\/ \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 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/<\/p>\n<p><strong>ISR(<b>PCINT2_vect<\/b>){ \/\/ \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 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \/\/ \u2014 \u043a\u043e\u0434 \u2014 \/\/<\/p>\n<p>\u042d\u043d\u043a\u043e\u0434\u0435\u0440 KY-040 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0443\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u0430\u0442\u044b \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u044d\u043d\u043a\u043e\u0434\u0435\u0440 \u0438 3 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0445 (\u043a +5 \u0412) \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u0430 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u043c 10 \u043a\u041e\u043c. \u041f\u0440\u0438 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0440\u0443\u0447\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0432\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 (A \u0438 B), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b \u043f\u043e \u0444\u0430\u0437\u0435.\u00a0 \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u0410 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043a \u043d\u0443\u043b\u044e, \u043c\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0412. \u0415\u0441\u043b\u0438 \u0412 \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u0437\u043d\u0430\u0447\u0438\u0442 \u044d\u043d\u043a\u043e\u0434\u0435\u0440 \u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0435, \u0435\u0441\u043b\u0438 \u0412 \u043d\u0443\u043b\u044c, \u0442\u043e \u044d\u043d\u043a\u043e\u0434\u0435\u0440 \u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u0438\u0432 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438. \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043e\u0431\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f, \u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0441 \u0410 \u0432\u044b\u0445\u043e\u0434\u0430 \u2014 \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0431\u0435\u0437\u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c (\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c) \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u043e\u0432 A \u0438 B\u00a0 (CLK \u0438 DT) \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043a\u0435\u0442\u0447\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u043e\u043f\u0440\u043e\u0441\u0430. \u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u043f\u0443\u0442\u044f\u043c\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u0439\u043c\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0446\u0435\u043b\u0435\u0439.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430:<\/p>\n<pre><span style=\"color: #434f54;\">\/\/ \u00a0ATMEGA88<\/span>\r\n\r\n<span style=\"color: #5e6d03;\">#define<\/span> <span style=\"color: #000000;\">DT<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">PD1<\/span>\r\n<span style=\"color: #5e6d03;\">#define<\/span> <span style=\"color: #000000;\">CLK<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">PD2<\/span>\r\n\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">avr<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">io<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">util<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #d35400;\">delay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n\r\n\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">uint8_t<\/span> <span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">uint8_t<\/span> <span style=\"color: #000000;\">_currValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">int16_t<\/span> <span style=\"color: #000000;\">newPosition<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #d35400;\">position<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #434f54;\">-<\/span><span style=\"color: #000000;\">999<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">enc<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">main<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span> \r\n \u00a0<span style=\"color: #000000;\">PCICR<\/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;\">PCIE2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">PCMSK2<\/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;\">PCINT17<\/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;\">PCINT18<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n \u00a0\u00a0\r\n<span style=\"color: #5e6d03;\">while<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">newPosition<\/span> <span style=\"color: #434f54;\">!=<\/span> <span style=\"color: #d35400;\">position<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #d35400;\">position<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">enc<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">enc<\/span><span style=\"color: #434f54;\">+<\/span><span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">_delay_ms<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">100<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">}<\/span><span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #000000;\">ISR<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PCINT2_vect<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span> \r\n \u00a0<span style=\"color: #00979c;\">bool<\/span> <span style=\"color: #000000;\">pinA<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PIND<\/span> <span style=\"color: #434f54;\">&gt;&gt;<\/span> <span style=\"color: #000000;\">DT<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #00979c;\">bool<\/span> <span style=\"color: #000000;\">pinB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PIND<\/span> <span style=\"color: #434f54;\">&gt;&gt;<\/span> <span style=\"color: #000000;\">CLK<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">_currValueAB<\/span> \u00a0<span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">pinA<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">pinB<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #5e6d03;\">switch<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">_currValueAB<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">case<\/span> <span style=\"color: #000000;\">0b0001<\/span><span style=\"color: #434f54;\">:<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">++<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #5e6d03;\">break<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">case<\/span> <span style=\"color: #000000;\">0b0100<\/span><span style=\"color: #434f54;\">:<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">--<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #5e6d03;\">break<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0<span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">_currValueAB<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\u00a0\r\n \u00a0<span style=\"color: #000000;\">}<\/span> \r\n<\/pre>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043a\u043e\u0434\u0430 \u044d\u043d\u043a\u043e\u0434\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u044b PD1 \u0438 PD2 \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0445\u043e\u0434\u0430\u043c <span style=\"color: #000000;\">PCINT17<\/span>\u00a0<span style=\"color: #000000;\">PCINT18 (\u0433\u0440\u0443\u043f\u043f\u0430 PCIE2), \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 PD1 \u0438\u043b\u0438 PD2 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u0445\u043e\u0434\u043e\u0432 PD1 \u0438 PD2.<\/span><\/p>\n<p>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u00a0<strong>PCINT2_vect <\/strong>\u043f\u0440\u0438 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0435 \u0440\u0443\u0447\u043a\u0438 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0445\u043e\u0434\u043e\u0432 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 CLK \u0438 DT, \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0434\u0432\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 (A \u0438 B). \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <span style=\"color: #000000;\"><strong>newPosition<\/strong> \u0438\u0437 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>enc<\/strong>, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>newPosition<\/strong> \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0427\u0442\u043e \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b \u0437\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u044d\u043d\u043a\u043e\u0434\u0435\u0440.<\/span><\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0441\u043a\u0435\u0442\u0447\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <span style=\"color: #000000;\"><strong>enc,<\/strong> \u043a\u043e\u0440\u043e\u0442\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u043d\u0438 \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442, \u0442\u043e \u043d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0441\u043a\u0435\u0442\u0447 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>enc <\/strong>\u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 LCD1602 \u043e\u0441\u043d\u0430\u0449\u0435\u043d\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u043d\u0430 PCF8574.(\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e &#8212; <a href=\"http:\/\/rcl-radio.ru\/?p=116535\">http:\/\/rcl-radio.ru\/?p=116535<\/a>)<\/span><\/p>\n<pre><span style=\"color: #434f54;\">\/\/ \u00a0ATMEGA88<\/span>\r\n\r\n<span style=\"color: #5e6d03;\">#define<\/span> <span style=\"color: #000000;\">DT<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">PD1<\/span>\r\n<span style=\"color: #5e6d03;\">#define<\/span> <span style=\"color: #000000;\">CLK<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">PD2<\/span>\r\n\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">avr<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">io<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">util<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #d35400;\">delay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">Wire_low<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt; \/\/ http:\/\/forum.rcl-radio.ru\/viewtopic.php?pid=5521#p5521<\/span>\r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">Lcd1602_i2c_low<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt; \/\/ http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/Lcd1602_i2c_low.zip<\/span>\r\n \u00a0<span style=\"color: #000000;\">Lcd1602_i2c_low<\/span> <span style=\"color: #000000;\">lcd<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0x27<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ \u0430\u0434\u0440\u0435\u0441 I2C<\/span>\r\n \u00a0\r\n\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">uint8_t<\/span> <span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">uint8_t<\/span> <span style=\"color: #000000;\">_currValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">volatile<\/span> <span style=\"color: #00979c;\">int16_t<\/span> <span style=\"color: #000000;\">newPosition<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #d35400;\">position<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #434f54;\">-<\/span><span style=\"color: #000000;\">999<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">enc<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">main<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span> \r\n \u00a0<span style=\"color: #000000;\">PCICR<\/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;\">PCIE2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">PCMSK2<\/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;\">PCINT17<\/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;\">PCINT18<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \r\n \u00a0<span style=\"color: #000000;\">wire_set<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">12000000<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">100000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0448\u0438\u043d\u044b I2C<\/span>\r\n \u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">setInit<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">Clear<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/span>\r\n \u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">led<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0<span style=\"color: #434f54;\">\/\/ \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n \u00a0\u00a0\r\n<span style=\"color: #5e6d03;\">while<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">newPosition<\/span> <span style=\"color: #434f54;\">!=<\/span> <span style=\"color: #d35400;\">position<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #d35400;\">position<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">enc<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">enc<\/span><span style=\"color: #434f54;\">+<\/span><span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">Curs<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">4<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">PrintInt<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">enc<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">PrintString<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\" \"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">_delay_ms<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">100<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">}<\/span><span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #000000;\">ISR<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PCINT2_vect<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span> \r\n \u00a0<span style=\"color: #00979c;\">bool<\/span> <span style=\"color: #000000;\">pinA<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PIND<\/span> <span style=\"color: #434f54;\">&gt;&gt;<\/span> <span style=\"color: #000000;\">DT<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #00979c;\">bool<\/span> <span style=\"color: #000000;\">pinB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">PIND<\/span> <span style=\"color: #434f54;\">&gt;&gt;<\/span> <span style=\"color: #000000;\">CLK<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">_currValueAB<\/span> \u00a0<span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">pinA<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">pinB<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #5e6d03;\">switch<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">_currValueAB<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">case<\/span> <span style=\"color: #000000;\">0b0001<\/span><span style=\"color: #434f54;\">:<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">++<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #5e6d03;\">break<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">case<\/span> <span style=\"color: #000000;\">0b0100<\/span><span style=\"color: #434f54;\">:<\/span> <span style=\"color: #000000;\">newPosition<\/span><span style=\"color: #434f54;\">--<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #5e6d03;\">break<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0<span style=\"color: #000000;\">_prevValueAB<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">_currValueAB<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\u00a0\r\n \u00a0<span style=\"color: #000000;\">}<\/span> \r\n<\/pre>\n<blockquote><p>\u0421\u043a\u0435\u0442\u0447 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 1360 \u0431\u0430\u0439\u0442 (16%) \u043f\u0430\u043c\u044f\u0442\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412\u0441\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e 8192 \u0431\u0430\u0439\u0442.<br \/>\n\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 12 \u0431\u0430\u0439\u0442 (1%) \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f 1012 \u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c: 1024 \u0431\u0430\u0439\u0442.<\/p><\/blockquote>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120435\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653.png\" alt=\"\" width=\"785\" height=\"307\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653.png 785w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653-200x78.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653-500x196.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163653-768x300.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/a><\/td>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120434\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658.png\" alt=\"\" width=\"809\" height=\"261\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658.png 809w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658-200x65.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658-500x161.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163658-768x248.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/a><\/td>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-120433\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703.png\" alt=\"\" width=\"842\" height=\"298\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703.png 842w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703-200x71.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703-500x177.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/03\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-03-13-163703-768x272.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0435\u0440\u0438\u044f \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 Atmega48, Atmega88 \u043c\u043e\u0433\u0443\u0442 \u0441\u0442\u0430\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0440\u043e\u0436\u0430\u0432\u0448\u0438\u0445 \u043f\u043b\u0430\u0442 Arduino Nano. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043d\u0430 \u043f\u043b\u0430\u0442\u0430\u0445 Arduino Nano \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u044a\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c Arduino Nano \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0435\u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0412 Atmega48, Atmega88 \u0438\u043c\u0435\u044e\u0442 8 \u043a\u0411 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 Flash \u043f\u0430\u043c\u044f\u0442\u0438, 1\u043a\u0411 SRAM \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 512 \u0431\u0430\u0439\u0442\u0430 EEPROM. \u041c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b Atmega48, Atmega88 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":120424,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17,21,1],"tags":[],"class_list":["post-120423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17","category-21","category-1"],"views":2994,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/120423","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=120423"}],"version-history":[{"count":2,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/120423\/revisions"}],"predecessor-version":[{"id":120437,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/120423\/revisions\/120437"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/120424"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}