{"id":282941,"date":"2016-12-23T13:30:05","date_gmt":"2016-12-23T10:30:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282941"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282941","title":{"rendered":"\u041f\u0435\u0440\u0432\u044b\u0435 \u0448\u0430\u0433\u0438 \u0441 STM32 \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c mikroC \u0434\u043b\u044f ARM \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u2014 \u0427\u0430\u0441\u0442\u044c 1"},"content":{"rendered":"<p>\u0415\u0449\u0435 \u0432 \u0441\u0442\u0443\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u043e\u0434\u044b \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u0442\u0435\u0441\u043d\u043e \u043e\u0431\u043e\u0431\u0449\u0430\u0442\u0441\u044f \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0440\u0435\u043c\u0438, \u0442\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0431\u044b\u043b\u0438 8-\u0431\u0438\u0442\u043d\u044b\u0435 8051 \u0438 AVR. \u0421\u0435\u0439\u0447\u0430\u0441, \u0437\u0430\u0445\u043e\u0442\u0435\u0432 \u0432\u0435\u0440\u043d\u0443\u0442\u0441\u044f \u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043d\u044f\u0442\u0438\u044e, \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u0441\u0432\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u0448\u0438\u0440\u043e\u043a\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 STM32. \u041e \u043d\u0438\u0445 \u043d\u0435\u043c\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438, \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044f \u0438\u0437\u044a\u044f\u0432\u0438\u043b \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 STM\u043a\u0430\u043c\u0438. \u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u0438\u043c\u0438 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0441 \u043f\u043e\u043b\u043d\u043e\u0433\u043e 0. \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043d\u043e\u044e \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0434\u0435\u0448\u0435\u0432\u0430\u044f (3$) \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 Maple Mini. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0432 \u043d\u0435\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32F103CB \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0431\u0443\u043a\u0435\u0442\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0446\u0435\u043d\u043e\u0432\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438). \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0441\u0435\u0442\u0438, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0432 <a href=\"http:\/\/www.st.com\/content\/ccc\/resource\/technical\/document\/datasheet\/33\/d4\/6f\/1d\/df\/0b\/4c\/6d\/CD00161566.pdf\/files\/CD00161566.pdf\/jcr:content\/translations\/en.CD00161566.pdf\">\u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0435.<\/a>. \u0420\u043e\u0434\u043d\u0430\u044f \u0410\u0440\u0434\u0443\u0438\u043d\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430c\u044c \u043f\u043e \u0432\u043a\u0443\u0441\u0443 (\u043d\u0430 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u044f\u0442&#8230;). \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u0438\u0437\u043e\u0431\u0438\u043b\u0438\u044f \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0441\u0432\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 mikroC for ARM \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 mikroelektronika. \u041a\u043e\u0433\u0434\u0430-\u0442\u043e \u044f \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0438\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438(\u0434\u043b\u044f 8081), \u043c\u043d\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c. \u0425\u043e\u0442\u044c \u0438 \u043d\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u044f\u043a\u043e\u0432, \u043d\u043e \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p><a name=\"habracut\"><\/a>   <\/p>\n<p>\u041f\u043b\u0430\u0442\u0430 \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434, \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/21e\/98b\/b43\/21e98bb4385e412faeeabb0d2a35b1f2.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043b\u0430\u0442\u044b \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u0430, \u043d\u043e \u0432\u0441\u0435 \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0437\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3ef\/4b2\/f88\/3ef4b2f8851b4cb3a9145ab05231eb7e.JPG\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0431\u0440\u0430\u043d \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u043a\u043b\u043e\u043d ST-LINK2 (3$), \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u043d \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 mikro\u0421 <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b97\/18f\/8fe\/b9718f8fe4f14f128a4bee1bcaafbc7c.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <a href=\"https:\/\/download.mikroe.com\/setups\/compilers\/mikroc\/arm\/mikroc-arm-setup-v4.90.zip\">\u0434\u0435\u043c\u043e-\u0432\u0435\u0440\u0441\u0438\u044e mikroC<\/a>. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u043c\u043e-\u0432\u0435\u0440\u0441\u0438\u0438: \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 4KB \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u041d\u0435 \u043c\u043d\u043e\u0433\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u043d\u0430 ST-LINK2 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u0430 mikroC. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u0441 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043a\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f: <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d46\/9a1\/6f8\/d469a16f8d884fbd8ff79d62eab38c45.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0431\u043e\u0440\u0430 \u0442\u0438\u043f\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 mikroC \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0448 <strong> Shift-Ctrl-E <\/strong> (Project \u2014 Edit Project). \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u043e\u043a\u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f STM32 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432. \u0412\u043e\u043e\u0431\u0449\u0435 \u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0445\u043e\u0442\u044f \u0431\u044b \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f \u0441 <a href=\"http:\/\/www.st.com\/content\/ccc\/resource\/technical\/document\/reference_manual\/59\/b9\/ba\/7f\/11\/af\/43\/d5\/CD00171190.pdf\/files\/CD00171190.pdf\/jcr:content\/translations\/en.CD00171190.pdf\">Reference manual <\/a>\u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432. \u041a \u043d\u0435\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0435\u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/45f\/673\/18e\/45f67318eb4844beb434a63967db5b89.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p><em>\u0411\u043b\u043e\u043a-\u0441\u0445\u0435\u043c\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0430 STM32F103<\/em><\/p>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 <strong>RCC_CR \u0438 RCC_CGGR<\/strong><\/p>\n<p>  <\/p>\n<ul>\n<li>Internal high-speed clock enable \u2014 \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 8\u041c\u0413\u0446(HSI) <strong>(oscillator OFF)<\/strong><\/li>\n<li>External high-speed clock enable \u2014 \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 8\u041c\u0413\u0446(HSE) <strong>(oscillator ON)<\/strong><\/li>\n<li>External high-speed clock enable \u2014 \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0432\u0445\u043e\u0434\u0443 OSC \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0432\u0430\u0440\u0446\u0430. \u041c\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0432\u0430\u0440\u0446\u0430 <strong>(HSE oscillator not bypassed)<\/strong><\/li>\n<li>Clock se\u0441urity system enable \u2014 \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441\u0438\u0441\u0442\u0435\u043c \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u0441\u0438\u0433\u043d\u0430\u043b\u0430; \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <strong>(Clock detector OFF)<\/strong><\/li>\n<li>PLL Enable \u2014 \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\/\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u044b <strong>(PLL ON)<\/strong><\/li>\n<li>System clock switch \u2014 \u0412\u044b\u0431\u043e\u0440 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u0430\u043b\u0430 SYSCLOCK: PLL, \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c PLL. \u0418\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 HSE \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 PLL \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044f\u0434\u0440\u043e \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <strong>(PLL selected as system clock)<\/strong><\/li>\n<li>Set and cleared by software to control the division factor of the AHB clock \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0435\u0434\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f SYSCLOCK \u0434\u043b\u044f \u0448\u0438\u043d\u044b AHB, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0439\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u041c\u041a; \u043f\u043e\u043a\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c *<em>(SYSCLOCK not divided)<\/em><\/li>\n<li>APB low-speed prescaller APB1 \u2014 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u043b\u044f \u043d\u0438\u0437\u043a\u043e\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u041c\u041a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0448\u0438\u043d\u044b I2C <strong>(HCLK not divided)<\/strong><\/li>\n<li>APB high speed prescaller APB 2- \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u041c\u041a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0440\u0442\u043e\u0432 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430, \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0438 \u0442.\u0434. <strong>(HCLK not devided)<\/strong><\/li>\n<li>ADC prescaller \u2014 \u043f\u0440\u0435\u0434\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u0410\u0426\u041f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e APB 2 <strong>(PCLK2 divided by 2)<\/strong><\/li>\n<li>PLL entry clock source \u2014 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043d\u0430 \u0432\u0445\u043e\u0434 PLL, \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u043b\u0438\u0431\u043e 1\/2 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e RC \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043b\u0438\u0431\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 PREDIV1; \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <strong>(Clock from PREDIV1 selected as the PLL input clock)<\/strong><\/li>\n<li>HSE divider for PLL entry \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e PREDIV1; \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <strong>(HSE clock not divided)<\/strong><\/li>\n<li>PLL multiplication factor \u2014 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f PLL. \u041d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0432\u0430\u0440\u0446\u0430 8 \u041c\u0413\u0446, \u043f\u0440\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0435 11 \u0438\u043c\u0435\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 72 \u041c\u0413\u0446 \u0434\u043b\u044f SYSCLOCK <strong>(PLL input clock \u0445 11)<\/strong><\/li>\n<li>USB prescaller \u2014 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0448\u0438\u043d\u044b USB. USB \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 48 \u041c\u0413\u0446, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c 1,5 <strong>(PLL clock divided by 1.5)<\/strong><\/li>\n<\/ul>\n<p>  <\/p>\n<p>MSU clock frequency \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 SYSCLOCK \u2014 72\u041c\u0413\u0446 <strong>(72.000000) <\/strong> <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/477\/e0f\/dcc\/477e0fdcc74642d1aee2559e6a464a2d.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u041c\u041a. \u0412\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f 1 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043c\u043e\u0440\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c (\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043d\u043e\u0436\u043a\u0435 PB1):<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u043e\u0432 GPIO \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 \u0432 microC \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f <\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">GPIO_Digital_Output(&amp;GPIO\u0445_BASE, _GPIO_PINMASK_ALL);\/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434<\/code><\/pre>\n<p>  <\/p>\n<p>\u043e\u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0430 GPIO\u0445 \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440. \u0414\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043f\u043e\u0440\u0442 \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <em>GPIO\u0445_ODR<\/em>. <\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">GPIO\u0445_ODR = ; \/\/ \u0420\u0435\u0433\u0438c\u0442\u0440 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043f\u043e\u0440\u0442<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0431\u0438\u0442\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440 \u0431\u0438\u0442\u0430 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0) \u043f\u0438\u0448\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">REGx.by; \/\/ \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c\u0443 (y) \u0431\u0438\u0442\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (\u0445)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>Delay_ms()<\/em> (\u0438\u043b\u0438 <em>Delay_us()<\/em>) \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u0412\u043e\u0442 \u043d\u0430\u0448\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void main()  {   GPIO_Digital_Output(&amp;GPIOb_BASE, _GPIO_PINMASK_1);  \/\/\u0414\u0435\u043b\u0430\u0435\u043c PB1 \u0432\u044b\u0445\u043e\u0434\u043e\u043c   GPIOb_ODR.b1 = 0; \/\/\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 GPIOb_ODR \u0432 15 \u0431\u0438\u0442 = 0      while(1) \/\/ \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b       {         GPIOb_ODR.b1=~GPIOb_ODR.b1;  \/\/\u0418\u043d\u0432\u0435\u0440\u0441\u0438\u044f 15 \u0431\u0438\u0442\u0430          Delay_ms(500); \/\/\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 500 \u043c\u0441       } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c \u0441\u0440\u0430\u0437\u0443 \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043d\u043e\u0436\u043a\u0430\u043c \u043f\u043e\u0440\u0442\u0430 \u043f\u0438\u0448\u0435\u043c <em>_GPIO_PINMASKn<\/em> \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &quot;\u0438\u043b\u0438&quot;, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">GPIO_Digital_Output(&amp;GPIOb_BASE, _GPIO_PINMASK_1 | _GPIO_PINMASK_7); \/\/PB1 \u0438 PB7 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 GPIO_Digital_Output(&amp;GPIOa_BASE, _GPIO_PINMASK_ALL ); \/\/\u0412\u0441\u0435 \u043d\u043e\u0433\u0438 PA \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u0432\u044b\u0445\u043e\u0434<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043c\u0435\u0430\u043d\u0434\u0440 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u041c\u041a, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u0440\u0442\u0430 PB15 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c 5 \u043c\u0441. :<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void main()  {   GPIO_Digital_Output(&amp;GPIOb_BASE, _GPIO_PINMASK_15);   GPIOb_ODR.b15 = 0;     while(1)       {         GPIOb_ODR.b15=~GPIOb_ODR.b15;         Delay_ms(5); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 5 \u043c\u0441.(\u0418\u043c\u043f\u0443\u043b\u044c\u0441 10 \u043c\u0441, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 100 \u0413\u0446)       } }  <\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u0432\u044b\u0432\u043e\u0434\u0435 PB15 \u0438\u043c\u0435\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ac1\/435\/faf\/ac1435faf75940fe88ab682c1efef442.JPG\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0440\u0442\u0430, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <em>GPIO\u0445_IDR<\/em>, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 \u043f\u043e\u0440\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 GPIO_Digital_Input (*port, pin_mask). \u041d\u0430 \u043d\u0430\u0448\u0435\u0439 \u043f\u043b\u0430\u0442\u0435 \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0430\u044f \u043a \u0432\u044b\u0432\u043e\u0434\u0443 \u043f\u043e\u0440\u0442\u0430 PB8. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u0436\u0438\u0433\u0430\u0435\u0442 \u043c\u0438\u0433\u0430\u044e\u0449\u0438\u0439 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0435 PB1 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435.<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void main() {   GPIO_Digital_Output(&amp;GPIOb_BASE, _GPIO_PINMASK_1);   GPIO_Digital_Input(&amp;GPIOb_BASE, _GPIO_PINMASK_8); \/\/ \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434 PB8 \u043d\u0430 \u0432\u0445\u043e\u0434   GPIOb_ODR.b1 = 0;      while(1)       {         if (GPIOb_IDR.b8) \/\/\u0415\u0441\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0430 \u0431\u0438\u0442 8 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 GPIOb_IDR \u0440\u0430\u0432\u0435\u043d 1           {            GPIOb_ODR.b1=~GPIOb_ODR.b1;            Delay_ms(500); \/\/\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 500 \u043c\u0441           }         else           {            GPIOb_ODR.b1 = 0; \/\/\u0415\u0441\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438, \u043f\u043e\u0433\u0430\u0441\u0438\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434           }       } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c 1 \u0447\u0430\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u043a \u043a\u043e\u043d\u0446\u0443. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0412\u0430\u0441 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0428\u0418\u041c \u043c\u043e\u0434\u0443\u043b\u044f\u0446\u0438\u0438, \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u0430\u043c\u0438 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043f\u043e\u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0440\u0435\u0431\u0435\u0437\u0433\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435.<\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/318306\/\"> https:\/\/habrahabr.ru\/post\/318306\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0449\u0435 \u0432 \u0441\u0442\u0443\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u043e\u0434\u044b \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u0442\u0435\u0441\u043d\u043e \u043e\u0431\u043e\u0431\u0449\u0430\u0442\u0441\u044f \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0440\u0435\u043c\u0438, \u0442\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0431\u044b\u043b\u0438 8-\u0431\u0438\u0442\u043d\u044b\u0435 8051 \u0438 AVR. \u0421\u0435\u0439\u0447\u0430\u0441, \u0437\u0430\u0445\u043e\u0442\u0435\u0432 \u0432\u0435\u0440\u043d\u0443\u0442\u0441\u044f \u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043d\u044f\u0442\u0438\u044e, \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u0441\u0432\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u0448\u0438\u0440\u043e\u043a\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 STM32. \u041e \u043d\u0438\u0445 \u043d\u0435\u043c\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438, \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044f \u0438\u0437\u044a\u044f\u0432\u0438\u043b \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 STM\u043a\u0430\u043c\u0438. \u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u0438\u043c\u0438 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0441 \u043f\u043e\u043b\u043d\u043e\u0433\u043e 0. \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043d\u043e\u044e \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0434\u0435\u0448\u0435\u0432\u0430\u044f (3$) \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 Maple Mini. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0432 \u043d\u0435\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32F103CB \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0431\u0443\u043a\u0435\u0442\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0446\u0435\u043d\u043e\u0432\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438). \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0441\u0435\u0442\u0438, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0432 <a href=\"http:\/\/www.st.com\/content\/ccc\/resource\/technical\/document\/datasheet\/33\/d4\/6f\/1d\/df\/0b\/4c\/6d\/CD00161566.pdf\/files\/CD00161566.pdf\/jcr:content\/translations\/en.CD00161566.pdf\">\u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0435.<\/a>. \u0420\u043e\u0434\u043d\u0430\u044f \u0410\u0440\u0434\u0443\u0438\u043d\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430c\u044c \u043f\u043e \u0432\u043a\u0443\u0441\u0443 (\u043d\u0430 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u044f\u0442&#8230;). \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u0438\u0437\u043e\u0431\u0438\u043b\u0438\u044f \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0441\u0432\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 mikroC for ARM \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 mikroelektronika. \u041a\u043e\u0433\u0434\u0430-\u0442\u043e \u044f \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0438\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438(\u0434\u043b\u044f 8081), \u043c\u043d\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c. \u0425\u043e\u0442\u044c \u0438 \u043d\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u044f\u043a\u043e\u0432, \u043d\u043e \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c. <\/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-282941","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282941","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=282941"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282941\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}