{"id":53350,"date":"2018-11-24T22:07:28","date_gmt":"2018-11-24T16:07:28","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=53350"},"modified":"2022-01-11T19:51:55","modified_gmt":"2022-01-11T13:51:55","slug":"%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-%d0%b8%d0%bd%d0%b4%d0%b8%d0%ba%d0%b0%d1%86%d0%b8%d0%b8-%d0%bd%d0%b0-74%d0%bd%d1%81595-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=53350","title":{"rendered":"\u041c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 74\u041d\u0421595 (Arduino)"},"content":{"rendered":"<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/64376985872362387.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-53351 alignright\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/64376985872362387.png\" alt=\"\" width=\"317\" height=\"207\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/64376985872362387.png 644w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/64376985872362387-200x130.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/64376985872362387-500x326.png 500w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/a>\u041c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 7-\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 74\u041d\u0421595.<\/p>\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 74HC595 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 8 \u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 8 \u0431\u0438\u0442\u043d\u044b\u0439 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440. \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, \u0437\u0430\u0442\u0435\u043c \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u041a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b 8 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439.<\/p>\n<p>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0432\u0443\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u00a074HC595 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044f, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u044f\u0434\u0430\u043c\u0438, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440, \u043d\u043e \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044f \u043d\u0430 \u0434\u0432\u0443\u0445 \u0418\u041c\u0421 74HC595 \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0442\u044c 8-\u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-53352\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429.png\" alt=\"\" width=\"403\" height=\"301\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429.png 540w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429-200x149.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429-500x373.png 500w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c \u043d\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u044f\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u043e\u0432:<\/p>\n<ul>\n<li><em>DIO\u00a0<\/em>&#8212; \u043f\u0438\u043d \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<li><em>SCLK\u00a0<\/em>&#8212; \u043f\u0438\u043d \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/li>\n<li><em>RCLK\u00a0<\/em>&#8212; \u043f\u0438\u043d &#171;\u0437\u0430\u0449\u0435\u043b\u043a\u0430&#187;<\/li>\n<li><em>GND\u00a0<\/em>&#8212; \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0437\u0435\u043c\u043b\u0435<\/li>\n<li><em>VCC<\/em>\u00a0 &#8212; \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f +5 \u0412<\/li>\n<\/ul>\n<p>\u0421\u043a\u0435\u0442\u0447 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>int\u00a0k<\/strong>, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u043a\u0430\u0436\u0434\u044b\u0435 100 \u043c\u0441. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0442 0 \u0434\u043e 9999.<\/p>\n<div id=\"marketWidget\"><\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;MsTimer2.h&gt;<\/span>\r\n\u00a0\r\nbyte razr<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0x08, 0x04, 0x02, 0x01, 0x00<span style=\"color: #66cc66;\">}<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 0123         <\/span>\r\nbyte digit<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF<span style=\"color: #66cc66;\">}<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 0123456789<\/span>\r\nbyte pointDigit = 0x80; <span style=\"color: #808080; font-style: italic;\">\/\/\u0442\u043e\u0447\u043a\u0430<\/span>\r\n<span style=\"color: #0066cc;\">int<\/span> k;\r\nbyte a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">set<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">15<\/span>, to_Timer<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434 10...20 \u043c\u0441<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">start<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u0442\u0430\u0440\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ RCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ SCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ DIO<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> to_Timer<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=k<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">]<\/span>=k<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">]<\/span>=k<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">]<\/span>=k<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">%<\/span>10;\r\n  <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">5<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, razr<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> \r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nk++;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0435\u0442\u0447 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>float k<\/strong>\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0442 0,001 \u0434\u043e 9999. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 0,001 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0441.<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;MsTimer2.h&gt;<\/span>\r\n\u00a0\r\nbyte razr<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0x08, 0x04, 0x02, 0x01, 0x00<span style=\"color: #66cc66;\">}<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 0123         <\/span>\r\nbyte digit<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF<span style=\"color: #66cc66;\">}<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 0123456789 <\/span>\r\nbyte point = 0x80; <span style=\"color: #808080; font-style: italic;\">\/\/\u0442\u043e\u0447\u043a\u0430<\/span>\r\nfloat k=<span style=\"color: #cc66cc;\">0.000<\/span>;\r\n<span style=\"color: #0066cc;\">int<\/span> k1,t;\r\nbyte a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">set<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">15<\/span>, to_Timer<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434 10...20 \u043c\u0441<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">start<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u0442\u0430\u0440\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ RCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ SCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ DIO<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> to_Timer<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">2<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>k1=k;t=<span style=\"color: #cc66cc;\">4<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">%<\/span>10;\r\n  <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">5<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>i==t<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span> ^ point<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, razr<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> \r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nk+=<span style=\"color: #cc66cc;\">0.001<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0435\u0442\u0447 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>float k<\/strong>\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0442 \u00b10,01 \u0434\u043e \u00b1999. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00a0<strong>float k<\/strong>\u00a0= 999) \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 0,01 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0441.<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;MsTimer2.h&gt;<\/span>\r\n\u00a0\r\nbyte razr<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0x08, 0x04, 0x02, 0x01, 0x00<span style=\"color: #66cc66;\">}<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 0123         <\/span>\r\nbyte digit<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF, 0xBF<span style=\"color: #66cc66;\">}<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 0123456789 \u043c\u0438\u043d\u0443\u0441<\/span>\r\nbyte point = 0x80; <span style=\"color: #808080; font-style: italic;\">\/\/\u0442\u043e\u0447\u043a\u0430<\/span>\r\nfloat k=<span style=\"color: #cc66cc;\">999<\/span>;\r\nfloat k2;\r\n<span style=\"color: #0066cc;\">int<\/span> k1,t;\r\nbyte a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  MsTimer2::<span style=\"color: #0066cc;\">set<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">15<\/span>, to_Timer<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434 10...20 \u043c\u0441<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">start<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u0442\u0430\u0440\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ RCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ SCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ DIO<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> to_Timer<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k2 = <span style=\"color: #0066cc;\">abs<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">)<\/span>;a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #cc66cc;\">11<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>k2=k;a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #cc66cc;\">10<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>k2<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k2<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k2<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k2<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k2<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">2<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>k1=k2;t=<span style=\"color: #cc66cc;\">4<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">%<\/span>10;\r\n  <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">5<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>i==t<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span> ^ point<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, razr<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> \r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nk-=<span style=\"color: #cc66cc;\">0.1<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53358\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/857297295.png\" alt=\"\" width=\"302\" height=\"150\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/857297295.png 302w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/857297295-200x99.png 200w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/>\u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u0444\u0440\u044b \u043d\u043e \u0438 \u043b\u044e\u0431\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0437 \u0441\u0435\u043c\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-53362 alignright\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/2756987694378.png\" alt=\"\" width=\"191\" height=\"267\" \/>.GFEDCBA = 0b1111111 &#8212; \u0432\u0441\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u043e\u0447\u043a\u0443 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b<\/p>\n<p>.GFEDCBA = 0b00000000 &#8212; \u0432\u0441\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u043e\u0447\u043a\u0443<\/p>\n<p>.GFEDCBA = 0b0111111 &#8212; \u0433\u043e\u0440\u0438\u0442 \u0442\u043e\u0447\u043a\u0430<\/p>\n<p>.GFEDCBA = 0b10111111 &#8212; \u0433\u043e\u0440\u0438\u0442 \u043c\u0438\u043d\u0443\u0441, \u0442\u043e\u0447\u043a\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430<\/p>\n<p>.GFEDCBA = 0b10000111 &#8212; \u0433\u043e\u0440\u0438\u0442 <strong>t<\/strong>, \u0442\u043e\u0447\u043a\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043d\u043e\u0432\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432:<\/p>\n<p>byte digit<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF, 0xBF,<span style=\"color: #66cc66;\">}<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 0123456789 \u043f\u0443\u0441\u0442\u043e \u043c\u0438\u043d\u0443\u0441<\/span><\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u043a\u0435\u0442\u0447\u0435:<\/p>\n<p><span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k2 = <span style=\"color: #0066cc;\">abs<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">)<\/span>;a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #cc66cc;\">11<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>k2=k;a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #cc66cc;\">10<\/span>;<span style=\"color: #66cc66;\">}<\/span><\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f\u00a0<strong>k&lt;0<\/strong>\u00a0, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e 11 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u00a00xBF (\u043c\u0438\u043d\u0443\u0441), \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0442\u043e \u0447\u0438\u0441\u043b\u043e 10 0xFF (\u0432\u0441\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0433\u0430\u0448\u0435\u043d\u044b).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0433\u043e\u0440\u0435\u043b \u0441\u0438\u043c\u0432\u043e\u043b \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434:<\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b <strong>t<\/strong> \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u00a00x87 \u0438\u043b\u0438\u00a00b10000111, \u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<strong> k<\/strong> \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 23.2<\/p>\n<p>byte digit[13] = {0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF, 0xBF,<strong> 0x87<\/strong>}; \/\/ 0123456789 \u043f\u0443\u0441\u0442\u043e \u043c\u0438\u043d\u0443\u0441 \u0441\u0438\u043c\u0432\u043e\u043b:t<\/p>\n<p>a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #cc66cc;\">12<\/span>;<\/p>\n<p>\u0411\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u043e\u0440\u0435\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b<strong> t <\/strong>\u00a0.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/5782957958.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53365\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/5782957958.png\" alt=\"\" width=\"221\" height=\"131\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/5782957958.png 221w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/5782957958-200x119.png 200w\" sizes=\"auto, (max-width: 221px) 100vw, 221px\" \/><\/a><\/p>\n<pre><strong>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 MsTimer2.h - <a class=\"urllink\" href=\"http:\/\/playground.arduino.cc\/uploads\/Main\/MsTimer2.zip\" rel=\"nofollow\">MsTimer2.zip<\/a><\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 7-\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 74\u041d\u0421595. \u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 74HC595 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 8 \u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 8 \u0431\u0438\u0442\u043d\u044b\u0439 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440. \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, \u0437\u0430\u0442\u0435\u043c \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u041a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b 8 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0432\u0443\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u00a074HC595 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044f, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u044f\u0434\u0430\u043c\u0438, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":53351,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-53350","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":8166,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53350"}],"version-history":[{"count":12,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53350\/revisions"}],"predecessor-version":[{"id":111471,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53350\/revisions\/111471"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/53351"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53350"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}