{"id":270300,"date":"2015-12-14T15:20:02","date_gmt":"2015-12-14T12:20:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=270300"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=270300","title":{"rendered":"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0430 \u041c\u041a"},"content":{"rendered":"<p>       \u0412 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043f\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u041c\u041a, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0434\u0430\u0447\u0438. \u041e\u0434\u043d\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438, \u0434\u0440\u0443\u0433\u0438\u0435 \u0442\u0430\u043a\u0438\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c. \u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u041c\u041a \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 STM32F4 \u2014 \u0430\u0436 14 \u0448\u0442\u0443\u043a, \u0438 \u044d\u0442\u043e \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f SysTick (\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e), \u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438 \u043f\u0430\u0440\u0430 \u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430 \u0441\u0447\u0430\u0441\u0442\u044c\u0435: \u0442\u043e\u0442 \u0436\u0435 PIC16, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u043d\u0435 \u0441\u043f\u0435\u0448\u043d\u044b\u0445, \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440, \u043d\u0430 \u0431\u0430\u0437\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230;<a name=\"habracut\"><\/a><\/p>\n<h4><b>\u0412\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u044f<\/b><\/h4>\n<p>  \u0421\u043f\u0440\u043e\u0441\u0438\u043c \u0443 \u0413\u0423\u0413\u041b\u0410 \u0447\u0442\u043e \u043e\u043d \u043e\u0431 \u044d\u0442\u043e\u043c \u0434\u0443\u043c\u0430\u0435\u0442?<\/p>\n<p>  \u041d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<ol>\n<li><a href=\"http:\/\/chipenable.ru\/index.php\/programming-avr\/item\/28-programmnye-taymery-chast-1.html\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u044b. \u0427\u0430\u0441\u0442\u044c 1<\/a><\/li>\n<li><a href=\"http:\/\/we.easyelectronics.ru\/STM32\/mnogozadachnyy-programmnyy-taymer.html\">\u041c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440.<\/a><\/li>\n<li><a href=\"http:\/\/we.easyelectronics.ru\/STM32\/mnogozadachnyy-programmnyy-taymer-ver-20.html\">\u041c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440, ver 2.0<\/a><\/li>\n<li><a href=\"http:\/\/we.easyelectronics.ru\/Soft\/programmnyy-taymer-primenenie-hal.html\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440. \u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 HAL<\/a><\/li>\n<\/ol>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430.<\/p>\n<h4><b>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/b><\/h4>\n<p>  \u041a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0410\u0421\u0423 \u0422\u041f, \u044f \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u044e \u041f\u041b\u041a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0444\u0438\u0440\u043c. \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u041f\u041b\u041a \u0432 \u0441\u0440\u0435\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432. \u041f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u041f\u041b\u041a \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0440\u043e\u0434\u0430\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445, \u0432\u0441\u0435 \u0438\u0445 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0437 \u0410\u0421\u0423 \u0422\u041f \u0438 \u044d\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u00ab\u0433\u0440\u0443\u0431\u043e \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u00bb \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n<h4><b>\u041c\u0438\u043d\u0438 \u0422\u0417<\/b><\/h4>\n<p>  \u041a\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u044b \u043d\u0443\u0436\u043d\u044b \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435? \u042f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0432\u0438\u0434\u0430\u0445:<\/p>\n<ul>\n<li>\u0422\u0430\u0439\u043c\u0435\u0440 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/li>\n<li>\u0422\u0430\u0439\u043c\u0435\u0440 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/li>\n<li>\u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440<\/li>\n<li>\u041e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440<\/li>\n<\/ul>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u044f\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043e\u0447\u0435\u0432\u0430\u043b\u0438 \u0438\u0437 \u0410\u0421\u0423 \u0422\u041f \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u041f\u041b\u041a. \u0414\u0432\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u041c\u041a. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0438\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h5><b>\u0422\u0430\u0439\u043c\u0435\u0440 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/h5>\n<p>  \u0411\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u043b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 (\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439) \u0432\u0445\u043e\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e (\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e) \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0443\u0448\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0442\u0441\u0447\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0441\u0432\u043e\u0439 \u0432\u044b\u0445\u043e\u0434 \u0442\u043e\u0436\u0435 \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u0441\u043d\u0438\u043c\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0432\u044b\u0445\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c. \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0438\u0436\u0435.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/555\/4bb\/839\/5554bb839aa64eba8f8a8640037c5c55.jpg\"\/><\/p>\n<p>  \u0412 \u043c\u0438\u0440\u0435 \u041c\u041a \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0430\u0439\u0434\u0435\u0442 \u0441\u0435\u0431\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0430\u043d\u0442\u0438\u0434\u0440\u0435\u0431\u0435\u0437 \u00ab\u0441\u0443\u0445\u043e\u0433\u043e\u00bb \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430, \u0434\u043b\u044f \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0443 \u0438 \u0442.\u0434. \u0421\u0444\u0435\u0440\u0430 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u044f\u0432\u043d\u043e \u044d\u0442\u0438\u043c \u043d\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<h5><b>\u0422\u0430\u0439\u043c\u0435\u0440 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/h5>\n<p>  \u0422\u0430\u0439\u043c\u0435\u0440 \u043f\u043e \u0441\u0443\u0442\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d \u043f\u0435\u0440\u0432\u043e\u043c\u0443, \u043d\u043e \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041f\u043e\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0445\u043e\u0434, \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u0432\u044b\u0445\u043e\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u043d\u0438\u0437\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c (\u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439) \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043e\u0442\u0441\u0447\u0435\u0442 \u0438 \u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0432\u044b\u0445\u043e\u0434 \u0442\u043e\u0436\u0435 \u0432 \u043d\u043e\u043b\u044c. \u0412\u043e\u0442 \u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6c9\/6fe\/2da\/6c96fe2daed24705b30277916373f5b3.jpg\"\/><\/p>\n<p>  \u041d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0435\u0451 \u00ab\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c\u00bb, \u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0436\u0435. \u0414\u0430\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0443 \u0442\u043e \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u043d\u043e\u043c, \u043f\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u041c\u041a, \u043c\u043e\u0436\u0435\u0442 \u0438 \u0442\u0430\u043a, \u043d\u043e \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442.<\/p>\n<h5><b>\u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440<\/b><\/h5>\n<p>  \u041d\u0443 \u0442\u0443\u0442 \u0432\u0441\u0435 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e. \u041a\u0430\u0436\u0434\u043e\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0443 \u0438\u043b\u0438 \u0438\u043d\u0443\u044e \u0440\u0443\u0442\u0438\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u041e\u043f\u0440\u043e\u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438\u043d\u0435\u0440\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b, \u043c\u0438\u0433\u0430\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c, \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0439 \u043d\u0430\u043c \u0447\u0442\u043e \u041c\u041a \u0432 \u00ab\u043f\u043e\u0440\u044f\u0434\u043a\u0435\u00bb, \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0438 \u0442.\u0434. \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/62b\/b42\/869\/62bb4286992f4d208e1bbad03912f241.jpg\"\/><\/p>\n<h5><b>\u041e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440<\/b><\/h5>\n<p>  \u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0435\u0439 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0441\u0430\u043c \u0441\u0435\u0431\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 (\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442) \u043f\u043e\u0441\u043b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f. \u0422\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438, \u043e\u0442\u0441\u0447\u0438\u0442\u0430\u043b \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0444\u043b\u0430\u0433 (\u0443\u043a\u0430\u0437\u0430\u043b \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435) \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0441\u0435\u0431\u044f. \u0412\u043e\u0442 \u0435\u0433\u043e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e17\/f0d\/c9c\/e17f0dc9c55e40eeb377094097c26564.jpg\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<h4><b>\u041c\u043e\u0434\u0443\u043b\u044c SwTimer<\/b><\/h4>\n<p>  \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c\u043e \u0437\u0430 \u0441\u0435\u0431\u044f. \u041c\u043e\u0434\u0443\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u0430\u0439\u043b\u043e\u0432: \u0445\u0438\u0434\u0435\u0440\u0430 \u0438 \u0441\u043e\u0440\u0446\u0430.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0445\u0438\u0434\u0435\u0440:<\/p>\n<pre><code class=\"cpp\">#ifndef SW_TIMER_H_ #define SW_TIMER_H_  #define SwTimerCount  64        \/\/\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432  \/*\u0420\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432*\/ typedef enum         {                 SWTIMER_MODE_EMPTY,                 SWTIMER_MODE_WAIT_ON,                 SWTIMER_MODE_WAIT_OFF,                 SWTIMER_MODE_CYCLE,                 SWTIMER_MODE_SINGLE } SwTimerMode;   \/*\u0421\u0442\u0443\u0440\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430*\/ typedef struct     {         unsigned LocalCount:32; \/\/\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u043e\u0442\u0441\u0447\u0435\u0442\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430         unsigned Count:24;              \/\/\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438         unsigned Mode:3;                \/\/\u0420\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b         unsigned On:1;                  \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u044e\u0449\u0438\u0439 \u0431\u0438\u0442         unsigned Reset:1;               \/\/\u0421\u0431\u0440\u043e\u0441 \u0441\u0447\u0435\u0442\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0431\u0435\u0437 \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f         unsigned Off:1;                 \/\/\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u0438\u0442         unsigned Out:1;                 \/\/\u0412\u044b\u0445\u043e\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430         unsigned Status:1;              \/\/\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 }SW_TIMER;  #if (SwTimerCount&gt;0) volatile SW_TIMER TIM[SwTimerCount]; \/\/\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0444\u0442\u043e\u0432\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 #endif   void SwTimerWork(SW_TIMER* TIM, unsigned char Count);   \/\/\u0421\u0430\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 void OnSwTimer(SW_TIMER* TIM, SwTimerMode Mode, unsigned int SwCount);  \/\/\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0442\u0430\u0439\u043c\u0435\u0440 unsigned char GetStatusSwTimer(SW_TIMER* TIM);  \/\/\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 #endif \/* SW_TIMER_H_ *\/ <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0445\u0438\u0434\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0435\u0444\u0430\u0439\u043d, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0444\u0442\u043e\u0432\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d enum \u0434\u043b\u044f \u00ab\u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e\u0433\u043e\u00bb \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432. \u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0430\u043c\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u0447\u0442\u043e, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0442\u043e \u0447\u0442\u043e \u0441\u0430\u043c \u0442\u0430\u0439\u043c\u0435\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f 24-\u0445 \u0431\u0438\u0442\u043d\u044b\u043c. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0443 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0432 8 \u0431\u0430\u0439\u0442. 24 \u0431\u0438\u0442\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0432 1 \u043c\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 4,66 \u0447\u0430\u0441\u0430 \u0438\u043b\u0438 16 777 \u0441\u0435\u043a\u0443\u043d\u0434. \u0412\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0435\u043c\u043d\u043e\u0433\u043e.<\/p>\n<p>  \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0441\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n<pre><code class=\"cpp\">void SwTimerWork(SW_TIMER* TIM, unsigned char Count); <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0412 \u043d\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d \u0432\u0435\u0441\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0434\u0443\u043b\u044f. \u0417\u0430\u0433\u043b\u044f\u043d\u0435\u043c \u0432 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cpp\">void SwTimerWork(SW_TIMER* TIM, unsigned char Count){ \tunsigned short i=0; \t\tfor (i=0; i&lt;Count; i++){  \t\t\tif (TIM-&gt;Mode==SWTIMER_MODE_EMPTY) { \t\t\t\tTIM++; \t\t\t\tcontinue; \t\t\t}  \t\t\tif (TIM-&gt;Mode==SWTIMER_MODE_WAIT_ON){ \/\/\u0415\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \t\t\t\tif (TIM-&gt;On){ \t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) TIM-&gt;LocalCount--; \t\t\t\t\t\telse { \t\t\t\t\t\t\tTIM-&gt;Out=1; \t\t\t\t\t\t\tTIM-&gt;Status=1; \t\t\t\t\t\t} \t\t\t\t} \t\t\t\telse { \t\t\t\t\tTIM-&gt;Out=0; \t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t} \t\t\t} \t\t\tif (TIM-&gt;Mode==SWTIMER_MODE_WAIT_OFF){ \/\/\u0415\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \t\t\t\tif (TIM-&gt;On){ \t\t\t\t\tTIM-&gt;Out=1; \t\t\t\t\tTIM-&gt;Status=1; \t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t} \t\t\t\telse { \t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) TIM-&gt;LocalCount--; \t\t\t\t\t\telse TIM-&gt;Out=0; \t\t\t\t} \t\t\t} \t\t\tif (TIM-&gt;Mode==SWTIMER_MODE_CYCLE){ \t\t\t\tif (TIM-&gt;Off){ \t\t\t\t\tif (TIM-&gt;On){ \t\t\t\t\t\tTIM-&gt;Off=0; \t\t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) TIM-&gt;LocalCount--; \t\t\t\t\t} \t\t\t\t} \t\t\t\telse{ \t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) { \t\t\t\t\t\tTIM-&gt;LocalCount--; \t\t\t\t\t\tTIM-&gt;Out=0; \t\t\t\t\t} \t\t\t\t\telse { \t\t\t\t\t\tTIM-&gt;Out=1; \t\t\t\t\t\tTIM-&gt;Status=1; \t\t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t\t} \t\t\t\t} \t\t\t\tif (TIM-&gt;Reset){ \t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t\tTIM-&gt;Out=0; \t\t\t\t\tTIM-&gt;Status=0; \t\t\t\t} \t\t\t} \t\t\tif (TIM-&gt;Mode==SWTIMER_MODE_SINGLE){ \t\t\t\tif (TIM-&gt;Off){ \t\t\t\t\tif (TIM-&gt;On){ \t\t\t\t\t\tTIM-&gt;Off=0; \t\t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) TIM-&gt;LocalCount--; \t\t\t\t\t} \t\t\t\t} \t\t\t\telse{ \t\t\t\t\tif (TIM-&gt;LocalCount&gt;0) { \t\t\t\t\t\tTIM-&gt;LocalCount--; \t\t\t\t\t\tTIM-&gt;Out=0; \t\t\t\t\t} \t\t\t\t\telse { \t\t\t\t\t\tTIM-&gt;Out=1; \t\t\t\t\t\tTIM-&gt;Status=1; \t\t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t\t\tTIM-&gt;Off=1; \t\t\t\t\t} \t\t\t\t} \t\t\t\tif (TIM-&gt;Reset){ \t\t\t\t\tTIM-&gt;LocalCount=TIM-&gt;Count-1; \t\t\t\t\tTIM-&gt;Out=0; \t\t\t\t\tTIM-&gt;Status=0; \t\t\t\t} \t\t\t}  \t\t\tTIM++; \t\t} } <\/code><\/pre>\n<p>  \u0412 \u0446\u0438\u043a\u043b\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u0443\u0441\u0442 = EMPTY, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0441\u0432\u043e\u044f \u043b\u043e\u0433\u0438\u043a\u0430.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0442\u0430\u043a \u0438 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u043e \u0444\u043b\u0430\u0433\u0443.<br \/>  \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f STM32.<\/p>\n<pre><code class=\"cpp\">\/* USER CODE BEGIN 0 *\/ #include &quot;sw_timer.h&quot; \/* USER CODE END 0 *\/  void SysTick_Handler(void) {   \/* USER CODE BEGIN SysTick_IRQn 0 *\/    \/* USER CODE END SysTick_IRQn 0 *\/   HAL_IncTick();   HAL_SYSTICK_IRQHandler();    \/* USER CODE BEGIN SysTick_IRQn 1 *\/   SwTimerWork(TIM,SwTimerCount);   \/* USER CODE END SysTick_IRQn 1 *\/ } <\/code><\/pre>\n<p>  \u0410 \u0432\u043e\u0442 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430:  <\/p>\n<pre><code class=\"cpp\">\/* USER CODE BEGIN 0 *\/ extern uint8_t FlagSwTimer; \/* USER CODE END 0 *\/  void SysTick_Handler(void) {   \/* USER CODE BEGIN SysTick_IRQn 0 *\/    \/* USER CODE END SysTick_IRQn 0 *\/   HAL_IncTick();   HAL_SYSTICK_IRQHandler();    \/* USER CODE BEGIN SysTick_IRQn 1 *\/   FlagSwTimer=1;   \/* USER CODE END SysTick_IRQn 1 *\/ }  \/*\u0412 \u043c\u0430\u0439\u043d\u0435*\/ while(1){         if (FlagSwTimer){                 #if (SwTimerCount&gt;0)                          \/\/\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0438\u0437 sw_timer.c                         SwTimerWork(TIM,SwTimerCount);                  #endif         FlagSwTimer=0; } <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<pre><code class=\"cpp\">void OnSwTimer(SW_TIMER* TIM, SwTimerMode Mode, unsigned int SwCount); <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443.<\/p>\n<pre><code class=\"cpp\">unsigned char GetStatusSwTimer(SW_TIMER* TIM); <\/code><\/pre>\n<p>  \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 -1, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u0443\u0441\u0442\u043e\u0439.<\/p>\n<h4><b>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435<\/b><\/h4>\n<p>  <\/p>\n<pre><code class=\"cpp\">#define I_DI_READ_0() HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_0) \/\/\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438          OnSwTimer(&TIM[0],SWTIMER_MODE_WAIT_OFF,1000);         OnSwTimer(&TIM[1],SWTIMER_MODE_SINGLE,1000);         OnSwTimer(&TIM[2],SWTIMER_MODE_WAIT_ON,1000);         OnSwTimer(&TIM[3],SWTIMER_MODE_CYCLE,1000);         TIM[3].Off=0;             TIM[3].On=1;    \/\/\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440         TIM[1].Off=0;         TIM[1].On=1;    \/\/\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430 \u043d\u0430\u0448\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cpp\">    while (1){         TIM[2].On=I_DI_READ_0();    \/\/\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443, \u0438 \u043f\u043e\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0430 \u0442\u0430\u0439\u043c\u0435\u0440 \u043e\u0442\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f         HAL_GPIO_WritePin(GPIOD,GPIO_PIN_15,TIM[2].Out);    \/\/\u041a\u0430\u043a \u0434\u043e \u0442\u0438\u043a\u0430\u043b, \u0437\u0430\u0436\u0433\u043b\u0438 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434         TIM[0].On=I_DI_READ_0();    \/\/\u0422\u043e\u0442 \u0436\u0435 \u0444\u043e\u043a\u0443\u0441, \u043d\u043e \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u043c \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435         HAL_GPIO_WritePin(GPIOD,GPIO_PIN_14,TIM[0].Out);    \/\/\u041f\u043e\u043a\u0430 \u0442\u0438\u043a\u0430\u0435\u0442, \u0433\u043e\u0440\u0438\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434         if (GetStatusSwTimer(&TIM[3])){             HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_13);    \/\/\u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0444\u043b\u0430\u0433 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u044b\u0445\u043e\u0434         }         if (GetStatusSwTimer(&TIM[1])){             HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_12);    \/\/\u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0444\u043b\u0430\u0433 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u044b\u0445\u043e\u0434         }         TIM[3].Reset=I_DI_READ_0();    \/\/\u041f\u043e\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430, \u0440\u0435\u0441\u0435\u0442\u0438\u043c \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043b\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0431\u0438\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0438\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<pre><code class=\"cpp\">    TIM[3].On=0;     TIM[3].Off=1; <\/code><\/pre>\n<p>  \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0435\u0433\u043e \u0431\u0438\u0442\u0430 On.<\/p>\n<p>  \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0442\u0430\u043a \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0431\u0438\u0442.<\/p>\n<pre><code class=\"cpp\">    if (GetStatusSwTimer(&TIM[1]))     \/\/\u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a     if (TIM[3].Status){                \/\/\u0418\u043b\u0438 \u0442\u0430\u043a         TIM[3].Status=0;                \/\/\u0421\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0431\u0438\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430                                         \/\/\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430         \/*UserCode*\/     }  <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u0442\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440, \u0430 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0435\u0433\u043e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c \u041f\u0423\u0421\u0422\u041e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0441 \u0440\u0435\u0436\u0438\u043c\u043e\u043c SWTIMER_MODE_EMPTY. \u0418\u043b\u0438 \u043f\u0440\u044f\u043c\u043e \u044d\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c.<\/p>\n<pre><code class=\"cpp\">    OnSwTimer(&TIM[3],SWTIMER_MODE_EMPTY,0);    \/\/\u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a     TIM[3].Mode=SWTIMER_MODE_EMPTY;            \/\/\u0418\u043b\u0438 \u0442\u0430\u043a <\/code><\/pre>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0438 \u0432\u0442\u043e\u0440\u044b\u0435 \u0434\u0432\u0430 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0434\u0430\u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0434\u0438\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0442.\u0434. \u041c\u043e\u0434\u0443\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/druid.su\/files\/sw_timer_modul.zip\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451.       <\/p>\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=\"http:\/\/habrahabr.ru\/post\/273077\/\"> http:\/\/habrahabr.ru\/post\/273077\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043f\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u041c\u041a, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0434\u0430\u0447\u0438. \u041e\u0434\u043d\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438, \u0434\u0440\u0443\u0433\u0438\u0435 \u0442\u0430\u043a\u0438\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c. \u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u041c\u041a \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 STM32F4 \u2014 \u0430\u0436 14 \u0448\u0442\u0443\u043a, \u0438 \u044d\u0442\u043e \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f SysTick (\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e), \u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438 \u043f\u0430\u0440\u0430 \u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430 \u0441\u0447\u0430\u0441\u0442\u044c\u0435: \u0442\u043e\u0442 \u0436\u0435 PIC16, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u043d\u0435 \u0441\u043f\u0435\u0448\u043d\u044b\u0445, \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0442\u0430\u0439\u043c\u0435\u0440, \u043d\u0430 \u0431\u0430\u0437\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230;<\/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-270300","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270300","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=270300"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270300\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}