{"id":276534,"date":"2016-03-20T19:54:02","date_gmt":"2016-03-20T16:54:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=276534"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=276534","title":{"rendered":"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440 \u043d\u0430 AM2302 (DHT22), ATtiny13 \u0438 MAX7219"},"content":{"rendered":"<p>       \u0426\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 AM2302 (DHT22) \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 DIY, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u043d\u0435\u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a\u0438, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u041a\u0438\u0442\u0430\u0435) \u043e\u043d \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u0443\u044e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442 \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 (\u0442\u0440\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u0435). \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 Arduino \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\/\u0421++. \u042d\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438\u043b\u0438 \u00ab\u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443\u00bb \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u043a \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443. \u041d\u043e \u0435\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0439 \u043f\u043b\u0430\u0442\u044b Arduino (\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u041c\u041a \u0441 \u043f\u0430\u0440\u043e\u0439 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0432\u044b\u0432\u043e\u0434\u043e\u0432) \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440\u0435 (\u0434\u0430\u043b\u0435\u0435 \u2013 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435), \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u00ab\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445\u00bb \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u2014 ATtiny13 \u0441 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438 \u2013 1\u041a\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, 64 \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u041e\u0417\u0423 \u0438 5-\u044e (6-\u044e, \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0431\u0440\u043e\u0441\u0430) \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u043c\u0438 \u0432\u044b\u0432\u043e\u0434\u0430\u043c\u0438. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438 AVR \u0438 \u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u043e \u0441\u0442\u0430\u0442\u044c\u044f, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438. \u041a\u0441\u0442\u0430\u0442\u0438, \u043e \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2013 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435.<\/p>\n<p>  <a name=\"habracut\"><\/a>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c. \u0414\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d 8-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 7-\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043e\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438. \u0422\u0430\u043a\u043e\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043c\u0435\u0435\u0442 16 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 (8 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 + 8 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432), \u0447\u0442\u043e \u044f\u0432\u043d\u043e \u00ab\u043d\u0435 \u043f\u043e\u0434 \u0441\u0438\u043b\u0443\u00bb \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 ATtiny13. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0444\u0438\u0440\u043c\u0430 Maxim \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0443 MAX7219, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u2013 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 8 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432 \u043f\u043b\u044e\u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 SPI. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441 \u044d\u0442\u043e\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u043e\u0439 \u0432\u0435\u0441\u044c \u043d\u0430\u0448 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u041c\u041a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0435\u0433\u043e \u0442\u0440\u0435\u0445 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 (\u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0437\u0435\u043c\u043b\u044e \u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0435). \u0412\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441 5-\u044e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u043c\u0438 \u0432\u044b\u0432\u043e\u0434\u0430\u043c\u0438. \u041a \u0441\u043b\u043e\u0432\u0443, \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u0438\u0437 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430, \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0438 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b \u0432 \u0441\u0431\u043e\u0440\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0432\u0441\u0435\u0433\u043e $1.3 \u043d\u0430 aliexpress.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0448\u0435, AM2302. \u041e\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u041c\u041a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0438\u0437 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 5-\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u0445 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u041c\u041a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e 4, \u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0439\u0441\u044f 5-\u0439 \u043c\u043e\u0436\u043d\u043e \u00ab\u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c\u00bb \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u0422\u0430\u043a\u0436\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0435\u0441\u0442\u044c HVSP-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440, \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0431\u0440\u043e\u0441\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u0430\u043a 6-\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434, \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u041c\u041a.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u0441\u044f \u0441\u0445\u0435\u043c\u0430 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/440\/dad\/75b\/440dad75baa0497d8435fc3a0959bd12.png\" alt=\"\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u041c\u041a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e, \u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 (\u043f\u0438\u043d\u043e\u0432), \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0442 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u2013 \u0447\u0438\u0441\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0438 \u0441\u0434\u0435\u043b\u0430\u043d, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u043a\u0443\u0434\u0430 \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u043a \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435\u00bb. \u0422\u0430\u043a \u0447\u0442\u043e \u0441\u043c\u0435\u043b\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b, \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u0434\u0435 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u043d\u043e\u043c\u0435\u0440. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u2013 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u041c\u041a \u0447\u0435\u0440\u0435\u0437 SPI \u2013 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442, \u0442.\u043a. \u0432\u044b\u0445\u043e\u0434\u044b \u0434\u0432\u0443\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u0435, \u0447\u0442\u043e \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0432\u0441\u0435 \u044f\u0441\u043d\u043e, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434\u0430. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0441 \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u00ab\u0432\u044b\u0437\u043e\u0432\u00bb \u2014 ATtiny13 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432, \u0442.\u0435. \u0432\u0441\u044e \u0438\u0445 \u043b\u043e\u0433\u0438\u043a\u0443 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SPI \u0434\u043b\u044f MAX7219 \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430, \u0442.\u043a. \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439, \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u0434\u043e 10\u041c\u0433\u0446, \u0434\u0430 \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0445\u0435\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0432\u044b\u0432\u043e\u0434. \u0410 \u0432\u043e\u0442 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0410\u041c2302 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u043c, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0438\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c. \u0422\u0443\u0442 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0410\u041c2302 \u0438\u0434\u0443\u0442 \u043f\u043e \u00ab\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u0438\u00bb \u2014 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043e\u0434\u043d\u0438\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043e\u043d\u043e \u0432\u0440\u044f\u0434 \u043b\u0438 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u043d\u0430 \u041c\u041a \u0432\u043e\u0437\u043b\u043e\u0436\u0435\u043d\u044b \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044f \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432), \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0432\u0435\u0441\u044c \u0446\u0438\u043a\u043b \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0442 4-\u0445 \u0434\u043e 6-\u0442\u0438 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 (\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445). \u041d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0435\u0442, \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u00ab\u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435\u00bb, \u0442.\u0435. \u043d\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u0445.<\/p>\n<p>  \u0414\u043b\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b ATtiny13 \u0442\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e RC-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430, \u0432\u044b\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043e\u043b\u043e 9.6\u041c\u0433\u0446. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442, \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 128 \u0442\u0430\u043a\u0442\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043e\u043f\u0440\u043e\u0441\u0430 \u0410\u041c2302 75\u041a\u0413\u0446 \u0438\u043b\u0438 13.33 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438. \u041f\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0410\u041c2302 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u043d\u0430 \u0435\u0433\u043e \u0432\u044b\u0445\u043e\u0434\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 26 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434, \u0447\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043e\u043f\u0440\u043e\u0441\u0430 \u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, 128 \u0442\u0430\u043a\u0442\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c-\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u043f\u0440\u043e\u0441\u0430, \u043d\u043e AVR \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u0437\u0430 1 \u0442\u0430\u043a\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u0440\u0438 \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0435\u0449\u0435 \u0438 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>  \u0410\u041c2302 \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0447\u0430\u0449\u0435, \u0447\u0435\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u0434\u0432\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0447\u0430\u0449\u0435 \u2013 \u0434\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0435\u043c\u0443 \u0434\u0430\u0434\u0443\u0442 1-2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b (\u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u2013 2) \u043d\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435 \u0434\u0430\u0442\u0447\u0438\u043a \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043e\u043f\u0440\u043e\u0441\u0430 \u043b\u0435\u0433\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0410\u041c2302 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0443\u0442 \u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435) \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u2013 \u0434\u0432\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 0.5 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0443\u0441\u0440\u0435\u0434\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 8-\u043c\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u043b\u0438.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043a\u043e\u0434\u0443. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 asm \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 hex-\u0444\u0430\u0439\u043b \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0437\u0434\u0435\u0441\u044c \u0436\u0435 \u044f \u043f\u043e\u044f\u0441\u043d\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. \u0411\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043e\u043a\u043d\u0435 \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0443\u0434\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0434\u0435\u0442 \u0434\u0432\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"cpp\">#define SKIPNEXT1W (PC + 2) #define DS(var) Y + var - _dataStart <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 16\u0431\u0438\u0442 (1 \u0441\u043b\u043e\u0432\u043e, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 AVR), \u0442.\u0435. \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0435 \u0431\u0435\u0437 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u0435\u0442\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"cpp\">\tinc\tR16 \tcpi\tR16, 5 \tbrne\tSKIPNEXT1W \tdec\tR16 \t... <\/code><\/pre>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043f\u0435\u0440\u0432\u044b\u043c 64-\u043c \u0431\u0430\u0439\u0442\u0430\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u041c\u041a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e 16-\u0431\u0438\u0442\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u0417\u0434\u0435\u0441\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u2013 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u041e\u0417\u0423 \u041c\u041a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b lds\/sts, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 2 \u0441\u043b\u043e\u0432\u0430 (32 \u0431\u0438\u0442\u0430) \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0437\u0430 2 \u0442\u0430\u043a\u0442\u0430. \u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0434\u043e 64\u041a\u0431 (\u0431\u0435\u0437 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439) \u041e\u0417\u0423. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 32 \u0431\u0438\u0442\u0430 (4 \u0431\u0430\u0439\u0442\u0430) \u2013 \u044d\u0442\u043e \u0443\u0436\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043c\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u041c\u041a \u0441 \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432\u0441\u0435\u0433\u043e 1\u041a\u0431. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 Y \u041c\u041a \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u041e\u0417\u0423 (0x60 \u0434\u043b\u044f ATtiny13), \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u044d\u0442\u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442, \u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0432\u044b\u043c 64 \u0431\u0430\u0439\u0442\u0430\u043c \u041e\u0417\u0423 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e\u0439 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 Y, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"cpp\">\tldd\tR16, Y + 6 <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u0430\u043d\u0434\u044b ldd\/std \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0437\u0430 2 \u0442\u0430\u043a\u0442\u0430, \u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 16 \u0431\u0438\u0442 (2 \u0431\u0430\u0439\u0442\u0430), \u0442.\u0435. \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 lds\/sts \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043e\u0431\u044a\u0435\u043c\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043c\u0435\u0442\u043a\u0430 _dataStart:<\/p>\n<pre><code class=\"cpp\">.dseg _dataStart: ... testVar:\t\t.byte\t1 <\/code><\/pre>\n<p>  \u0410 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0440\u043e\u0441 DS (\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 Data Segment):<\/p>\n<pre><code class=\"cpp\">\tldd\tR16, DS (testVar) <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u044d\u0442\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">\tldd\tR16, Y + testVar - _dataStart <\/code><\/pre>\n<p>  \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043d\u0443\u0436\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u0430\u043c\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b ldd, \u0430 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0435 64 \u0431\u0430\u0439\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. \u041d\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 ATtiny13, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 64 \u0431\u0430\u0439\u0442\u0430 \u041e\u0417\u0423 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u043f\u0430\u043c\u044f\u0442\u044c. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u041c\u041a, \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u041e\u0417\u0423, \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043f\u0435\u0440\u0432\u044b\u0445 64-\u0445 \u0431\u0430\u0439\u0442\u0430\u0445 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0441\u043f\u043b\u0430\u0442\u0430 \u0437\u0430 \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u2013 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 Y (\u0434\u0432\u0430 8-\u0431\u0438\u0442\u043d\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 R28 \u0438 R29), \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0438 \u0432 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u043c\u0435\u0440\u0430 \u0431\u0438\u0442\u043e\u0432 \u043f\u043e\u0440\u0442\u0430 \u0412 (\u0438\u043c\u0435\u043d\u043d\u043e \u0431\u0438\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0430\u0439\u0442\u0430, \u043d\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b), \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0441\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435, \u043d\u043e\u043c\u0435\u0440\u0430 \u0431\u0438\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u041c\u041a AVR \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0435 16 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 R0 \u2013 R15 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u00ab\u043d\u0435\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c\u0438\u00bb, \u0441 \u043d\u0438\u043c\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u043e\u043f\u0435\u0440\u0430\u043d\u0434 \u2013 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, ldi \u0438\u043b\u0438 subi. \u0422.\u0435. \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0436\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442 0 \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u044d\u0442\u0438\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432, \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440:<\/p>\n<pre><code class=\"cpp\">\tldi\tR16, 32 \tmov\tR0, R16 <\/code><\/pre>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0447\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u00ab\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c\u00bb. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u043c\u0435\u0435\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 .def, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0443\u044e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"cpp\">.def\tR_TS = R0 <\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 R0 \u0432\u0441\u0435\u0433\u0434\u0430 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u041c2302, \u0440\u0435\u0433\u0438\u0441\u0442\u0440 R1 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u0438\u0435\u043c\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430, R2 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, R3 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 100\u0413\u0446, \u0430 R4 \u0438 R5 \u2013 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0430\u0439\u043c\u0435\u0440\u0430 75\u041a\u0413\u0446, \u0441\u0447\u0438\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u0442 749 \u0434\u043e 0.<\/p>\n<p>  \u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u041c\u041a \u043f\u043e\u0434\u0435\u043b\u0435\u043d \u043d\u0430 4 \u0447\u0430\u0441\u0442\u0438 \u2013 \u0431\u043b\u043e\u043a \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0441 \u0410\u041c2302 \u0434\u0430\u043d\u043d\u044b\u0445 (5 \u0431\u0430\u0439\u0442), \u0431\u0443\u0444\u0435\u0440 \u0434\u043b\u044f \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u043f\u0435\u0447\u0430\u0442\u0438 \u0447\u0438\u0441\u043b\u0430 (4 \u0431\u0430\u0439\u0442\u0430), \u0431\u0443\u0444\u0435\u0440 \u0434\u043b\u044f \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u0438 \u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440\u0430 \u043d\u0430 8 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (8*2*2 = 32 \u0431\u0430\u0439\u0442\u0430) \u0438 \u0441\u0442\u0435\u043a \u041c\u041a (\u0435\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0430 \u0432\u0441\u044f \u043e\u0441\u0442\u0430\u0432\u0448\u0430\u044f\u0441\u044f \u043f\u0430\u043c\u044f\u0442\u044c, \u0442.\u0435. 23 \u0431\u0430\u0439\u0442\u0430). \u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u0442\u0435\u043a \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435, \u0438 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043d\u043e \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0443\u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0443 \u043a\u043e\u0434\u0430. \u041e\u043d \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0434\u043b\u044f ATtiny13 \u044d\u0442\u043e 10 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u0435\u043a\u0442\u043e\u0440 \u0441\u0431\u0440\u043e\u0441\u0430. \u041d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 reti, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 (\u0430 \u0438\u0445 \u0434\u0432\u0430) \u2013 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. \u0422\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0432\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u2013 \u044d\u0442\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e OCRA. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043e\u0434\u043d\u0438\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u043d\u0430 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a\u043e\u0440\u043e\u0447\u0435 (\u043d\u0435 \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0441 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043d\u0430 \u0421\u0422\u0421).<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0438\u0434\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0446\u0438\u0444\u0440 \u0432 \u043a\u043e\u0434\u044b \u0434\u043b\u044f \u0437\u0430\u0436\u0438\u0433\u0430\u043d\u0438\u044f 7-\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0445 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0432 MAX7219 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f.<br \/>  \u0417\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u0430\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u0440\u043e\u0441\u0430 \u041c\u041a. \u041e\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u0441\u0442\u0435\u043a\u0430 \u041c\u041a, \u0441\u0442\u043e\u0440\u043e\u0436\u0435\u0432\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 watchdog (\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b), \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u041c\u041a, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u0440\u0442\u043e\u0432 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430, MAX7219 \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u041c\u041a. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0436\u0434\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043f\u043e\u043a\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0410\u041c2302 (\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0433\u0430\u0441\u043d\u0443\u0449\u0438\u0445 \u0437\u043d\u0430\u043a\u043e\u0432 \u00ab\u043c\u0438\u043d\u0443\u0441\u00bb \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435) \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u0432\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u0410\u041c2302 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 R_TS (R0). \u0411\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u043d\u0430\u0447\u043d\u0435\u0442 \u0446\u0438\u043a\u043b \u043e\u043f\u0440\u043e\u0441\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u0430. \u041f\u043e \u0435\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0432 \u0431\u0438\u0442\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 R_TS \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 TMS_NONE, \u0430 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u041c\u041a \u0432 \u0440\u0435\u0436\u0438\u043c \u0441\u043d\u0430 (sleep) \u0438 \u0436\u0434\u0435\u0442 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u043e\u043f\u0440\u043e\u0441\u0430.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u043e\u0441\u0430 \u0431\u0438\u0442 3 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0431\u044b\u043b\u0438 \u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1) \u0438\u043b\u0438 \u0436\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0). \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0438, \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043e\u0448\u0438\u0431\u043a\u0438. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a, \u0438\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0434\u0440\u044f\u0434, \u0438 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0430\u0432\u043d\u044b\u043c \u0442\u0440\u0435\u043c, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u00abSn Error\u00bb, \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u043e \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u0438\u043b\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0422\u0430\u043a\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u0435\u043d\u0441\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043c\u0435\u0441\u0442\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438.<\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0434\u0432\u0438\u0433\u0430\u044e\u0442\u0441\u044f \u0432\u0432\u0435\u0440\u0445, \u0438 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0435\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u043e. \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435. \u0422\u0443\u0442 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0410\u041c2302 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043d\u0435 \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u0434\u0435, \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u043c\u0438, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0438\u0442\u0430 \u0435\u0451 \u0437\u043d\u0430\u043a\u0430. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041c\u041a, \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0444\u0435\u0440 \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u043e\u0441\u044c\u043c\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439. \u0414\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0435 8 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0433\u0440\u0430\u0434\u0443\u0441\u0430, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u0435 \u0438\u0437 8-\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0430\u0433\u043e\u0442\u0432\u043e\u0440\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u2013 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 0.1 \u0433\u0440\u0430\u0434\u0443\u0441\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>  \u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab \u0445.\u0445\u00bb, \u00ab \u0445\u0445.\u0445\u00bb, \u00ab\u0445\u0445\u0445.\u0445\u00bb, \u00ab- \u0445.\u0445\u00bb \u0438\u043b\u0438 \u00ab-\u0445\u0445.\u0445\u00bb \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab \u0445.\u0445\u00bb \u0438\u043b\u0438 \u00ab \u0445\u0445.\u0445\u00bb. \u0414\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e\u0441\u044f \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0425 \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 (\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043a\u043e\u0434\u0430\u043c\u0438 \u0434\u043b\u044f 7-\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430), \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f printDecX. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u041c\u041a \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0438 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 1000, 100 \u0438 10. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u2013 9999, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0435\u0451 \u0432\u044b\u0437\u043e\u0432\u0435 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0425 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0435\u0440\u043d\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0444\u043b\u0430\u0433 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MAX7219 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f maxWriteWord, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 XL \u041c\u041a \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 MAX, \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 XH. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b \u0437\u0430\u043d\u043e\u0432\u043e. \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f wait100Hz, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f R16*0.01c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 R_TICK100, \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044e \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 am2302proc, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 R_TS (R0) \u041c\u041a. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0436\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043e\u0442 \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0432\u0441\u0435 40 \u0431\u0438\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u0432\u043d\u044f \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u043e\u0431\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f (\u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u041c\u041a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430). \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u044f (TMS_NONE), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u041c\u041a \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u043e\u043a\u043e\u043b\u043e 3 \u043c\u0441), \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043f\u043e\u043c\u0435\u0445\u043e\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u2013 \u0435\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043d\u0430\u044f \u043f\u043e\u043c\u0435\u0445\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043b\u0438\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u043e\u0440\u0442\u0430, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0414\u043b\u044f \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043a\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0441\u0430\u043c\u043e\u0439 \u043b\u0443\u0447\u0448\u0435\u0439, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0434\u0430\u0442\u0447\u0438\u043a \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043a \u041c\u041a \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0435\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u043b\u0438\u043d\u044b.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u0441\u043e\u0431\u0440\u0430\u043d \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ff3\/452\/dec\/ff3452dec04b4fd7b60f8ee7dcada413.jpg\" alt=\"\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430\"\/><\/p>\n<p>  \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0432 \u0435\u0433\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043e\u0442 \u0411\u041f \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>  \u0422\u0435\u043a\u0443\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 75% \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u041c\u041a. \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443? \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0441\u0432\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f (\u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 MAX7219) \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u0438\u043b\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0443 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 \u041c\u041a \u0410\u0426\u041f \u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434), \u043a\u043e\u043c\u0443-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b. \u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u043c\u0435\u0441\u0442\u043e \u0435\u0449\u0435 \u0435\u0441\u0442\u044c. \u0411\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043c\u0435\u043d\u0443 \u041c\u041a \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439, \u0438\u043c\u0435\u044e\u0449\u0438\u0439 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u0445 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u2013 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u041c\u041a \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0438 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0432 RESET. \u0422\u0430\u043a\u0436\u0435 \u0434\u0432\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 SPI (DATA \u0438 CLK) \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0442.\u043a. \u043f\u043e\u043a\u0430 \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0435 CS \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u041c\u0410\u04257219 \u0432\u0430\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0441 \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0430 \u0432\u044b\u0441\u043e\u043a\u0438\u0439) \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u044d\u0442\u0438\u0445 \u0432\u044b\u0432\u043e\u0434\u0430\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u044e\u0442. \u0422.\u0435., \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u041c\u041a \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, ATtiny85, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0443 Real Time Clock (RTC) \u0438 \u0434\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a.<\/p>\n<p>  \u041c\u043e\u0435\u0439 \u0436\u0435 \u0446\u0435\u043b\u044c\u044e \u0431\u044b\u043b\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0435\u0433\u043e \u0441\u0435\u0431\u0435 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0422\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> \/\/ ********************************************* \/\/ *** Simple digital thermometer\/hygrometer *** \/\/ ********************************************* \/\/ ***         (c) SD, 14.03.2016            *** \/\/ *********************************************  \/\/ Based on ATtiny13, AM2303 and MAX7219  \/\/ ************** \/\/ *** Clocks *** \/\/ **************  \/\/ MCU clock frequency is 9.6MHz (internal oscillator) \/\/ Timer frequency is 75KHz = 9.6MHz\/128 \/\/ (13.3 us between interrupts)  #define SKIPNEXT1W (PC + 2) #define DS(var) Y + var - _dataStart  \/\/ ************ \/\/ *** Pins *** \/\/ ************  \/\/ MAX7219 output pins .equ\tMAX_DIN = 0 .equ\tMAX_CS = 1 .equ\tMAX_CLK = 4  \/\/ AM2302 input pin .equ\tAM2302_PIN = 3  \/\/ MAX7219 registers .equ\tMAX_DECODE = 0x09 .equ\tMAX_INTENSITY = 0x0A .equ\tMAX_SCANLIMIT = 0x0B .equ\tMAX_SHUTDOWN = 0x0C .equ\tMAX_DISPTEST = 0x0F  \/\/ Temperature measurement state register \/\/ Bits 0 - 2 define the byte number being received \/\/ Bit 3 is set when there are valid data received \/\/ Bits 4 - 7 define the current receiver state .def\tR_TS = R0  \/\/ Temperature measurement tick .def\tR_TT = R1  \/\/ Temperature data register .def\tR_TD = R2  \/\/ Temperature measurement states .equ\tTMS_NONE =\t\t\t0x00\t\/\/ TMS_NONE - do nothing an wait until \t\t\t\t\t\t\t\t\t\/\/ somebody changes the state .equ\tTMS_START =\t\t\t0x10\t\/\/ Start of the measurement cycle .equ\tTMS_ST_LOW =\t\t0x20\t\/\/ Initial low signal is being sent \t\t\t\t\t\t\t\t\t\/\/ (1 ms = 75 timer ticks) .equ\tTMS_WRSP_LOW =\t\t0x30\t\/\/ Initial low signal has been sent, \t\t\t\t\t\t\t\t\t\/\/ waiting for the response low signal .equ\tTMS_WRSP_HIGH =\t\t0x40\t\/\/ Response low signal has been received, \t\t\t\t\t\t\t\t\t\/\/ waiting for the response high signal .equ\tTMS_W1ST_BIT_LOW =\t0x50\t\/\/ Waiting for the first bit low signal .equ\tTMS_WBIT_HIGH =\t\t0x60\t\/\/ Waiting for the bit high signal .equ\tTMS_WBIT_LOW =\t\t0x70\t\/\/ Waiting for the bit low signal .equ\tTMS_WHIGH =\t\t\t0x80\t\/\/ Waiting for the final high signal  \/\/ Timer 100Hz tick counter \/\/ (counts upwards from 0 to 255) .def\tR_TICK100 = R3  \/\/ Timer 16bit 75KHz tick counter \/\/ (counts downwords from 749 to 0) .def\tR_TICKL = R4 .def\tR_TICKH = R5  \/\/ ************ \/\/ *** Data *** \/\/ ************  .dseg _dataStart:\t\t\t\t\t\t\t\/\/ Data start label  tempData:\t\t\t.byte\t5\t\t\/\/ Data, received from the AM2302 sensor displayData:\t\t.byte\t4\t\t\/\/ Decimal printing result  .equ\tDATA_BUF_SIZE =\t\t8\t\t\/\/ AM2302 data buffer size in samples \t\t\t\t\t\t\t\t\t\/\/ (each sample is 4 bytes)  dataBuffer:\t\t\t.byte\tDATA_BUF_SIZE*4  .cseg .org\t0  \t\/\/ *** Interrupts ***  \t\/\/ Reset Handler \trjmp\tstart  \t\/\/ IRQ0 Handler \treti \t \t\/\/ PCINT0 Handler \treti  \t\/\/ Timer0 Overflow Handler \trjmp\ttimerOvfl  \t\/\/ EEPROM Ready Handler \treti \t \t\/\/ Analog Comparator Handler \treti  \t\/\/ Timer0 CompareA Handler \trjmp\ttimerCompA  \t\/\/ Timer0 CompareB Handler \treti  \t\/\/ Watchdog Interrupt Handler \treti  \t\/\/ ADC Conversion Handler \treti  \/\/ Table to convert decimal digit into 7-segment code hexTable: \t.db\t\t0b01111110, 0b00110000, 0b01101101, 0b01111001 \t.db\t\t0b00110011, 0b01011011, 0b01011111, 0b01110010 \t.db\t\t0b01111111, 0b01111011  start: \tcli \tldi\t\tR16, RAMEND \tout\t\t(SPL), R16  \t\/\/ Init watchdog (4s interval) \twdr \tldi\t\tR16, (1 &lt;&lt; WDCE) | (1 &lt;&lt; WDE) \tout\t\t(WDTCR), R16 \tldi\t\tR16, (1 &lt;&lt; WDE) | (1 &lt;&lt; WDP3) \tout\t\t(WDTCR), R16  \t\/\/ Init registers \tldi\t\tYL, low (_dataStart) \tldi\t\tYH, high (_dataStart) \tclr\t\tR_TS \tclr\t\tR_TT \tclr\t\tR_TICKL \tclr\t\tR_TICKH \tclr\t\tR_TICK100  \t\/\/ Init ports \tout\t\t(PORTB), R_TS \tldi\t\tR16, (1 &lt;&lt; MAX_DIN) | (1 &lt;&lt; MAX_CS) | (1 &lt;&lt; MAX_CLK) \tout\t\t(DDRB), R16  \t\/\/ Init LED driver \t\/\/ Set all digits to &quot;-&quot; \tldi\t\tXL, 0b00000001 \tldi\t\tXH, 1 init1: \trcall\tmaxWriteWord \tcpi\t\tXH, 9 \tbrne\tinit1  \t\/\/ Set control registers \tldi\t\tXL, 0\t\t\t\t\t\/\/ Decode \trcall\tmaxWriteWord \tldi\t\tXL, 4\t\t\t\t\t\/\/ Intensity \trcall\tmaxWriteWord \tldi\t\tXL, 7\t\t\t\t\t\/\/ Scan limit \trcall\tmaxWriteWord \tldi\t\tXL, 1\t\t\t\t\t\/\/ Shutdown \trcall\tmaxWriteWord \tldi\t\tXH, 0x0F \tldi\t\tXL, 0\t\t\t\t\t\/\/ Display test \trcall\tmaxWriteWord  \t\/\/ Init timer for 1 interrupt each 128 CPU cycles \tldi\t\tR16, 127 \tout\t\t(OCR0A), R16 \tldi\t\tR16, 0b00000110 \tout\t\t(TIMSK0), R16 \tldi\t\tR16, 0b00000001 \tout\t\t(TCCR0B), R16  \t\/\/ First part of the initialization is done. \t\/\/ Enable interrupts \tsei  \t\/\/ Wait 2 sec (while AM2302 initialize itself) \t\/\/ with little animation \tldi\t\tXH, 1 \tldi\t\tXL, 0 init2: \tldi\t\tR16, 25 \trcall\twait100Hz \trcall\tmaxWriteWord \tcpi\t\tXH, 9 \tbrne\tinit2  \t\/\/ R6 will contain the number of \t\/\/ measurement values received \tclr\t\tR6  \t\/\/ R7 will contain the number of \t\/\/ continious errors \tclr\t\tR7  loop: \t\/\/ Reset watchdog timer \twdr  \t\/\/ Initiate measurement \tldi\t\tR16, TMS_START \tmov\t\tR_TS, R16  loop1: \t\/\/ Wait for the TMS_NONE state \t\/\/ which indicates that the measurement \t\/\/ is done \tsleep  \tmov\t\tR16, R_TS \tandi\tR16, 0xF0 \tbrne\tloop1  \t\/\/ Do we have the valid data? \tsbrs\tR_TS, 3 loop_error1: \trjmp\tloop_error  \t\/\/ Check control sum of the received data \tldd\t\tR16, DS (tempData) \tldd\t\tZL, DS (tempData + 1) \tadd\t\tR16, ZL \tldd\t\tZL, DS (tempData + 2) \tadd\t\tR16, ZL \tldd\t\tZL, DS (tempData + 3) \tadd\t\tR16, ZL \tldd\t\tZL, DS (tempData + 4) \tcp\t\tR16, ZL \tbrne\tloop_error1  \t\/\/ We have valid new measurement data, \t\/\/ reset error count \tclr\t\tR7  \t\/\/ Move up data in the buffer \t\/\/ and count the sum at the same time. \t\/\/ R12:R13 will contain the humidity value and \t\/\/ R14:R15 the temperature value \tclr\t\tR12 \tclr\t\tR13 \tclr\t\tR14 \tclr\t\tR15 \tldi\t\tZL, low (dataBuffer + (DATA_BUF_SIZE - 2)*4) \tldi\t\tZH, 0 buf1: \tldd\t\tR16, Z + 0 \tldd\t\tR17, Z + 1 \tstd\t\tZ + 4, R16 \tstd\t\tZ + 5, R17 \tadd\t\tR12, R16 \tadc\t\tR13, R17  \tldd\t\tR16, Z + 2 \tldd\t\tR17, Z + 3 \tstd\t\tZ + 6, R16 \tstd\t\tZ + 7, R17 \tadd\t\tR14, R16 \tadc\t\tR15, R17  \tsubi\tZL, 4 \tcpi\t\tZL, low (dataBuffer - 4) \tbrne\tbuf1  \t\/\/ Add new humidity value to the buffer \t\/\/ and to the sum \tldd\t\tR16, DS (tempData + 1) \tldd\t\tR17, DS (tempData) \tstd\t\tDS (dataBuffer + 0), R16 \tstd\t\tDS (dataBuffer + 1), R17 \tadd\t\tR12, R16 \tadc\t\tR13, R17  \t\/\/ Add new temperature value to the buffer \t\/\/ and to the sum \tldd\t\tR16, DS (tempData + 3) \tldd\t\tR17, DS (tempData + 2) \t \t\/\/ Check for a negative value \tand\t\tR17, R17 \tbrpl\tbuf2  \t\/\/ Convert negative temperature to the 2's \t\/\/ complement form \tclr\t\tZL \tandi\tR17, 0x7F \tneg\t\tR16 \tsbc\t\tZL, R17 \tmov\t\tR17, ZL  buf2: \tstd\t\tDS (dataBuffer + 2), R16 \tstd\t\tDS (dataBuffer + 3), R17 \tadd\t\tR14, R16 \tadc\t\tR15, R17  \t\/\/ Divide the humidity and temperature \t\/\/ sum values by 8 (by shifting them right \t\/\/ three times) \tldi\t\tR16, 3 buf3: \tasr\t\tR15 \tror\t\tR14 \tasr\t\tR13 \tror\t\tR12 \tdec\t\tR16 \tbrne\tbuf3  \t\/\/ Do we have 8 full measurements? \tmov\t\tR16, R6 \tcpi\t\tR16, 7 \t \t\/\/ If so, use the average values from \t\/\/ the buffer \tbreq\tbuf4  \t\/\/ Otherwise use the latest measurement \tldd\t\tR12, DS (dataBuffer + 0) \tldd\t\tR13, DS (dataBuffer + 1) \tldd\t\tR14, DS (dataBuffer + 2) \tldd\t\tR15, DS (dataBuffer + 3) \tinc\t\tR6  buf4: \t\/\/ Print out values  \t\/\/ *** Humidity *** \tmovw\tX, R12 \trcall\tprintDecX  \tldi\t\tXH, 1 \tldd\t\tXL, DS (displayData + 3) \trcall\tmaxWriteWord  \tldd\t\tXL, DS (displayData + 2) \tori\t\tXL, 0x80 \trcall\tmaxWriteWord  \tldd\t\tXL, DS (displayData + 1) \trcall\tmaxWriteWord  \tldd\t\tXL, DS (displayData) \trcall\tmaxWriteWord  \t\/\/ *** Temperature *** \tmovw\tX, R14  \t\/\/ Check for a negative value \tand\t\tXH, XH \tbrpl\tbuf5  \t\/\/ Calculate the absolute value \tclr\t\tZL \tneg\t\tXL \tsbc\t\tZL, XH \tmov\t\tXH, ZL  buf5: \trcall\tprintDecX  \tldi\t\tXH, 5 \tldd\t\tXL, DS (displayData + 3) \trcall\tmaxWriteWord  \tldd\t\tXL, DS (displayData + 2) \tori\t\tXL, 0x80 \trcall\tmaxWriteWord  \tldd\t\tXL, DS (displayData + 1) \trcall\tmaxWriteWord  \t\/\/ If temperature is negative \t\/\/ write the minus sign to the first digit \t\/\/ (temperatures of -100.0 and below \t\/\/ are not supported anyway) \tldd\t\tXL, DS (displayData) \tand\t\tR15, R15 \tbrpl\tSKIPNEXT1W \tldi\t\tXL, 1 \trcall\tmaxWriteWord  loop2: \t\/\/ Wait for 1 sec \tldi\t\tR16, 100 \trcall\twait100Hz  \t\/\/ And repeat \trjmp\tloop  loop_error: \t\/\/ An error had occured. \t\/\/ Increment error count \tinc\t\tR7  \t\/\/ Do we have 3 or more errors in a row? \tmov\t\tR16, R7 \tcpi\t\tR16, 3  \t\/\/ No? Just do nothing \tbrne\tloop2  \t\/\/ Prevent error count from growing \tdec\t\tR7  \t\/\/ Display error \tldi\t\tZL, low (errText*2) \tldi\t\tZH, high (errText*2) \trcall\tmaxWrite8Bytes \trjmp\tloop2  errText: \t\/\/ &quot;Sn Error&quot; \t.db\t\t0b00000101, 0b00011101, 0b00000101, 0b00000101 \t.db\t\t0b01001111, 0b00000000, 0b00010101, 0b01011011  \/\/ ********** \/\/ Waits given number (R16) of 100Hz ticks \/\/ Uses: Z wait100Hz: \t\/\/ Enable sleep \tldi\t\tZL, 0b00100000 \tout\t\t(MCUCR), ZL \t \tmov\t\tZL, R_TICK100 w100: \tsleep \tmov\t\tZH, R_TICK100 \tsub\t\tZH, ZL \tcp\t\tZH, R16 \tbrcs\tw100 \tret  \/\/ Timer interrupt  timerOvfl: timerCompA: \tpush\tR16 \tin\t\tR16, (SREG) \tpush\tR16 \tpush\tZL \tpush\tZH  \t\/\/ Receive AM2303 data \trcall\tam2302proc  \t\/\/ Decrement current 75KHz tick \tldi\t\tR16, 1 \tsub\t\tR_TICKL, R16 \tbrcc\ttimerRet \tsub\t\tR_TICKH, R16 \tbrcc\ttimerRet  \t\/\/ Initialize 75KHz tick value \tldi\t\tZL, low (750 - 1) \tldi\t\tZH, high (750 - 1) \tmovw\tR_TICKL, Z  \t\/\/ Increment current 100Hz tick \tinc\t\tR_TICK100  timerRet: \tpop\t\tZH \tpop\t\tZL \tpop\t\tR16 \tout\t\t(SREG), R16 \tpop\t\tR16 \treti  \/\/ ************** \/\/ *** AM2302 *** \/\/ **************  amStart: \t\/\/ Send the start low signal. \t\/\/ Switch corresponding PORTB pin to output \t\/\/ (there is already 0 in the PORTB register) \tsbi\t\t(DDRB), AM2302_PIN \tldi\t\tR16, TMS_ST_LOW \trjmp\tamSetState  amStartLow: \t\/\/ Initial start low signal is being sent. \t\/\/ Wait for 75 ticks \tcpi\t\tR16, 75 \tbrne\tamNone  \t\/\/ Switch PORTB pin back to input \tcbi\t\t(DDRB), AM2302_PIN \tldi\t\tR16, TMS_WRSP_LOW  \t\/\/ Do not check AM2303 input pin at this tick \t\/\/ since it's possible that it has not recovered \t\/\/ from the low state yet. \trjmp\tamSetState  amWRespLow: \t\/\/ Waiting for the response low signal \tsbrc\tZH, AM2302_PIN \tret  \tldi\t\tR16, TMS_WRSP_HIGH \trjmp\tamSetState  amWRespHigh: \t\/\/ Waiting for the response high signal \tsbrs\tZH, AM2302_PIN \tret  \tldi\t\tR16, TMS_W1ST_BIT_LOW \trjmp\tamSetState  amW1StBitLow: \t\/\/ Waiting for the first bit low signal \tsbrc\tZH, AM2302_PIN \tret  \t\/\/ Get ready to receive the first bit \tldi\t\tR16, 1 \tmov\t\tR_TD, R16  \t\/\/ Set new state and reset the byte counter \tldi\t\tZL, TMS_WBIT_HIGH \trjmp\tamSetState2  amBitHigh: \tsbrs\tZH, AM2302_PIN \tret  \t\/\/ If the bit low signal was there too long \t\/\/ (longer than 5 ticks (5*13.3 = 66.5us) \t\/\/ something went wrong) \tcpi\t\tR16, 6 \tbrcc\tamResetState  \tldi\t\tR16, TMS_WBIT_LOW \trjmp\tamSetState  am2302proc: \t\/\/ First, check for the TMS_NONE state. \t\/\/ In this case just do nothing to \t\/\/ not waste MCU cycles. \tmov\t\tZL, R_TS \tandi\tZL, 0xF0  \tcpi\t\tZL, TMS_NONE \tbreq\tamNone  \t\/\/ Increment receiver tick \tinc\t\tR_TT  \t\/\/ If we are waiting for too long, \t\/\/ something went wrong, reset the state \tbreq\tamResetState  \t\/\/ Save the current tick into a more \t\/\/ convenient register \tmov\t\tR16, R_TT  \t\/\/ Get input signal \tin\t\tZH, (PINB)  \t\/\/ Branch depending on the current state. \t\/\/ Check for TMS_WBIT_LOW first since it \t\/\/ has the longest service routine \tcpi\t\tZL, TMS_WBIT_LOW \tbreq\tamBitLow  \tcpi\t\tZL, TMS_START \tbreq\tamStart  \tcpi\t\tZL, TMS_ST_LOW \tbreq\tamStartLow  \tcpi\t\tZL, TMS_WRSP_LOW \tbreq\tamWRespLow  \tcpi\t\tZL, TMS_WRSP_HIGH \tbreq\tamWRespHigh  \tcpi\t\tZL, TMS_W1ST_BIT_LOW \tbreq\tamW1StBitLow  \tcpi\t\tZL, TMS_WBIT_HIGH \tbreq\tamBitHigh  \tcpi\t\tZL, TMS_WHIGH \tbreq\tamWHigh  amResetState: \t\/\/ In case of an error, reset state to \t\/\/ the default TMS_NONE \tldi\t\tR16, TMS_NONE  amSetState: \t\/\/ Preserve the current byte number \tmov\t\tZL, R_TS \tandi\tZL, 0x07 \tor\t\tZL, R16  amSetState2: \tmov\t\tR_TS, ZL \t \t\/\/ Clear receiver tick counter \tclr\t\tR_TT  amNone: \tret\t  amBitLow: \tsbrc\tZH, AM2302_PIN \tret  \t\/\/ The high bit signal was too long? \tcpi\t\tR16, 8 \tbrcc\tamResetState  \t\/\/ Store input bit (inverted, since cpi produces \t\/\/ inverted result in the carry flag) \tcpi\t\tR16, 4 \trol\t\tR_TD  \t\/\/ Initally we set R_TD to 1, so when all 8 \t\/\/ bits are received, the carry flag will be set \t\/\/ indicating that a full byte has been received. \t\/\/ Otherwise, receive the next bit \tldi\t\tR16, TMS_WBIT_HIGH \tbrcc\tamSetState  \t\/\/ We have the full byte. Invert it \tcom\t\tR_TD  \t\/\/ Save it \tmov\t\tZL, R_TS \tandi\tZL, 0x07 \tsubi\tZL, low (-tempData) \tldi\t\tZH, high (tempData) \tst\t\tZ+, R_TD  \t\/\/ Did we receive all 5 bytes? \tcpi\t\tZL, low (tempData + 5) \tldi\t\tR16, TMS_WHIGH \tbreq\tamSetState  \t\/\/ OK, receive the next byte. \t\/\/ Increment the byte counter \tinc\t\tR_TS  \t\/\/ Initialize R_TD \tldi\t\tR16, 1 \tmov\t\tR_TD, R16  \tldi\t\tR16, TMS_WBIT_HIGH \trjmp\tamSetState  amWHigh: \tsbrs\tZH, AM2302_PIN \tret  \tcpi\t\tR16, 6 \tbrcc\tamResetState  \t\/\/ We received everything. Set \t\/\/ the state to TMS_NONE and set \t\/\/ the data validity bit \tldi\t\tR16, 0x08 \tmov\t\tR_TS, R16 \tret  \/\/ *********  \/* \/\/ Write data from Z \/\/ Uses R16 - R19, X, Z maxWriteData: \tlpm\t\tXH, Z+ \ttst\t\tXH \tbrne\tSKIPNEXT1W \tret \tlpm\t\tXL, Z+ \trcall\tmaxWriteWord \trjmp\tmaxWriteData  maxInit: \t.db\t\tMAX_DECODE, 0 \t.db\t\tMAX_INTENSITY, 4 \t.db\t\tMAX_SCANLIMIT, 7 \t.db\t\tMAX_SHUTDOWN, 1 \t.db\t\tMAX_DISPTEST, 0 \t.db\t\t0, 0  maxTest: \t.db\t\t0, 0b00011101, 0b00010101, 0b00010000, 0b00011100, 0b00111101, 0b00000101, 0b01110111 *\/  \/\/ Writes 8 bytes from (Z) (program memory) \/\/ to MAX7219 \/\/ Uses R16 - R19, X, Z maxWrite8Bytes: \tldi\t\tXH, 0x01  mw8b1: \tlpm\t\tXL, Z+ \trcall\tmaxWriteWord \tcpi\t\tXH, 9 \tbrne\tmw8b1 \tret  \/\/ Write word X (XL = data, XH = address) to MAX2719 \/\/ Uses R16 - R19, X maxWriteWord: \t\/\/ Set all pins to zero \tin\t\tR17, (PORTB) \tandi\tR17, ~((1 &lt;&lt; MAX_DIN) | (1 &lt;&lt; MAX_CS) | (1 &lt;&lt; MAX_CLK)) \tout\t\t(PORTB), R17  \tldi\t\tR19, (1 &lt;&lt; MAX_CLK)  \tmov\t\tR16, XH \trcall\tmww1  \tmov\t\tR16, XL \trcall\tmww1  \t\/\/ Set LOAD(CS) to high thus writing all 16 bits into \t\/\/ MAX register \tsbi\t\t(PORTB), MAX_CS \t \t\/\/ Increment MAX register number \tinc\t\tXH \tret  mww1: \tldi\t\tR18, 8  mww2: \tbst\t\tR16, 7 \tbld\t\tR17, MAX_DIN \tout\t\t(PORTB), R17  \tlsl\t\tR16 \tdec\t\tR18  \t\/\/ Create clock impulse by toggling clock output twice \tout\t\t(PINB), R19 \tout\t\t(PINB), R19  \tbrne\tmww2 \tret  \/\/ *********  printDecX: \tldi\t\tZH, low (1000) \tldi\t\tR16, high (1000) \trcall\tpdx  \t\/\/ Change zero digit to empty space \tcpi\t\tZL, 0b01111110 \tbrne\tSKIPNEXT1W \tldi\t\tZL, 0 \tstd\t\tDS (displayData), ZL  \tldi\t\tZH, 100 \tldi\t\tR16, 0 \trcall\tpdx  \t\/\/ If this digit is zero and the first \t\/\/ digit is empty (i.e. it was zero too) \t\/\/ change this digit to empty space \tldi\t\tR16, 0b01111110 \teor\t\tR16, ZL \tldd\t\tZH, DS (displayData) \tor\t\tR16, ZH \tbrne\tSKIPNEXT1W \tldi\t\tZL, 0 \tstd\t\tDS (displayData + 1), ZL  \tldi\t\tZH, 10 \tldi\t\tR16, 0 \trcall\tpdx \tstd\t\tDS (displayData + 2), ZL  \tmov\t\tZL, XL \trcall\tpdx3 \tstd\t\tDS (displayData + 3), ZL \t \t\/\/ Clear carry flag to indicate that \t\/\/ no error occurred \tclc \tret  pdx: \tldi\t\tZL, 0 pdx1: \tsub\t\tXL, ZH \tsbc\t\tXH, R16 \tbrcs\tpdx2  \tcpi\t\tZL, 9 \tbreq\tpdxOverflow \tinc\t\tZL \trjmp\tpdx1  pdx2: \tadd\t\tXL, ZH \tadc\t\tXH, R16  pdx3: \tsubi\tZL, -low (hexTable &lt;&lt; 1) \tldi\t\tZH, high (hexTable &lt;&lt; 1) \tlpm\t\tZL, Z \tret  pdxOverflow: \t\/\/ Set carry flag to indicate error \tsec  \t\/\/ Pop return address out of the stack \t\/\/ so we can return to the caller of printDecX \tpop\t\tR16 \tpop\t\tR16 \tret <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">HEX-\u0444\u0430\u0439\u043b<\/b><\/p>\n<div class=\"spoiler_text\"><code>:020000020000FC<br \/>  :100000000EC018951895C2C018951895BFC01895C0<br \/>  :10001000189518957E306D79335B5F727F7BF8940D<br \/>  :100020000FE90DBFA89508E101BD08E201BDC0E6DA<br \/>  :10003000D0E00024112444245524332408BA03E1D9<br \/>  :1000400007BBA1E0B1E015D1B930E9F7A0E011D1CB<br \/>  :10005000A4E00FD1A7E00DD1A1E00BD1BFE0A0E05B<br \/>  :1000600008D10FE706BF06E009BF01E003BF78949F<br \/>  :10007000B1E0A0E009E181D0FCD0B930D9F7662425<br \/>  :100080007724A89500E1002E8895002D007FE1F7E8<br \/>  :1000900003FE66C00881E9810E0FEA810E0FEB8135<br \/>  :1000A0000E0FEC810E17A9F77724CC24DD24EE2463<br \/>  :1000B000FF24E1E8F0E00081118104831583C00E84<br \/>  :1000C000D11E0281138106831783E00EF11EE450D6<br \/>  :1000D000E53689F70981188109871A87C00ED11E74<br \/>  :1000E0000B811A8111232AF4EE271F770195E10B6A<br \/>  :1000F0001E2F0B871C87E00EF11E03E0F594E7949A<br \/>  :10010000D594C7940A95D1F7062D073029F0C984F4<br \/>  :10011000DA84EB84FC846394D601C0D0B1E0A88576<br \/>  :10012000A8D0AF81A068A5D0AE81A3D0AD81A1D069<br \/>  :10013000D701BB2322F4EE27A195EB0BBE2FAED047<br \/>  :10014000B5E0A88596D0AF81A06893D0AE8191D05C<br \/>  :10015000AD81FF200AF4A1E08CD004E60ED091CF4F<br \/>  :100160007394072D0330C9F77A94E2E7F1E07BD06E<br \/>  :10017000F4CF051D05054F00155BE0E2E5BFE32D5B<br \/>  :100180008895F32DFE1BF017D8F308950F930FB742<br \/>  :100190000F93EF93FF932BD001E0401A30F4501AE5<br \/>  :1001A00020F4EDEEF2E02F013394FF91EF910F91E7<br \/>  :1001B0000FBF0F911895BB9A00E232C00B34A9F51E<br \/>  :1001C000BB9800E32DC0F3FD089500E429C0F3FFC0<br \/>  :1001D000089500E525C0F3FD089501E0202EE0E636<br \/>  :1001E00022C0F3FF08950630D0F400E719C0E02DD7<br \/>  :1001F000E07FE030D1F0139491F0012DF6B3E037B9<br \/>  :10020000A9F0E031C1F2E032C9F2E033E1F2E034CA<br \/>  :10021000F1F2E03501F3E03621F3E038E9F000E0F7<br \/>  :10022000E02DE770E02B0E2E11240895F3FD0895C4<br \/>  :100230000830A8F70430221C00E690F72094E02D47<br \/>  :10024000E770E05AF0E02192E53600E849F30394C4<br \/>  :1002500001E0202E00E6E4CFF3FF08950630F8F623<br \/>  :1002600008E0002E0895B1E0A59103D0B930E1F780<br \/>  :10027000089518B31C7E18BB30E10B2F05D00A2F50<br \/>  :1002800003D0C19AB395089528E007FB10F918BB75<br \/>  :10029000000F2A9536BB36BBC1F70895F8EE03E090<br \/>  :1002A00017D0EE3709F4E0E0ED83F4E600E010D07B<br \/>  :1002B0000EE70E27FD810F2B09F4E0E0EE83FAE054<br \/>  :1002C00000E006D0EF83EA2F0DD0E88788940895E8<br \/>  :1002D000E0E0AF1BB00B20F0E93041F0E395F9CF3F<br \/>  :1002E000AF0FB01FEC5EF0E0E491089508940F9119<br \/>  :0402F0000F910895CD<br \/>  :00000001FF<br \/>  <\/code>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/geektimes.ru\/post\/273028\/\"> https:\/\/geektimes.ru\/post\/273028\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0426\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 AM2302 (DHT22) \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 DIY, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u043d\u0435\u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a\u0438, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u041a\u0438\u0442\u0430\u0435) \u043e\u043d \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u0443\u044e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442 \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 (\u0442\u0440\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u0435). \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 Arduino \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\/\u0421++. \u042d\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438\u043b\u0438 \u00ab\u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443\u00bb \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u043a \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443. \u041d\u043e \u0435\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0439 \u043f\u043b\u0430\u0442\u044b Arduino (\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u041c\u041a \u0441 \u043f\u0430\u0440\u043e\u0439 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0432\u044b\u0432\u043e\u0434\u043e\u0432) \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435\/\u0433\u0438\u0433\u0440\u043e\u043c\u0435\u0442\u0440\u0435 (\u0434\u0430\u043b\u0435\u0435 \u2013 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0435), \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u00ab\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445\u00bb \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u2014 ATtiny13 \u0441 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438 \u2013 1\u041a\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, 64 \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u041e\u0417\u0423 \u0438 5-\u044e (6-\u044e, \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0431\u0440\u043e\u0441\u0430) \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u043c\u0438 \u0432\u044b\u0432\u043e\u0434\u0430\u043c\u0438. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438 AVR \u0438 \u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u043e \u0441\u0442\u0430\u0442\u044c\u044f, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438. \u041a\u0441\u0442\u0430\u0442\u0438, \u043e \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2013 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-276534","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276534"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276534\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}