{"id":271211,"date":"2015-12-27T02:27:02","date_gmt":"2015-12-26T23:27:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271211"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271211","title":{"rendered":"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 ILI9341 + STM32. \u0427\u0430\u0441\u0442\u044c 4.2"},"content":{"rendered":"<p>       <a href=\"http:\/\/geektimes.ru\/post\/267682\/\">\u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267712\/\">\u0427\u0430\u0441\u0442\u044c 2<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267812\/\">\u0427\u0430\u0441\u0442\u044c 3<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267986\/\">\u0427\u0430\u0441\u0442\u044c 4.1<\/a><\/p>\n<h4><b>\u041f\u0440\u043e\u043b\u043e\u0433<\/b><\/h4>\n<p>  \u041c\u043d\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043a\u043e\u0434\u0430 \u0438 \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043e\u043e\u0431\u0449\u0435. \u042f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u00ab\u0437\u043e\u043b\u043e\u0442\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f\u00bb, <i><u>\u043f\u043e\u044d\u0442\u043e\u043c\u0443:<\/u><\/i><br \/>  \u0430) \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a <s>\u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0430\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0447\u0438\u0442\u0430\u0442\u044c<\/s><br \/>  \u0431) \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0435\u0433\u043e<br \/>  \u0432) \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 SPL<br \/>  \u0433) \u0432 \u043e\u0431\u044a\u0435\u043c\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439, \u043f\u043e\u043a\u0430\u0436\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0439 \u0432 \u043a\u043e\u0434\u0435<br \/>  \u0434) \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043e\u043f\u0438\u0448\u0443 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 ILI9341, \u0442.\u043a. \u0442\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0436\u0435\u0432\u0430\u043d\u0430, \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u2014 \u043a\u0430\u043a \u043e\u0431\u0434\u0443\u043c\u0430\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (\u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u043b \u043b\u0438\u0448\u044c \u043a\u043e\u0434 \u0441 \u0444\u0440\u0430\u0437\u043e\u0439: \u00ab\u0432\u043e\u0442 \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043d\u0435 \u0432\u0434\u0443\u043c\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0447\u0442\u043e \u044d\u0442\u043e\u00bb) \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 SPI.<\/p>\n<p>  <u>\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u043a\u043e\u0434\u0430 \u0432\u044b \u0442\u0443\u0442 \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442\u0435,<\/u> \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043c\u0435\u0440\u0443, \u0438\u043d\u0430\u0447\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0442\u0430\u043a \u0432 200-250. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e (<i>\u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u0434\u0443\u0442<\/i>) \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0422\u0435, \u043a\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0441\u044f\u0434\u0435\u0442 \u0437\u0430 \u041c\u041a \u2014 \u043d\u0435 \u0431\u043e\u0439\u0442\u0435\u0441\u044c, \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u044f \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0443 \u0438 \u043f\u043e\u043c\u043e\u0433\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b \u043e\u0441\u0438\u043b\u0438\u0442\u0435. <br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u041a\u0430\u043a\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438?<\/b><\/h4>\n<p>  <i>\u0421\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443<\/i> \u2014 <u>\u043a\u043e\u0434 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0435 \u00ab\u0440\u043e\u0434\u043d\u043e\u0439\u00bb, \u043d\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043d \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/u> \u0422.\u043a. IAR \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043e\u0444\u0442 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0434\u0430 \u0438 \u043a\u0430\u043a-\u0442\u043e \u0435\u0433\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u043e\u0431\u0445\u043e\u0434\u044f\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 \u0438\u0437-\u0437\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d, \u0442\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u00ab\u043a\u043e\u043a\u043e\u0441\u00bb (<b><i>CooCoxIDE 1.7.7<\/i><\/b>). \u0422\u0430\u043a \u0436\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0442\u043e\u0439\u0442\u0438 \u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 <i>SPL.<\/i><\/p>\n<p>  <u><i>SPL<\/i><\/u> \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043e\u0442 ST \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439 \u041c\u041a STM32. \u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u044b\u0448\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 HAL, \u043d\u043e \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u0432\u044b\u0442\u0435\u0441\u043d\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0435 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u041f\u043b\u044e\u0441\u044b \u0438 \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0433\u0443\u0433\u043b\u0435. <br \/>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b <i>SPL<\/i> \u2014 \u0442.\u043a. \u043c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u043e\u0441\u043b\u0435 \u00ab\u0436\u0435\u0441\u0442\u043a\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438\u00bb, \u043e\u043d\u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435, HAL \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u043b\u0435\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 <i>RTOS.<\/i> \u042d\u0442\u043e \u0441\u0443\u0433\u0443\u0431\u043e \u043c\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435, \u044f \u043d\u0435 \u043f\u0440\u043e\u0448\u0443 \u043d\u0438\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0432\u0435\u0440\u0443 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0438\u043b\u0438 \u0445\u0443\u0436\u0435, \u043d\u0435 \u0441\u0442\u043e\u0438\u0442.<\/p>\n<p>  \u041a\u0430\u043a \u044f \u0432\u044b\u0448\u0435 \u043f\u0438\u0441\u0430\u043b \u2014 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0432 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430:<\/p>\n<h6><u>\u041f\u043b\u044e\u0441\u044b:<\/u><\/h6>\n<p>\u0430) \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c SPL \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f, \u0430 \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0441 \u0443\u043a\u043b\u043e\u043d\u043e\u043c \u043f\u043e\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435;<br \/>  \u0431) \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435, \u043c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c 1,5 \u0447\u0430\u0441\u0430 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434 \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0441 \u043d\u0443\u043b\u044f \u0438 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u0435\u0433\u043e;<br \/>  \u0432) \u0431\u043e\u043b\u0435\u0435 \u043b\u0435\u0433\u043a\u0438\u0439 \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0441 \u043a\u0430\u043c\u043d\u044f \u043d\u0430 \u043a\u0430\u043c\u0435\u043d\u044c, \u043d\u0443 \u0432\u0434\u0440\u0443\u0433 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442\u0443 STM32F103RBT6, \u0430 \u0435\u0441\u0442\u044c STM32F105VCT6 \u0438 \u0432\u044b \u043d\u0430 \u043d\u0435\u043c \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c.<\/p>\n<h6><u>\u041c\u0438\u043d\u0443\u0441\u044b:<\/u><\/h6>\n<p>\u0430) \u0444\u0443\u043d\u043a\u0446\u0438\u0438 SPL \u0431\u043e\u043b\u0435\u0435 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0435 \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f. <b>\u041d\u043e \u044d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u043e\u0435 \u0436\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435;<\/b><br \/>  \u0431) \u0432 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0430\u0445 \u0432\u0435\u0441\u044c \u0440\u0430\u0437\u0431\u043e\u0440 \u0438\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 \u0438 \u044d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441.<\/p>\n<h5><i><u>\u041c\u043e\u0439 \u0438\u0442\u043e\u0433:<\/u><\/i><\/h5>\n<p> <i>\u041c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 CoIDE \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c SPL \u0440\u043e\u0432\u043d\u043e \u0434\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u043e\u043a\u0430 \u0432\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0441\u0435\u0431\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u043c. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u043e\u0439 \u2014 \u0442\u0443\u0442 \u0436\u0435 \u043f\u0435\u0440\u0435\u0441\u0430\u0436\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 IAR \u0438 \u043a\u0443\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u044b \u0441 \u0438\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438. <\/i><\/p>\n<h4><b>\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/h4>\n<p>  <u><i>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0438\u043a\u0438\u043d\u0435\u043c <s>\u0445\u0440\u0435\u043d \u043a \u043d\u043e\u0441\u0443<\/s> \u043e\u0431\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/i><\/u><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/429\/c11\/a77\/429c11a7793b437cbb35d0f83f822695.jpg\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 1 \u2014 \u0411\u043b\u043e\u043a-\u0441\u0445\u0435\u043c\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c\u043e \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u0448\u0430 \u0447\u0430\u0441\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0442\u043e\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 TFT \u043f\u0430\u043d\u0435\u043b\u044c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d (<i>\u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0413\u041e\u0421\u0422\u0443<\/i>), \u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u043a \u0441 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439. \u0412\u0440\u043e\u0434\u0435 \u0431\u044b \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u0448\u0430 \u043f\u043b\u0430\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443, \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0435\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0445 <b>85 <sup>\u043e<\/sup>\u0421<\/b> \u0434\u043e\u043b\u0436\u043d\u0430 <i>\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e <\/i> \u043f\u0443\u0442\u0435\u043c \u043f\u043e\u0434\u0430\u0447\u0438 <i>\u043b\u043e\u0433. 1<\/i> \u043d\u0430 \u043d\u043e\u0433\u0438 <b>SD<\/b> \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 <i>IR2110<\/i> \u0432 \u0441\u0438\u043b\u043e\u0432\u044b\u0445 \u043f\u043b\u0430\u0442\u0430\u0445. \u0410 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0428\u0418\u041c\u0430, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043a\u0443\u043b\u043b\u0435\u0440\u0430\u043c\u0438. <br \/>  \u0412\u0441\u0435 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0442\u0430\u043a \u0436\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u043e\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f <s><i>\u00ab\u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439\u00bb<\/i><\/s> \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043e\u043a \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438\u043b\u0438 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. <br \/>  \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0439, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0435\u0433\u043e \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442.<\/p>\n<h4><b>\u0427\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e?<\/b><\/h4>\n<p>  1) <u>\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u043e\u0444\u0442 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/u> \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 <b>CooCoxIDE 1.7.7<\/b>, \u043d\u0438\u0436\u0435 \u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u043b \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0443 \u043d\u0430 \u0441\u0432\u043e\u0439 \u042f\u0414, \u0433\u0434\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0443\u0436\u0435 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432 \u043d\u0435\u0439 <i>SPL<\/i>, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441 \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0438 \u043d\u0435 \u0438\u0441\u043a\u0430\u043b\u0438. \u0412\u0441\u0435 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u043c \u0435\u0441\u0442\u044c:<br \/>  <a href=\"https:\/\/yadi.sk\/d\/yjRAx1iHmVMfd\">CooCoxIDE 1.7.7<\/a><\/p>\n<p>  2) \u0421\u043a\u0430\u0447\u0430\u0442\u044c <b>\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0441\u043a\u0440\u0438\u043f<\/b> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u0442\u0430\u0448\u0438\u0442 \u043d\u0430 <u><i>STM32F103<\/i><\/u>:<br \/>  <a href=\"https:\/\/yadi.sk\/i\/3GZ00dwrmWTFj\">Datasheet STM32F103<\/a><\/p>\n<p>  3) \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 <i>\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0435 \u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/i> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441 \u043c\u0430\u043d\u0443\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0443\u0433\u043b\u0438\u0442\u0441\u044f \u043a\u0430\u043a <b>RM0008 <\/b> \u0438 \u0438\u043c\u0435\u0435\u0442 \u044d\u043f\u0438\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0432 1128 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u042d\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u043e\u0431\u044a\u0435\u043c\u043d\u043e\u0435 \u043d\u0430\u0443\u0447\u043d\u043e\u0435 \u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u043e\u0441\u0438\u043b\u0438\u043b, \u043f\u0440\u0430\u0432\u0434\u0430 \u0431\u044b\u043b\u0438 \u0435\u0449\u0435 \u0432\u0441\u0435 \u0442\u043e\u043c\u0430 \u041b\u0430\u043d\u0434\u0430\u0443-\u041b\u0438\u0432\u0448\u0438\u0446\u0430, \u043d\u043e \u0442\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043d\u0438\u0433 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438\u2026 \u042f \u043a \u0447\u0435\u043c\u0443 \u2014 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043f\u0440\u0438 \u043b\u044e\u0431\u044b\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0445 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043a\u0430\u0445 \u0438 \u043a\u0443\u0440\u044c\u0435\u0437\u0430\u0445. <br \/>  <a href=\"https:\/\/yadi.sk\/i\/tqS3MGmEmWUb5\">RM0008<\/a><\/p>\n<p>  4) \u0415\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0431\u043b\u043e\u0433 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0435\u043d\u044c\u043a\u0430 \u0441 \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e ST \u2014 \u0411\u043e\u0433, \u0443 \u043d\u0435\u0433\u043e \u0442\u0430\u043c \u0440\u0430\u0437\u0436\u0435\u0432\u0430\u043d\u0430 \u043f\u0435\u0440\u0435\u0444\u0435\u0440\u0438\u044f \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:<br \/>  <a href=\"http:\/\/catethysis.ru\/\">\u041d\u0438\u043a\u043e\u043b\u0430\u0439 \u0413\u043e\u0440\u0431\u0443\u043d\u043e\u0432<\/a><\/p>\n<p>  5) \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435\u2026 \u0431\u0435\u0436\u0438\u043c \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043a\u0443 <b>STM32CubeMX<\/b> \u2014 <a href=\"http:\/\/www.st.com\/web\/en\/catalog\/tools\/PF259242\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 ST<\/a><\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0432\u044b \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u044f \u0432\u0430\u043c \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u043b \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<h4><b>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442<\/b><\/h4>\n<h6><u>1) \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0444\u0435\u0440\u0438\u044e \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c<\/u><\/h6>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f42\/ff7\/e8c\/f42ff7e8c2294b0794184837aa833066.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 2 \u2014 \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0444\u0435\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/p>\n<p>  <i>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u043a\u0442\u043e \u0438 \u0437\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442:<\/i><\/p>\n<p>  \u0430) <b>CMSIS core<\/b> \u2014 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u042d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0414\u0430\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u00ab\u044f\u0434\u0440\u043e\u00bb, \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044f<\/p>\n<p>  \u0431) <b>RCC<\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0430\u044f \u0437\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0445\u0438\u0442\u0440\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e. \u0414\u0430\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438. <\/p>\n<p>  \u0432) <b>GPIO<\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u043e\u0440\u0442\u0430\u043c\u0438 \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430. \u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438.<\/p>\n<p>  \u0433) <b>DMA<\/b> \u2014 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043f\u0440\u044f\u043c\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u043f\u0430\u043c\u044f\u0442\u0438. \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u2014 \u0442\u0435\u043c\u0430 \u0440\u0430\u0437\u0436\u0435\u0432\u0430\u043d\u0430, \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u043f\u043e\u043a\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p>  \u0434) <b>SPI<\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c <i>SPI<\/i>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043a\u0443\u0447\u0435\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u044b \u043e\u0431\u0449\u0430\u0435\u043c\u0441\u044f \u0441 <i>TFT<\/i> \u044d\u043a\u0440\u0430\u043d\u043e\u043c \u043d\u0430<i> ILI9341<\/i>.<\/p>\n<p>  \u0435) <b>TIM<\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0422\u0443\u0442 \u0434\u0443\u043c\u0430\u044e \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <i>\u0428\u0418\u041c<\/i> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0443\u043b\u043b\u0435\u0440\u0430\u043c\u0438 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439. <\/p>\n<p>  \u0436) <b>ADC<\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0430\u0448\u0435\u0439 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439 <i>\u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e-\u0446\u0438\u0444\u0440\u043e\u0432\u044b\u043c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<\/i> (\u0410\u0426\u041f), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0442\u043e\u043a.<\/p>\n<h4><b>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/h4>\n<p>  \u042f \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0440\u043e\u043a\u0438 \u043f\u043e <b>\u0421<\/b>, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0441\u044c \u043d\u0430 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044e \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u044f\u043b\u0438\u0441\u044c \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u041c\u041a \u0438 \u043c\u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u0445 \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c, \u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c. \u041f\u0435\u0440\u0432\u044b\u0435 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>  1) <b>define<\/b> \u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e. \u041f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0442\u0443\u0442 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u043a\u0430\u043a \u0438 \u044f, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437\u0443\u0447\u0430\u043b) <\/p>\n<p>  <u>\u041f\u0440\u0438\u043c\u0435\u0440 1:<\/u><\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0436\u0438\u0433\u0430\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b>GPIO_SetBits(GPIOA, GPIO_Pin_1);<\/b> \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b>GPIO_ResetBits(GPIOA, GPIO_Pin_1);<\/b>. \u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0430\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u044d\u0442\u0438\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438. \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0432\u0430\u043c \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0435\u0435 100 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0438 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code>#define LED_ON        GPIO_SetBits(GPIOA, GPIO_Pin_1); #define LED_OFF       GPIO_ResetBits(GPIOA, GPIO_Pin_1); <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438? \u0410 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438 \u0441\u0435\u0431\u0435 \u0436\u0438\u0437\u043d\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b <b>LED_ON;<\/b> (<u><i>\u0442\u043e\u0447\u043a\u0430 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430<\/i><\/u>), \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0440\u0430\u0437\u044b \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <b>GPIO_SetBits(GPIOA, GPIO_Pin_1);<\/b> \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  <u>\u041f\u0440\u0438\u043c\u0435\u0440 2:<\/u><\/p>\n<p>  \u0412\u044b \u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u043d\u0438 \u0432 \u0433\u043e\u0434\u0443. \u0427\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e <b>365<\/b> (\u0430 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0445\u043e\u0442\u044c \u041f\u0438) \u043c\u044b \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0438 \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code>#define Year   365 <\/code><\/pre>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a \u043a\u0430\u043a <b>365<\/b> \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430, \u0430 \u043d\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435 \u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439. \u0418\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435 <b>365<\/b>, \u0430 <b>365;<\/b> \u0438 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043a\u0430\u043a \u043e\u0448\u0438\u0431\u043a\u0430. <\/p>\n<p>  <u><i>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 <b>#define X1 Y2<\/b> \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u0441\u0435\u0445 X1 \u043d\u0430 Y2.<\/i><\/u><\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0442\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0441\u0430\u043c\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435:<\/p>\n<p>  2) <b>include<\/b> \u2014 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043e\u0434\u0443 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. <\/p>\n<p>  <u>\u041f\u0440\u0438\u043c\u0435\u0440 1:<\/u><\/p>\n<p>  \u041b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043d\u0430\u0448 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b! \u041c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0433\u0430\u043b\u043e\u0447\u043a\u0430\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u041a\u043e\u043a\u043e\u0441 \u0432\u0437\u044f\u043b \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0444\u0430\u0439\u043b\u044b \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043d\u0430\u0448\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. \u042d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0445 \u043f\u0440\u0438\u0446\u0435\u043f\u0438\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c \u0444\u0430\u0439\u043b\u0435 <i>main.<\/i><br \/>  \u042f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0442\u0430\u043b \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0410\u0426\u041f, \u0442\u0430\u0439\u043c\u0435\u0440\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u0447\u0442\u043e \u043c\u044b \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u0432\u044b\u0448\u0435 \u0438 \u043d\u0435 \u0434\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0442\u0443\u0442. \u041f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043d\u0435 \u0437\u0430\u0431\u0438\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443. <i>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/i><\/p>\n<pre><code>#include &quot;stm32f10x_conf.h&quot; #include &quot;stm32f10x_rcc.h&quot; #include &quot;stm32f10x.h&quot; #include &quot;stm32f10x_gpio.h&quot; #include &quot;stm32f10x_spi.h&quot;  #include &quot;TFT ILI9341.h&quot;  <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0432\u0437\u044f\u043b\u0438 \u044d\u0442\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0444\u0430\u0439\u043b \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u0435\u0440\u0435\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/41e\/307\/e22\/41e307e22d8946f3ae170da67f74e300.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 3 \u2014 \u0414\u0435\u0440\u0435\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438<\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0432\u0441\u0435, \u0447\u0442\u043e \u043c\u044b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b\u0438 \u0435\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u00ab\u0434\u0435\u0440\u0435\u0432\u0435\u00bb. \u042d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 CMSIS \u0438 \u043f\u0440\u043e\u0447\u0438\u0435. \u0422\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u0430:<\/p>\n<p>  \u0430) \u0434\u0443\u043c\u0430\u044e \u043c\u043e\u043c\u0435\u043d\u0442 \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u043d\u043e \u0443\u0442\u043e\u0447\u043d\u044e \u2014 <b>#include \u00ab\u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430\u00bb<\/b> \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u043d\u0430\u0434\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0438\u043c\u044f \u0432 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0438 \u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u043e\u043a\u0438. <\/p>\n<p>  \u0431) \u0435\u0441\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e \u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0444\u0430\u0439\u043b\u044b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <b>.h<\/b>, \u043d\u0430\u0434\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a. \u0427\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <b>.h<\/b> \u0438 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <b>.c<\/b><\/p>\n<p>  \u0432) \u0435\u0441\u0442\u044c 2 \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a <i>SPL<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0432 <i>main<\/i>.<\/p>\n<pre><code>#include &quot;stm32f10x_conf.h&quot; #include &quot;stm32f10x.h&quot; <\/code><\/pre>\n<p>  \u0433) \u043a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0444\u0430\u0439\u043b <b>font.h<\/b> \u044f \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b <b>main<\/b>, \u0442.\u043a. \u043e\u043d \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u0444\u0430\u0439\u043b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <b>TFT ILI9341.h<\/b> \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a? FONT \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441 \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 TFT \u043f\u0430\u043d\u0435\u043b\u044c\u044e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0433\u0440\u043e\u043c\u043e\u0436\u0434\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b <i>main<\/i> \u044f \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b \u0448\u0440\u0438\u0444\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <b>#include <\/b> \u0443\u0436\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430 <i>TFT ILI9341.h<\/i>.<\/p>\n<p>  3) <b>\u041e\u0442\u043b\u0438\u0447\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0440\u0430\u0437\u0440\u0438\u0448\u0435\u043d\u0438\u044f\u043c\u0438 .h \u0438 .c<\/b><\/p>\n<p>  \u041b\u044e\u0431\u0430\u044f \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0434\u0432\u0443\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 <b>.c<\/b> \u0412 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0424\u0430\u0439\u043b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u0430 <b>.h<\/b> \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e.<br \/>  \u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0444\u0430\u0439\u043b <b>.h<\/b> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u043d\u043a\u043b\u0443\u0434\u044b, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <i>FONT<\/i> \u0434\u043b\u044f <i>TFT ILI9341<\/i>. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043d\u0435\u0439 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u0441\u0435 <i>define<\/i>, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439, \u043a\u0430\u043a \u0432\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u044b\u0448\u0435 \u2014 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b, \u0430 \u0444\u0430\u0439\u043b <i>.c<\/i> \u0438\u0434\u0435\u0442 \u00ab\u0445\u0432\u043e\u0441\u0442\u043e\u043c\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 <i>.h<\/i><\/p>\n<p>  \u0424\u0443\u0445\u2026 \u0432\u0441\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0432\u0437\u043e\u0440\u0432\u0430\u043b\u0441\u044f \u043c\u043e\u0437\u0433, \u0442\u043e \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u043e\u0445\u043d\u0438\u0442\u0435, \u043f\u043e\u043f\u0435\u0439\u0442\u0435 \u0447\u0430\u044f \u0438 \u043f\u043e\u0439\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0437\u0430 \u0441\u0430\u043c\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c. <\/p>\n<hr\/>\n<h4><b>\u0422\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 STM32<\/b><\/h4>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u0438 \u0445\u0438\u0442\u0440\u043e\u043c\u0443 \u043f\u0443\u043d\u043a\u0442\u0443. \u0422\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <i>STM<\/i>\u043e\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043a\u0430\u043a \u0443 AVR \u0438 \u043f\u0438\u043a\u043e\u0432. \u0422\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0432\u0430\u0440\u0446\u0430 \u0438 \u0433\u043e\u043d\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u043c\u0435\u043d\u044c.<\/p>\n<p>  <i>\u0412 STM32 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a: <\/i><\/p>\n<p>  \u0430) \u041c\u041a \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 <i>HSI<\/i> \u2014 \u044d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0430 8 \u041c\u0413\u0446<br \/>  \u0431) \u041f\u043e\u0442\u043e\u043c \u041c\u041a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 <i>HSE<\/i> \u2014 \u044d\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0440\u0435\u0437\u043e\u043d\u0430\u0442\u043e\u0440<br \/>  \u0432) \u0414\u0430\u043b\u0435\u0435 \u0441\u0438\u0433\u043d\u0430\u043b \u0438\u0434\u0435\u0442 \u043d\u0430 PLL, \u0433\u0434\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u0438 \u0438\u0434\u0435\u0442 \u043d\u0430 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e.<\/p>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0437-\u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b \u043d\u0430 STM-\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a \u0441\u0442\u0443\u043f\u043e\u0440: \u043a\u0432\u0430\u0440\u0446 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u043d\u0430 8 \u041c\u0413\u0446, \u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0430 72 \u041c\u0413\u0446. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043a\u0432\u0430\u0440\u0446\u044b \u044d\u0442\u043e 8, 16, 24 \u041c\u0413\u0446. \u0414\u0430\u043b\u044c\u0448\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. <br \/>  \u0412\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u0435 \u0438\u0437 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0430, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043d\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 14. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0441\u043a\u0440\u0438\u043f \u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435)<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b38\/5d0\/01a\/b385d001a28a46e98e1fab0afa8cdb3d.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 4 \u2014 \u0421\u0445\u0435\u043c\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 STM32<\/p>\n<p>  \u0415\u0449\u0435 \u043f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0441 <i>PLL <\/i>(\u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u044b) \u0438 \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f. \u0415\u0441\u0442\u044c \u0434\u0432\u0435 \u0448\u0438\u043d\u044b: <i>APB2<\/i> \u0438 <i>APB1<\/i>, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0438\u0441\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044f. \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 \u0448\u0438\u043d\u044b \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0435: 72 \u041c\u0413\u0446 \u0443 APB2 \u0438 36 \u041c\u0413\u0446 \u0443 APB1, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 1-\u0439 \u0448\u0438\u043d\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0440\u0430\u0432\u043d\u0430 <i>1\/2<\/i> \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0441 <i>PLL<\/i>.<\/p>\n<p>  <u>\u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440: <\/u> \u0443 <i>SPI1<\/i> \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u0438\u0434\u0435\u0442 \u0441 \u0448\u0438\u043d\u044b APB2 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 72 \u041c\u0413\u0446, \u0430 <i>SPI2<\/i> \u0432\u0438\u0441\u0438\u0442 \u043d\u0430 \u0448\u0438\u043d\u0435 APB1 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 36 \u041c\u0413\u0446 \u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c SPI2 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435. <u>\u042d\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c!<\/u><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0448\u0438\u043d. \u0417\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <b>RCC<\/b>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 <b>stm32f10x_rcc.h<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435.<\/p>\n<pre><code>void RCC_Configuration(void) {          RCC_DeInit();                                               \/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0431\u0440\u043e\u0441 reset      RCC_HSEConfig(RCC_HSE_ON);                                  \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 HSE (\u043e\u0442 \u043a\u0432\u0430\u0440\u0446\u0430)      HSEStartUpStatus = RCC_WaitForHSEStartUp();                 \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0432\u0430\u0440\u0446\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f      if (HSEStartUpStatus == SUCCESS)                            \/\/ \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043a\u0432\u0430\u0440\u0446     {                  RCC_HCLKConfig(RCC_SYSCLK_Div1);                        \/\/ \u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0432 1 (Div1), \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f 72 \u041c\u0413\u0446         RCC_PCLK2Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB2 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_PCLK1Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB1 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_ADCCLKConfig(RCC_PCLK2_Div2);                       \/\/ \u0421\u0442\u0430\u0432\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 2 (Div2) \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 36 \u041c\u0413\u0446 \u0432\u043c\u0435\u0441\u0442\u043e 72 \u041c\u0413\u0446         RCC_PLLConfig(RCC_PLLSource_PREDIV1, RCC_PLLMul_9);     \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c 9, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 8 \u041c\u0413\u0446 * 9 = 72 \u041c\u0413\u0446 \u043d\u0430 PLL                  RCC_PLLCmd(ENABLE);                                     \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c PLL                  while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET) {}  \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043a\u0430\u043d\u0438\u0442\u0441\u044f                  RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);              \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c PLL \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430                   while (RCC_GetSYSCLKSource() != 0x08) {}                \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f     } } <\/code><\/pre>\n<p>  <i>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0435\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0435 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u041c\u041a \u0441\u0435\u0440\u0438\u0438 <b>F10x<\/b>, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/i><\/p>\n<pre><code>\/*************************************** \u0422\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 **********************************\/  void RCC_Configuration(void); ErrorStatus HSEStartUpStatus; RCC_ClocksTypeDef RCC_Clocks;   void RCC_Configuration(void) {          RCC_DeInit();                                               \/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0431\u0440\u043e\u0441 reset      RCC_HSEConfig(RCC_HSE_ON);                                  \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 HSE (\u043e\u0442 \u043a\u0432\u0430\u0440\u0446\u0430)      HSEStartUpStatus = RCC_WaitForHSEStartUp();                 \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0432\u0430\u0440\u0446\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f      if (HSEStartUpStatus == SUCCESS)                            \/\/ \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043a\u0432\u0430\u0440\u0446     {                  RCC_HCLKConfig(RCC_SYSCLK_Div1);                        \/\/ \u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0432 1 (Div1) \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f 72 \u041c\u0413\u0446         RCC_PCLK2Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB2 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_PCLK1Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB1 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_ADCCLKConfig(RCC_PCLK2_Div2);                       \/\/ \u0421\u0442\u0430\u0432\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 2 (Div2) \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 36 \u041c\u0413\u0446 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0439 72 \u041c\u0413\u0446         RCC_PLLConfig(RCC_PLLSource_PREDIV1, RCC_PLLMul_9);     \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u044b 9, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 8 \u041c\u0413\u0446 * 9 = 72 \u041c\u0413\u0446 \u043d\u0430 PLL                  RCC_PLLCmd(ENABLE);                                     \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c PLL                  while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET) {}  \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043a\u0430\u043d\u0438\u0442\u0441\u044f                  RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);              \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c PLL \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430                   while (RCC_GetSYSCLKSource() != 0x08) {}                \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f     } } <\/code><\/pre>\n<p>  \u042f \u0434\u0443\u043c\u0430\u044e \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e. <\/p>\n<h4><b>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u043e\u0440\u0442\u0430\u043c\u0438 \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 <\/b><\/h4>\n<p>  <i>GPIO<\/i> \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u043e\u0440\u0442\u044b \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430. \u042d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u0430 \u043e\u0441\u043d\u043e\u0432, \u0442.\u043a. \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0440\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0430. <br \/>  \u0420\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u044f \u0431\u0443\u0434\u0443 \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u043e\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0445\u0435\u043c\u0435. \u0418\u0437 <a href=\"http:\/\/geektimes.ru\/post\/267986\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<p>  <i>\u0430) \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u21161 (LED1) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a PB12<br \/>  \u0431) \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u21162 (LED2) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a PB13<br \/>  \u0432) \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u21163 (LED3) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a PB14<br \/>  \u0433) \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u21164 (LED4) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a PB15<br \/>  \u0434) \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u21165 (LED5) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a P\u04216<\/i><\/p>\n<p>  \u0427\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u2026 \u0423 STM-\u043e\u043a \u0435\u0441\u0442\u044c \u043f\u043e\u0440\u0442\u044b, \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 16 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u043e\u0442 0 \u0434\u043e 15. \u041f\u0440\u0430\u0432\u0434\u0430 \u0435\u0441\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043c\u0435\u044e\u0442 16 \u043d\u043e\u0433\u0443, \u0430 \u043c\u043e\u0433\u0443\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043b\u0438\u0448\u044c 4 \u0438\u043b\u0438 5. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>PB12 <\/b> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u043e\u0440\u0442 B \u0438 12-\u0439 \u0432\u044b\u0432\u043e\u0434. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 <b>STM32CubeMX<\/b> \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0433\u0434\u0435 \u044d\u0442\u0438 \u043d\u043e\u0433\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043b\u0438 \u043d\u0430\u043c \u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0442\u044c. <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/801\/0f0\/bb6\/8010f0bb648e4fa1be3db81b026ece1a.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 5 \u2014 \u0412\u044b\u0431\u043e\u0440 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0444\u0435\u0440\u0438\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 STM32CubeMX<\/p>\n<p>  \u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c STM \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0445 <i>\u00ab\u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c\u00bb<\/i> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043d\u043e\u0433\u0438 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430, \u0430 \u0432\u0441\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u0430 \u043d\u0430 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u043e\u0433\u0438 (\u0437\u0430\u043f\u0430\u0441\u043d\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442), \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 <b>Remap<\/b>. \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043b\u0430\u0442\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u043c \u0442\u0435\u043c, \u0447\u0442\u043e \u0434\u0430\u044e\u0442 \u043d\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 ST.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0436\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u044b \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0438\u0434\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0432\u044b\u0432\u043e\u0434 \u0432 <b>\u043b\u043e\u0433.1<\/b>, \u0442.\u043a. \u0430\u043d\u043e\u0434\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \u041c\u041a, \u0430 \u043a\u0430\u0442\u043e\u0434\u044b \u0441 \u00ab\u043c\u0438\u043d\u0443\u0441\u0443\u00bb \u0441\u0445\u0435\u043c\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>stm32f10x_gpio.h<\/b> \u0438 \u043b\u0438\u0441\u0442\u0430\u0435\u043c \u0432\u043d\u0438\u0437 \u0444\u0430\u0439\u043b\u0430, \u0442\u0430\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/296\/adb\/44f\/296adb44fc564433929f6284553c91c1.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 6 \u2014 \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 GPIO<\/p>\n<p>  \u0422\u0430\u043c \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0441\u0431\u0440\u043e\u0441\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u0430:  <\/p>\n<pre><code>void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438: \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0435\u0435, \u0432\u0438\u0434\u0438\u043c\u043e \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 <i>GPIO_TypeDef* GPIOx<\/i>, \u043a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e <i>\u00ab\u0445\u00bb<\/i> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0440\u0442, \u0443 \u043d\u0430\u0441 \u044d\u0442\u043e \u043f\u043e\u0440\u0442\u044b \u0412 \u0438 \u0421, \u043f\u043e\u043b\u0443\u0447\u0438\u043c <b>GPIOB<\/b>. \u0422\u0443\u0442 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043f\u0440\u043e\u0441\u0438\u043b \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0432\u043a\u0443\u0440\u0438\u0432\u0430\u0442\u044c, \u0442\u0443\u0442 \u0443\u0436\u0435 \u043f\u043e\u0440\u0430). \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0432 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 <b>uint16_t GPIO_Pin<\/b>, \u0442\u0443\u0442 \u0432\u0438\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <i>GPIO_Pin<\/i>, \u0442\u0430\u043a \u0436\u0435 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0442\u0438\u043f \u044d\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c <b>16 \u0431\u0438\u0442<\/b>, \u0442\u043e \u0435\u0441\u0442\u044c <i>2<sup>16<\/sup><\/i> \u0438\u043b\u0438 \u0436\u0435 <i>65536<\/i>. \u041d\u043e \u043d\u0430\u043c \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u044f \u0434\u0443\u043c\u0430\u044e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 (\u043f\u0438\u043d\u0430) <i>\u043e\u0442 0 \u0434\u043e 15.<\/i> \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c <b>GPIO_Pin_12<\/b>. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434:  <\/p>\n<pre><code>GPIO_SetBits(GPIOB, GPIO_Pin_12);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 GPIO_SetBits(GPIOB, GPIO_Pin_13);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 GPIO_SetBits(GPIOB, GPIO_Pin_14);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 GPIO_SetBits(GPIOB, GPIO_Pin_15);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 GPIO_SetBits(GPIOC, GPIO_Pin_6);             \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5 <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043a \u043a\u0430\u043a\u043e\u0439 \u043d\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434, \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0435 \u0431\u0443\u043a\u0432\u044b, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0434 \u0445\u043e\u0442\u044f \u0431\u044b \u0432 5 000 \u0441\u0442\u0440\u043e\u043a \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0439 \u043a\u0430\u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e)) \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <b>#define<\/b> \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u043a\u043e\u0434:  <\/p>\n<pre><code>#define LED1_ON      GPIO_SetBits(GPIOB, GPIO_Pin_12);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 #define LED2_ON      GPIO_SetBits(GPIOB, GPIO_Pin_13);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 #define LED3_ON      GPIO_SetBits(GPIOB, GPIO_Pin_14);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 #define LED4_ON      GPIO_SetBits(GPIOB, GPIO_Pin_15);            \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 #define LED5_ON      GPIO_SetBits(GPIOC, GPIO_Pin_6);             \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u00ab\u043b\u0430\u043c\u043f\u043e\u0447\u043a\u0438\u00bb. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043d\u044b\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>SetBits<\/i> \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 <i>ResetBits<\/i> \u2014 \u0434\u0443\u043c\u0430\u044e \u0442\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u044f\u0441\u043d\u043e. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0438\u0442\u043e\u0433\u0435 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code>#define LED1_ON       GPIO_SetBits(GPIOB, GPIO_Pin_12);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 #define LED2_ON       GPIO_SetBits(GPIOB, GPIO_Pin_13);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 #define LED3_ON       GPIO_SetBits(GPIOB, GPIO_Pin_14);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 #define LED4_ON       GPIO_SetBits(GPIOB, GPIO_Pin_15);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 #define LED5_ON       GPIO_SetBits(GPIOC, GPIO_Pin_6);               \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5 \t #define LED1_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_12);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 #define LED2_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_13);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 #define LED3_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_14);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 #define LED4_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_15);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 #define LED5_OFF      GPIO_ResetBits(GPIOC, GPIO_Pin_6);             \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0437\u0430\u0436\u0438\u0433\u0430\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <b>LED1_ON;<\/b> \u0427\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a \u0436\u0435 LED1_OFF;<\/p>\n<p>  \u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e? \u0410 \u043d\u0435\u0442! \u041e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435, \u043d\u043e \u043e\u043d \u0431\u044b \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043b\u044e\u0434\u0435\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0443\u0433\u043d\u0443\u043b \u0431\u044b. \u0425\u043e\u0442\u044f \u043e\u043d \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442 \u043d\u0435\u0433\u043e \u2014 \u044d\u0442\u043e <b>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 GPIO<\/b>. \u042d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0440\u0442\u0443 \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0440\u0430\u0442\u044c \u0435\u043c\u0443 \u0442\u0430\u043a\u0442\u043e\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443, \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <b>stm32f10x_gpio.h<\/b>, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043a \u043d\u0435\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0435\u0449\u0435 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <b>stm32f10x_rcc.h<\/b> \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c. <br \/>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439 <i>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0435 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/i>, \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0432 <b>stm32f10x_rcc.h<\/b>, \u0438\u0434\u0435\u043c \u0442\u0443\u0434\u0430 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0445 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a \u0436\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/006\/c86\/ff8\/006c86ff8424433da81ba5b06ac7001b.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 7 \u2014 \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<p>  \u0422\u0443\u0442 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043d\u0430\u043c APB2 \u0438 APB1, \u044d\u0442\u043e \u0448\u0438\u043d\u044b \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u043d\u0430\u0448\u0438 \u043f\u043e\u0440\u0442\u044b. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438 \u0421 \u0438 \u0412 \u0441\u0438\u0434\u044f\u0442 \u043d\u0430 APB2, \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0435. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f: \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441. \u0421\u0442\u0430\u0442\u0443\u0441\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0430: <b>ENABLE<\/b> (\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e) \u0438 <b>DISABLE.<\/b> \u0425\u0437 \u043f\u043e\u0447\u0435\u043c\u0443, \u043d\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0441\u0442\u0430\u0442\u0443\u0441, \u0438\u043d\u0430\u0447\u0435 \u041a\u043e\u043a\u043e\u0441 \u043d\u0435 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442 \u0442\u0435\u043a\u0441\u0442.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0443\u0434\u0430-\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0434\u0435\u043c \u0432 \u0444\u0430\u0439\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <b>stm32f10x_rcc.h<\/b> \u0438 \u0436\u043c\u0435\u0442 <u><b>Ctrl + F<\/b><\/u> \u2014 \u044d\u0442\u043e \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0444\u0430\u0439\u043b\u0443, \u043f\u0438\u0448\u0435\u043c \u0432 \u043d\u0435\u0433\u043e RCC_APB2Periph \u0438 \u0436\u043c\u0435\u043c <i>Find<\/i>. \u0418 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0442\u044b\u043a\u0430\u0435\u043c <i>Find<\/i> \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0439\u0434\u0435\u043c \u0434\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432\u0441\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0430\u044f \u043d\u0430\u0434\u043f\u0438\u0441\u044c. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/005\/276\/292\/0052762928fd42f3a1c7aead1bb43ac1.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 8 \u2014 \u041f\u043e\u0438\u0441\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/p>\n<p>  \u0418 \u0442\u0430\u043a\u2026 \u043a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043c\u044b \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0432\u0435\u0440\u043d\u0435\u0435 2 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442.\u043a. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430 \u0412 \u0438 \u0421:  <\/p>\n<pre><code>RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); <\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0444\u0430\u0439\u043b\u0443 <b>stm32f10x_gpio.h<\/b> \u0418\u0434\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0438 \u0438\u0449\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043d\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <i>Init<\/i>, \u0442\u0443\u0442 \u0441\u043f\u043b\u043e\u0448\u043d\u043e\u0435 \u043a\u0430\u043f\u0438\u0442\u0430\u043d\u0441\u0442\u0432\u043e \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0435\u0448\u044c \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0445\u043e\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0414\u0430\u043b\u044c\u0448\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>GPIO_Init<\/b> \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 <i>Ctrl + F<\/i>:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/53d\/745\/442\/53d7454425454d71bcc69fc5f40f8290.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 9 \u2014 \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0442\u044b\u043a\u0430\u0435\u043c <i>Find<\/i> \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0439\u0434\u0435\u043c \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043a\u0430\u043a \u043e\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/525\/3f6\/459\/5253f64595144c1386b3d30d9608f1f1.JPG\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 10 \u2014 \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<p>  \u0442\u0430\u043a \u043e\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 3-\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445:<br \/>  \u0430) GPIO_Pin \u2014 \u0442\u0443\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a \u0432\u044b\u0432\u043e\u0434 \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c<br \/>  \u0431) GPIO_Speed \u2014 \u0442\u0443\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\/\u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u043e\u0433\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<br \/>  \u0432) GPIO_Mode \u2014 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u043e\u0433\u0438<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e, \u043d\u0430\u0436\u0430\u0442\u044c <i>Ctrl + F<\/i> \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438 \u043d\u0430\u0436\u0430\u0442\u044c<i> Find<\/i>, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f:<\/p>\n<pre><code>RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);                          \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u0442\u0430  GPIO_InitTypeDef led;                                                          \/\/ \u0414\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 led  led.GPIO_Pin = (GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15) ;       \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u0442\u0441\u044f \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 led.GPIO_Speed = GPIO_Speed_2MHz;                                              \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u044b led.GPIO_Mode = GPIO_Mode_Out_PP;                                              \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u0433, \u0442\u0443\u0442 \u0432\u044b\u0445\u043e\u0434 push-pull GPIO_Init(GPIOB, &led);                                                        \/\/ \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0435 \u0438\u043b\u0438 \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0442\u044c, \u0447\u0430\u0441\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u0430\u043b\u044c\u0448\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0437\u0443\u0447\u0430\u0442\u044c. <br \/>  \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u044f \u0442\u0443\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b 2 \u041c\u0413\u0446, \u0442.\u043a. \u0432 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0447\u0443\u0442\u043e\u0447\u043a\u0443 \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u043a\u0430. \u0415\u0441\u043b\u0438 \u044d\u0442\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043b\u044f <i>SPI<\/i>, \u0442\u043e \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e, <u>\u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f<\/u>. \u0414\u0443\u043c\u0430\u044e \u0442\u0443\u0442 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u043b\u0438\u0447\u043a\u0443. <\/p>\n<p>  <b>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u043a\u043e\u0434<\/b>. \u041e\u043d \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a: <u>\u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u043a\u0430\u0436\u0434\u043e\u043c\u0443! <\/u><\/p>\n<pre><code>#include &quot;stm32f10x_conf.h&quot; #include &quot;stm32f10x_rcc.h&quot; #include &quot;stm32f10x.h&quot; #include &quot;stm32f10x_gpio.h&quot; #include &quot;stm32f10x_spi.h&quot;  #include &quot;TFT ILI9341.h&quot;   #define LED1_ON       GPIO_SetBits(GPIOB, GPIO_Pin_12);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 #define LED2_ON       GPIO_SetBits(GPIOB, GPIO_Pin_13);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 #define LED3_ON       GPIO_SetBits(GPIOB, GPIO_Pin_14);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 #define LED4_ON       GPIO_SetBits(GPIOB, GPIO_Pin_15);              \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 #define LED5_ON       GPIO_SetBits(GPIOC, GPIO_Pin_6);               \/\/ \u0417\u0430\u0436\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5           \t #define LED1_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_12);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 1 #define LED2_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_13);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 2 #define LED3_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_14);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 3 #define LED4_OFF      GPIO_ResetBits(GPIOB, GPIO_Pin_15);            \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 4 #define LED5_OFF      GPIO_ResetBits(GPIOC, GPIO_Pin_6);             \/\/ \u0413\u0430\u0441\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u2116 5    \/****************************************************************************************************************\/ \/********************** \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b **********************************************************\/ \/****************************************************************************************************************\/  \/*************************************** \u0422\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 **********************************\/  void RCC_Configuration(void); ErrorStatus HSEStartUpStatus; RCC_ClocksTypeDef RCC_Clocks;   void RCC_Configuration(void) {      RCC_DeInit();                                               \/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0431\u0440\u043e\u0441 reset     RCC_HSEConfig(RCC_HSE_ON);                                  \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 HSE (\u043e\u0442 \u043a\u0432\u0430\u0440\u0446\u0430)     HSEStartUpStatus = RCC_WaitForHSEStartUp();                 \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0432\u0430\u0440\u0446\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f      if (HSEStartUpStatus == SUCCESS)                            \/\/ \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043a\u0432\u0430\u0440\u0446     {          RCC_HCLKConfig(RCC_SYSCLK_Div1);                        \/\/ \u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0432 1 (Div1) \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f 72 \u041c\u0413\u0446         RCC_PCLK2Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB2 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_PCLK1Config(RCC_HCLK_Div1);                         \/\/ \u0417\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u043c APB1 \u043e\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL \u0432 72 \u041c\u0413\u0446         RCC_ADCCLKConfig(RCC_PCLK2_Div2);                       \/\/ \u0421\u0442\u0430\u0432\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 2 (Div2) \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 36 \u041c\u0413\u0446 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0439 72 \u041c\u0413\u0446         RCC_PLLConfig(RCC_PLLSource_PREDIV1, RCC_PLLMul_9);     \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u044b 9, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 8 \u041c\u0413\u0446 * 9 = 72 \u041c\u0413\u0446 \u043d\u0430 PLL          RCC_PLLCmd(ENABLE);                                     \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c PLL          while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET) {}  \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043a\u0430\u043d\u0438\u0442\u0441\u044f          RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);              \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c PLL \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430           while (RCC_GetSYSCLKSource() != 0x08) {}                \/\/ \u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 PLL \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f     } }    \/************************** \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0442\u0435\u043b\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b ***********************************************\/ \/**************************************************************************************************\/ \/**************************************************************************************************\/  int main(void) { \t RCC_GetClocksFreq (&RCC_Clocks);      RCC_Configuration();      RCC_GetClocksFreq (&RCC_Clocks);         \/************* \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 *****************************************\/       RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);                          \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u0442\u0430  GPIO_InitTypeDef led;                                                          \/\/ \u0414\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 led  led.GPIO_Pin = (GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15) ;       \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u0442\u0441\u044f \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 led.GPIO_Speed = GPIO_Speed_2MHz;                                              \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u044b led.GPIO_Mode = GPIO_Mode_Out_PP;                                              \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u0433, \u0442\u0443\u0442 \u0432\u044b\u0445\u043e\u0434 push-pull GPIO_Init(GPIOB, &led);                                                        \/\/ \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e           \t            \t \t   \twhile(1) \t{ \t\t \t\tLED1_ON; \t\tLED2_OFF; \t\tLED3_ON; \t\tLED4_ON; \t\tLED5_OFF;  \t}  } <\/code><\/pre>\n<p>  <u><i>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u043a\u0432\u0430\u0440\u0446\u0430 \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 SPL \u0438 \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c GPIO \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u0438. \u0422\u0430\u043a \u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0430\u043b\u044f \u0434\u0435\u0444\u0430\u0439\u043d \u0438 \u0438\u043d\u043a\u043b\u0443\u0434, \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u0434\u0435.<\/i><\/u><\/p>\n<h4><b>\u042d\u043f\u0438\u043b\u043e\u0433<\/b><\/h4>\n<p>  \u0414\u0430 \u0443\u0436, \u0441\u0442\u0430\u0442\u0435\u0439\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u0433\u043b\u0430 \u043c\u043d\u0435 \u0433\u043e\u043b\u043e\u0432\u0443, \u0442.\u043a. \u0441\u0435\u043d\u0441\u0435\u0439 \u0438\u0437 \u043c\u0435\u043d\u044f \u043f\u043b\u043e\u0445\u043e\u0439, \u0430 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0435 \u043f\u0440\u043e\u0441\u0438\u043b\u0438. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u0442\u0435, \u043a\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0441\u043c\u043e\u0433\u0443 \u043f\u043e\u043d\u044f\u0442\u044c \u043c\u0435\u043d\u044f, \u043c\u043e\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u0435\u0442\u0443. <br \/>  \u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043d\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f, <b>\u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 4.3<\/b>, \u0433\u0434\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e \u0438 \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443. \u041d\u0435 \u0445\u043e\u0442\u0435\u043b \u044f \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432, \u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0430\u0436\u0435 \u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u043a\u0438 \u0432 \u043e\u0431\u044a\u0435\u043c\u0435 \u043e\u0434\u043d\u043e \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f 4.3 \u0441 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u044b\u0439\u0434\u0435\u0442 \u0434\u043e \u041d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u0434\u0430, \u0447\u0430\u0441\u0442\u0438 \u0441 \u0441\u0438\u043b\u043e\u0432\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0443\u0436\u0435 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u043e\u0434\u0443. \u041f\u0440\u0430\u0432\u0434\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f <i>\u043f\u043b\u044e\u0448\u043a\u0430<\/i> \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u2014 \u0434\u043e \u041d\u0413 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u0443\u044e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0446\u0438\u043a\u043b\u0443 \u043f\u0440\u043e \u0418\u0411\u041f, \u043d\u043e \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0438\u043c\u0435\u044e\u0449\u0430\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0441\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0438. <br \/>  \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u2014 <b>\u00ab\u0418\u0437\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043d\u044b\u0439 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f 0-60\u0412 \u0438 20\u0410\u00bb.<\/b> \u041f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0443 \u043c\u0435\u043d\u044f \u0433\u043e\u0442\u043e\u0432, \u043e\u0431\u043a\u0430\u0442\u0430\u043d \u0438 \u0433\u043e\u0442\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0432\u0435\u0442. <\/p>\n<p>  <u>\u041f\u043e\u0436\u0430\u043b\u0443\u0439 \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0438 \u043f\u0440\u043e\u0441\u044c\u0431\u0430 \u043a <s>\u043a\u043b\u0430\u0441\u0441\u043d\u044b\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c<\/s> \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0432\u0441\u0435 \u043c\u043e\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u043c\u0438. \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e!<\/u>               <\/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:\/\/geektimes.ru\/post\/268228\/\"> http:\/\/geektimes.ru\/post\/268228\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/geektimes.ru\/post\/267682\/\">\u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267712\/\">\u0427\u0430\u0441\u0442\u044c 2<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267812\/\">\u0427\u0430\u0441\u0442\u044c 3<\/a><br \/>  <a href=\"http:\/\/geektimes.ru\/post\/267986\/\">\u0427\u0430\u0441\u0442\u044c 4.1<\/a><\/p>\n<h4><b>\u041f\u0440\u043e\u043b\u043e\u0433<\/b><\/h4>\n<p>  \u041c\u043d\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043a\u043e\u0434\u0430 \u0438 \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043e\u043e\u0431\u0449\u0435. \u042f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u00ab\u0437\u043e\u043b\u043e\u0442\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f\u00bb, <i><u>\u043f\u043e\u044d\u0442\u043e\u043c\u0443:<\/u><\/i><br \/>  \u0430) \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a <s>\u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0430\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0447\u0438\u0442\u0430\u0442\u044c<\/s><br \/>  \u0431) \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0435\u0433\u043e<br \/>  \u0432) \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 SPL<br \/>  \u0433) \u0432 \u043e\u0431\u044a\u0435\u043c\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439, \u043f\u043e\u043a\u0430\u0436\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0439 \u0432 \u043a\u043e\u0434\u0435<br \/>  \u0434) \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043e\u043f\u0438\u0448\u0443 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 ILI9341, \u0442.\u043a. \u0442\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0436\u0435\u0432\u0430\u043d\u0430, \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u2014 \u043a\u0430\u043a \u043e\u0431\u0434\u0443\u043c\u0430\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (\u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u043b \u043b\u0438\u0448\u044c \u043a\u043e\u0434 \u0441 \u0444\u0440\u0430\u0437\u043e\u0439: \u00ab\u0432\u043e\u0442 \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043d\u0435 \u0432\u0434\u0443\u043c\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0447\u0442\u043e \u044d\u0442\u043e\u00bb) \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 SPI.<\/p>\n<p>  <u>\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u043a\u043e\u0434\u0430 \u0432\u044b \u0442\u0443\u0442 \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442\u0435,<\/u> \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043c\u0435\u0440\u0443, \u0438\u043d\u0430\u0447\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0442\u0430\u043a \u0432 200-250. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e (<i>\u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u0434\u0443\u0442<\/i>) \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0422\u0435, \u043a\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0441\u044f\u0434\u0435\u0442 \u0437\u0430 \u041c\u041a \u2014 \u043d\u0435 \u0431\u043e\u0439\u0442\u0435\u0441\u044c, \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u044f \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0443 \u0438 \u043f\u043e\u043c\u043e\u0433\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b \u043e\u0441\u0438\u043b\u0438\u0442\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-271211","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271211","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=271211"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271211\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}