{"id":323875,"date":"2021-05-27T15:01:21","date_gmt":"2021-05-27T15:01:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=323875"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=323875","title":{"rendered":"HK32F030C8T6 \u5168\u529f\u80fd\u514b\u9686 (\u043f\u043e\u043b\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u043e\u043d) STM32F030C8T6"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u043b\u0451\u0433\u043a\u0430\u044f \u043f\u0440\u0435\u043b\u044e\u0434\u0438\u044f&#8230;<\/p>\n<p>STMicroelectronics \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4-5 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435 \u0441\u043e\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0438\u043a\u0440\u043e\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0438 \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u044c\u043d\u043e &#171;\u0437\u0430\u0442\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u044f\u0441\u0430&#187;. \u041d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442 \u0447\u0442\u043e \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u043f\u044b \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u044c\u043d\u043e \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0438 \u0432 \u0446\u0435\u043d\u0435, \u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0447\u0438\u043f\u043e\u0432 \u0442\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0438 \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c&#8230; \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0442\u044f\u043d\u0443\u043b\u0438\u0441\u044c, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0434\u0435\u0444\u0438\u0446\u0438\u0442\u043e\u043c, \u043a \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c.<\/p>\n<p>\u0412\u043e\u0442 \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 HK32F030C8T6 \u043f\u043e \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u044f\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f (\u0428\u044d\u043d\u044c\u0447\u0436\u044d\u043d\u044c Hangshun Chip Technology R&amp;D Co., Ltd.) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0435\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0442\u0430 STM32F030C8T6. \u0418\u0442\u0430\u043a, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c&#8230;<\/p>\n<h2>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e&#8230;<\/h2>\n<p>\u0421\u0443\u0434\u044f \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e: &#171;HK32F030x4 \/ HK32F030x6 \/ HK32F030x8. HK32F030 \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Shenzhen Haohan Tianji Processor Co., Ltd., \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Shenzhen Hangshun Chip Technology Research Co., Ltd.&#187;.<\/p>\n<p>\u0418 \u0442\u0443\u0442 \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u044f \u0431\u044b\u043b \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435! \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0447\u0438\u043f\u044b \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043f\u0438\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043e\u0442 2,0 \u0412 \u0434\u043e 5,5 \u0412. \u0412\u043e \u0432\u0442\u043e\u0440\u044b\u0445: \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u044f\u0434\u0440\u0430 \u0430\u0436 \u0434\u043e 72 \u041c\u0413\u0446!!! \u041f\u0440\u044f\u043c \u0441\u043a\u0430\u0437\u043a\u0430 \u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e!!! \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0441\u0430\u043c\u0438!!!:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043d \u0442\u0435\u0445. \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd8\/a8c\/9a9\/dd8a8c9a9b8d1a10c1744782b5dd6b66.png\" width=\"636\" height=\"831\"><figcaption><\/figcaption><\/figure>\n<p>\u0410\u0445 \u0434\u0430. &#171;\u0414\u0430\u0442\u0430\u0448\u0438\u0442&#187; \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c&#8230;<\/p>\n<\/div>\n<\/details>\n<p>&#8230;\u0447\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435!!!<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043d \u0442\u0435\u0445. \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d37\/3cc\/aed\/d373ccaed42afc8811b50d89d339df74.png\" width=\"658\" height=\"789\"><figcaption><\/figcaption><\/figure>\n<\/div>\n<\/details>\n<p>\u0422\u0443\u0442 \u044f \u0434\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0434\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0447\u0430\u0441\u0442\u043e\u0442&#8230; \u0438 \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435\u0434\u043e\u0443\u043c\u0435\u0432\u0430\u044e&#8230;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a1\/9aa\/d46\/3a19aad46355a0193fd1496f9cd74079.png\" width=\"1468\" height=\"817\"><figcaption><\/figcaption><\/figure>\n<p>&#8230;\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RCC_CFGR4, \u0443 STM&#8217;\u043a\u0438 \u0435\u0433\u043e \u043d\u0435\u0442! \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b &#171;stm32f0xx.h&#187;:<\/p>\n<pre><code class=\"cpp\">typedef struct {   __IO uint32_t CR;         \/*!&lt; RCC clock control register,                                  Address offset: 0x00 *\/   __IO uint32_t CFGR;       \/*!&lt; RCC clock configuration register,                            Address offset: 0x04 *\/   __IO uint32_t CIR;        \/*!&lt; RCC clock interrupt register,                                Address offset: 0x08 *\/   __IO uint32_t APB2RSTR;   \/*!&lt; RCC APB2 peripheral reset register,                          Address offset: 0x0C *\/   __IO uint32_t APB1RSTR;   \/*!&lt; RCC APB1 peripheral reset register,                          Address offset: 0x10 *\/   __IO uint32_t AHBENR;     \/*!&lt; RCC AHB peripheral clock register,                           Address offset: 0x14 *\/   __IO uint32_t APB2ENR;    \/*!&lt; RCC APB2 peripheral clock enable register,                   Address offset: 0x18 *\/   __IO uint32_t APB1ENR;    \/*!&lt; RCC APB1 peripheral clock enable register,                   Address offset: 0x1C *\/   __IO uint32_t BDCR;       \/*!&lt; RCC Backup domain control register,                          Address offset: 0x20 *\/    __IO uint32_t CSR;        \/*!&lt; RCC clock control &amp; status register,                         Address offset: 0x24 *\/   __IO uint32_t AHBRSTR;    \/*!&lt; RCC AHB peripheral reset register,                           Address offset: 0x28 *\/   __IO uint32_t CFGR2;      \/*!&lt; RCC clock configuration register 2,                          Address offset: 0x2C *\/   __IO uint32_t CFGR3;      \/*!&lt; RCC clock configuration register 3,                          Address offset: 0x30 *\/   __IO uint32_t CR2;        \/*!&lt; RCC clock control register 2,                                Address offset: 0x34 *\/ } RCC_TypeDef;<\/code><\/pre>\n<p>\u041d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c, \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0447\u0442\u043e \u043d\u0430 CFGR4 \u043c\u043d\u0435 \u043f\u043e\u0444\u0438\u0433, \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0443 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u043f\u0430 \u043d\u0435\u0442:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/76e\/97d\/a5e\/76e97da5eea5a83a253f21eda338521c.png\" width=\"660\" height=\"684\"><figcaption><\/figcaption><\/figure>\n<p>&#8230;\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0432\u0435\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0447\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0447\u0438\u043f\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u044f\u0432\u043d\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0435\u043c \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d STM32F030, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043f\u0440\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440 CFGR4&#8230;<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u043e\u0440\u044b\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u044b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u0442\u0430\u043a\u0438 \u043d\u0430\u0448\u0435\u043b \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0432\u0435\u0434\u043e\u043c\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 HK32F0_LibraryV1.0.3&#8230; \u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043d \u043e\u043d\u043e \u043a\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">typedef struct {   __IO uint32_t CR;            \/*!&lt; RCC clock control register,                                   Address offset: 0x00 *\/   __IO uint32_t CFGR;       \/*!&lt; RCC clock configuration register,                            Address offset: 0x04 *\/   __IO uint32_t CIR;        \/*!&lt; RCC clock interrupt register,                                Address offset: 0x08 *\/   __IO uint32_t APB2RSTR;   \/*!&lt; RCC APB2 peripheral reset register,                          Address offset: 0x0C *\/   __IO uint32_t APB1RSTR;   \/*!&lt; RCC APB1 peripheral reset register,                          Address offset: 0x10 *\/   __IO uint32_t AHBENR;     \/*!&lt; RCC AHB peripheral clock register,                           Address offset: 0x14 *\/   __IO uint32_t APB2ENR;    \/*!&lt; RCC APB2 peripheral clock enable register,                   Address offset: 0x18 *\/   __IO uint32_t APB1ENR;    \/*!&lt; RCC APB1 peripheral clock enable register,                   Address offset: 0x1C *\/   __IO uint32_t BDCR;       \/*!&lt; RCC Backup domain control register,                          Address offset: 0x20 *\/   __IO uint32_t CSR;        \/*!&lt; RCC clock control &amp; status register,                         Address offset: 0x24 *\/   __IO uint32_t AHBRSTR;    \/*!&lt; RCC AHB peripheral reset register,                           Address offset: 0x28 *\/   __IO uint32_t CFGR2;      \/*!&lt; RCC clock configuration register 2,                          Address offset: 0x2C *\/   __IO uint32_t CFGR3;      \/*!&lt; RCC clock configuration register 3,                          Address offset: 0x30 *\/   __IO uint32_t CR2;        \/*!&lt; RCC clock control register 2,                                Address offset: 0x34 *\/    uint32_t RESERVED[42];      \/*!&lt; Reserved,                                                    Address offset: 0x38-dc *\/   __IO uint32_t HSECTL;      \/*!&lt; RCC clock HSE control,                                      Address offset: 0xe0 *\/     uint32_t RESERVED1;      \/*!&lt; Reserved,                                                    Address offset: 0xe4 *\/   __IO uint32_t CFGR4;        \/*!&lt; RCC clock control register 4,                              Address offset: 0xe8 *\/    __IO uint32_t AHBENR2;      \/*!&lt; RCC clock configuration ahb,                               Address offset: 0xec *\/ } RCC_TypeDef;<\/code><\/pre>\n<p>&#8230;\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0438\u0442\u0430\u0439\u0446\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0441\u0442\u0443\u043f\u0438\u043b\u0438 (uint32_t RESERVED[42];      \/*!&lt; Reserved) \u0447\u0442\u043e\u0431 \u0432 \u043b\u043e\u0431 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u043f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0438\u043b\u0438 \u044d\u0442\u043e \u0444\u0438\u0448\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438?<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0443\u0432\u0438\u0434\u0435\u043b \u0447\u0442\u043e \u043f\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043f\u0440\u044f\u043c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u043c! \u041d\u0443 \u0434\u044b\u043a \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443!!! (&#8230;\u0434\u043e\u0441\u0442\u0430\u044e \u0438\u0437 \u0437\u0430\u043a\u0440\u043e\u043c\u043e\u0432 \u0440\u043e\u0434\u0438\u043d\u044b \u0437\u0430\u0431\u0430\u0432\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e USB \u0434\u043b\u044f STM32F0xx&#8230;) \u0417\u0430\u0448\u0438\u0432\u0430\u044e, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/272\/0b8\/13a\/2720b813adeb31e5c598ccd19715435e.png\" width=\"344\" height=\"168\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041d\u0435 \u043f\u043e\u043d\u044f\u043b<\/strong>, \u0431\u0435\u0440\u0443 STM32F030, \u0437\u0430\u0448\u0438\u0432\u0430\u044e:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/373\/4f1\/347\/3734f134793b72afcedb07ded2379c06.png\" width=\"378\" height=\"118\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u043e \u044f \u0436 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a, \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u0441 STM \u043d\u0430 HK \u0438 \u0447\u0442\u043e\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 USB \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e&#8230; \u0438 \u0442\u0443\u0442 \u043c\u043d\u0435 \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435 \u043f\u043e \u0441\u0435\u0431\u0435 \u0441\u0442\u0430\u043b\u043e&#8230; \u043a\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 USB \u043d\u0430 ARM, \u0442\u043e\u043c\u0443 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c\u0441\u044f \u0446\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0448\u043a\u0438: &#171;<code>NOP<\/code>&nbsp;performs no operation and is not guaranteed to be time consuming. The processor might remove it from the pipeline before it reaches the execution stage. &#187; \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 NOP \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430 \u0435\u0433\u043e \u043f\u0440\u043e\u0446 \u043c\u043e\u0436\u0435\u0442 &#171;\u0432\u044b\u043f\u043b\u0435\u0432\u044b\u0432\u0430\u0442\u044c&#187; \u043d\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438&#8230; \u043d\u043e \u044f \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u044e, \u043a\u0430\u043a \u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0438 \u0435\u0441\u043b\u0438 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0442\u043e\u0432 \u0442\u0440\u0430\u0442\u0438\u0442 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f?<\/p>\n<p><strong>\u042d\u0442\u043e\u0436 \u0446\u0435\u043b\u0430\u044f \u044d\u043a\u0441\u043f\u0435\u0434\u0438\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0442\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u0435\u043c\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u043b\u044f \u044f\u0434\u0440\u0430 ARM!!!<\/strong><\/p>\n<p>\u0422\u0443\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e HK \u044f\u0432\u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#171;\u043a\u043b\u043e\u043d\u043e\u043c&#187; \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0442\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0433\u0434\u0435 \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u0438 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e \u0442\u0430\u043a\u0442\u0430\u043c \u0437\u0430\u0442\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u043c \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<h2>&#8230;<\/h2>\n<p>\u0418 \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 System Tick Timer!  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e, \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Watchdog (\u0447\u0442\u043e\u0431 \u043f\u0440\u043e\u0446 \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u043b\u0441\u044f \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f). \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u043b \u043d\u0430\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0411\u0435\u0440\u0435\u043c \u0434\u0432\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043b-\u0432\u043e \u0442\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e:<\/p>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b (STM32F030):<\/p>\n<pre><code class=\"cpp\">asm_usb_tx         PUSH     {R4-R7,LR}\t\t\t;10         LDR      R3,DataTable+0x08 \t;6         LDR      R2,DataTable+0x14 \t;6         STR      R2,[R3, #+0x18]\t;5         LDR      R4,[R3, #+0]\t\t;5         MOVS     R5,#+5\t\t\t\t;4         LSLS     R5,R5,#+22\t\t\t;4         ORRS     R5,R5,R4\t\t\t;4         STR      R5,[R3, #+0]\t\t;5         MOVS     R7,#+0\t\t\t\t;4         ADDS     R1,R1,#+1\t\t\t;4 ut_0         LDRB     R5,[R0,#+0]\t\t;5         NOP\t\t\t\t\t\t\t;4         NOP\t\t\t\t\t\t\t;4         SUBS     R1,R1,#+1\t\t\t;4         BEQ      ut_2\t\t\t\t;4         MOVS     R6,#+8\t\t\t\t;4         LDRB     R4,[R0,#+0]\t\t;5         ADDS     R0,R0,#+1\t\t\t;4<\/code><\/pre>\n<p>&#171;\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0435&#187; (HK32F030):<\/p>\n<pre><code class=\"cpp\">asm_usb_tx         PUSH     {R4-R7,LR}\t\t\t;10         LDR      R3,DataTable+0x08\t;6         LDR      R2,DataTable+0x14\t;6         STR      R2,[R3, #+0x18] \t;9 GPIOA-&gt;BSRR         LDR      R4,[R3, #+0]\t\t;8 GPIOA-&gt;MODER         MOVS     R5,#+5\t\t\t\t;4         LSLS     R5,R5,#+22\t\t\t;4         ORRS     R5,R5,R4\t\t\t;4         STR      R5,[R3, #+0]\t\t;6 GPIOA-&gt;MODER         MOVS     R7,#+0\t\t\t\t;4         ADDS     R1,R1,#+1\t\t\t;4 ut_0         LDRB     R5,[R0,#+0]\t\t;9         NOP\t\t\t\t\t\t\t;4         NOP\t\t\t\t\t\t\t;4         SUBS     R1,R1,#+1\t\t\t;4         BEQ      ut_2\t\t\t\t;4-&gt;8         MOVS     R6,#+8\t\t\t\t;4         LDRB     R4,[R0,#+0]\t\t;9 Load transmited Byte         ADDS     R0,R0,#+1\t\t\t;6 Increment TX Buffer Pointer<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0431\u043b\u0438\u043d \u0431\u0430\u0431\u0443\u0448\u043a\u0430 \u0438 \u043f\u0440\u0438\u0435\u0445\u0430\u043b\u0438&#8230; \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 LDR\/STR \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0440\u0430\u0437\u0430 \u0434\u043e\u043b\u044c\u0448\u0435 \u0438 \u0442\u0435 \u0436\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0442\u0440\u0430\u0442\u044f\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0430\u043a\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Immediate Value&#8230; \u0438 \u043c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, &#8212; \u043f\u043e \u0441\u0443\u0442\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0442\u0430\u043a\u0442\u043e\u0432, \u0438 \u0435\u0449\u0451 \u043e\u043f\u0430, &#8212; \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e&#8230; \u041f\u0443\u0441\u0442\u044c, \u044f\u0434\u0440\u043e \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 72 MHz, \u043f\u0440\u043e\u0431\u0443\u0435\u043c.<\/p>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u0441 6 \u043d\u0430 9. \u0418 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438, \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0432\u0430\u043b\u043e\u043c, \u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0432\u043f\u0440\u0438\u0442\u044b\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u043e\u0446 \u043f\u043e\u0436\u0438\u0440\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u043e\u0434\u0433\u043e\u043d\u044f\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u0434 \u043d\u0443\u0436\u043d\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0430\u043d\u0442\u0438\u043d\u0430\u0443\u0447\u043d\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c &#171;\u043f\u043e\u0434\u0431\u043e\u0440\u0430&#187; \u0438 &#171;\u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0442\u044b\u043a\u0430&#187;. \u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h2>\u0420\u0435\u0437\u044e\u043c\u0435:<\/h2>\n<p>&#8230;HK \u044d\u0442\u043e \u043d\u0435 STM&#8230;<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0438 \u0447\u0442\u043e \u0444\u0438\u0433 \u0441 \u043d\u0438\u043c, \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043e\u0442 STM, \u0442\u0430\u043c \u0447\u0438\u0442\u0430\u0439\u0442\u0435, \u0442\u043e \u0445\u043e\u0442\u044c \u0431\u044b \u0441\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u043b\u0438 \u0434\u0430\u0442\u0430\u0448\u0438\u0442, \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0436 \u0434\u0430\u0436\u0435 \u0433\u0434\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 GPIO. \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 HK \u043f\u043e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438, \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 STM, \u043b\u0438\u0447\u043d\u043e \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b ADC\/TIM\/USART\/IWDG\/GPIO, &#8212; \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u0445\u043e\u0436\u0435, \u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0442\u043e\u0447\u043d\u043e\u0439 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0433\u0430\u0434\u0430\u0439\u043a\u0430 \u0433\u0434\u0435 \u0447\u0442\u043e \u0432\u044b\u043b\u0435\u0437\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438 \u0434\u0430\u0436\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 72MHz \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e &#171;\u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f&#187; \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439\/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432. <strong>&#171;\u0421\u043b\u0435\u0433\u043a\u0430&#187;<\/strong> \u043f\u0440\u043e\u043c\u0430\u0445\u043d\u0443\u043b\u0438\u0441\u044c \u0441 &#171;\u0444\u0435\u0442\u0447\u0435\u043c&#187; \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446, \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043d\u0430 STM&#8217;\u043a\u0435 \u043d\u0430 48MHz, \u0437\u0430\u0434\u0438\u0440\u0430\u0439\u0442\u0435 \u043d\u0430 HK \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0434\u043e 72, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f &#171;\u043f\u043e \u043f\u043e\u043b\u0438\u043a\u043b\u0438\u043d\u0438\u043a\u0435&#187; \u043d\u0430 48MHz \u0434\u043b\u044f STM \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e \u0434\u043b\u044f HK \u043d\u0430 72MHz, \u0438 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u044b \u0438\u0431\u043e 72 != 48, \u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u044b, \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043f\u0440\u044f\u043c, \u0442\u0438\u043a\u0430\u044e\u0442 \u0432 \u044d\u0442\u0438\u0445 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0430\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e.<\/p>\n<\/li>\n<\/ol>\n<p>\u0417\u0430 \u0441\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u043e\u0442\u043a\u043b\u0430\u043d\u044f\u0442\u044c\u0441\u044f.<\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u043d\u044f! \u0411\u043b\u0430\u0433, \u0434\u043e\u0431\u0440\u043e\u0442\u044b \u0438 \u0443\u0434\u0430\u0447\u0438.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/559576\/\"> https:\/\/habr.com\/ru\/post\/559576\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u043b\u0451\u0433\u043a\u0430\u044f \u043f\u0440\u0435\u043b\u044e\u0434\u0438\u044f&#8230;<\/p>\n<p>STMicroelectronics \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4-5 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435 \u0441\u043e\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0438\u043a\u0440\u043e\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0438 \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u044c\u043d\u043e &#171;\u0437\u0430\u0442\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u044f\u0441\u0430&#187;. \u041d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442 \u0447\u0442\u043e \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u043f\u044b \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u044c\u043d\u043e \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0438 \u0432 \u0446\u0435\u043d\u0435, \u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0447\u0438\u043f\u043e\u0432 \u0442\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0438 \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c&#8230; \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0442\u044f\u043d\u0443\u043b\u0438\u0441\u044c, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0434\u0435\u0444\u0438\u0446\u0438\u0442\u043e\u043c, \u043a \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c.<\/p>\n<p>\u0412\u043e\u0442 \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 HK32F030C8T6 \u043f\u043e \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u044f\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f (\u0428\u044d\u043d\u044c\u0447\u0436\u044d\u043d\u044c Hangshun Chip Technology R&amp;D Co., Ltd.) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0435\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0442\u0430 STM32F030C8T6. \u0418\u0442\u0430\u043a, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c&#8230;<\/p>\n<h2>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e&#8230;<\/h2>\n<p>\u0421\u0443\u0434\u044f \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e: &#171;HK32F030x4 \/ HK32F030x6 \/ HK32F030x8. HK32F030 \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Shenzhen Haohan Tianji Processor Co., Ltd., \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Shenzhen Hangshun Chip Technology Research Co., Ltd.&#187;.<\/p>\n<p>\u0418 \u0442\u0443\u0442 \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u044f \u0431\u044b\u043b \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435! \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0447\u0438\u043f\u044b \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043f\u0438\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043e\u0442 2,0 \u0412 \u0434\u043e 5,5 \u0412. \u0412\u043e \u0432\u0442\u043e\u0440\u044b\u0445: \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u044f\u0434\u0440\u0430 \u0430\u0436 \u0434\u043e 72 \u041c\u0413\u0446!!! \u041f\u0440\u044f\u043c \u0441\u043a\u0430\u0437\u043a\u0430 \u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e!!! \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0441\u0430\u043c\u0438!!!:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043d \u0442\u0435\u0445. \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0410\u0445 \u0434\u0430. &#171;\u0414\u0430\u0442\u0430\u0448\u0438\u0442&#187; \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c&#8230;<\/p>\n<\/div>\n<\/details>\n<p>&#8230;\u0447\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435!!!<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043d \u0442\u0435\u0445. \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/div>\n<\/details>\n<p>\u0422\u0443\u0442 \u044f \u0434\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0434\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0447\u0430\u0441\u0442\u043e\u0442&#8230; \u0438 \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435\u0434\u043e\u0443\u043c\u0435\u0432\u0430\u044e&#8230;<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&#8230;\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RCC_CFGR4, \u0443 STM&#8217;\u043a\u0438 \u0435\u0433\u043e \u043d\u0435\u0442! \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b &#171;stm32f0xx.h&#187;:<\/p>\n<pre><code class=\"cpp\">typedef struct {   __IO uint32_t CR;         \/*!&lt; RCC clock control register,                                  Address offset: 0x00 *\/   __IO uint32_t CFGR;       \/*!&lt; RCC clock configuration register,                            Address offset: 0x04 *\/   __IO uint32_t CIR;        \/*!&lt; RCC clock interrupt register,                                Address offset: 0x08 *\/   __IO uint32_t APB2RSTR;   \/*!&lt; RCC APB2 peripheral reset register,                          Address offset: 0x0C *\/   __IO uint32_t APB1RSTR;   \/*!&lt; RCC APB1 peripheral reset register,                          Address offset: 0x10 *\/   __IO uint32_t AHBENR;     \/*!&lt; RCC AHB peripheral clock register,                           Address offset: 0x14 *\/   __IO uint32_t APB2ENR;    \/*!&lt; RCC APB2 peripheral clock enable register,                   Address offset: 0x18 *\/   __IO uint32_t APB1ENR;    \/*!&lt; RCC APB1 peripheral clock enable register,                   Address offset: 0x1C *\/   __IO uint32_t BDCR;       \/*!&lt; RCC Backup domain control register,                          Address offset: 0x20 *\/    __IO uint32_t CSR;        \/*!&lt; RCC clock control &amp; status register,                         Address offset: 0x24 *\/   __IO uint32_t AHBRSTR;    \/*!&lt; RCC AHB peripheral reset register,                           Address offset: 0x28 *\/   __IO uint32_t CFGR2;      \/*!&lt; RCC clock configuration register 2,                          Address offset: 0x2C *\/   __IO uint32_t CFGR3;      \/*!&lt; RCC clock configuration register 3,                          Address offset: 0x30 *\/   __IO uint32_t CR2;        \/*!&lt; RCC clock control register 2,                                Address offset: 0x34 *\/ } RCC_TypeDef;<\/code><\/pre>\n<p>\u041d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c, \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0447\u0442\u043e \u043d\u0430 CFGR4 \u043c\u043d\u0435 \u043f\u043e\u0444\u0438\u0433, \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0443 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u043f\u0430 \u043d\u0435\u0442:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&#8230;\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0432\u0435\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0447\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0447\u0438\u043f\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u044f\u0432\u043d\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0435\u043c \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d STM32F030, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043f\u0440\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440 CFGR4&#8230;<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u043e\u0440\u044b\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u044b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u0442\u0430\u043a\u0438 \u043d\u0430\u0448\u0435\u043b \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0432\u0435\u0434\u043e\u043c\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 HK32F0_LibraryV1.0.3&#8230; \u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043d \u043e\u043d\u043e \u043a\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">typedef struct {   __IO uint32_t CR;            \/*!&lt; RCC clock control register,                                   Address offset: 0x00 *\/   __IO uint32_t CFGR;       \/*!&lt; RCC clock configuration register,                            Address offset: 0x04 *\/   __IO uint32_t CIR;        \/*!&lt; RCC clock interrupt register,                                Address offset: 0x08 *\/   __IO uint32_t APB2RSTR;   \/*!&lt; RCC APB2 peripheral reset register,                          Address offset: 0x0C *\/   __IO uint32_t APB1RSTR;   \/*!&lt; RCC APB1 peripheral reset register,                          Address offset: 0x10 *\/   __IO uint32_t AHBENR;     \/*!&lt; RCC AHB peripheral clock register,                           Address offset: 0x14 *\/   __IO uint32_t APB2ENR;    \/*!&lt; RCC APB2 peripheral clock enable register,                   Address offset: 0x18 *\/   __IO uint32_t APB1ENR;    \/*!&lt; RCC APB1 peripheral clock enable register,                   Address offset: 0x1C *\/   __IO uint32_t BDCR;       \/*!&lt; RCC Backup domain control register,                          Address offset: 0x20 *\/   __IO uint32_t CSR;        \/*!&lt; RCC clock control &amp; status register,                         Address offset: 0x24 *\/   __IO uint32_t AHBRSTR;    \/*!&lt; RCC AHB peripheral reset register,                           Address offset: 0x28 *\/   __IO uint32_t CFGR2;      \/*!&lt; RCC clock configuration register 2,                          Address offset: 0x2C *\/   __IO uint32_t CFGR3;      \/*!&lt; RCC clock configuration register 3,                          Address offset: 0x30 *\/   __IO uint32_t CR2;        \/*!&lt; RCC clock control register 2,                                Address offset: 0x34 *\/    uint32_t RESERVED[42];      \/*!&lt; Reserved,                                                    Address offset: 0x38-dc *\/   __IO uint32_t HSECTL;      \/*!&lt; RCC clock HSE control,                                      Address offset: 0xe0 *\/     uint32_t RESERVED1;      \/*!&lt; Reserved,                                                    Address offset: 0xe4 *\/   __IO uint32_t CFGR4;        \/*!&lt; RCC clock control register 4,                              Address offset: 0xe8 *\/    __IO uint32_t AHBENR2;      \/*!&lt; RCC clock configuration ahb,                               Address offset: 0xec *\/ } RCC_TypeDef;<\/code><\/pre>\n<p>&#8230;\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0438\u0442\u0430\u0439\u0446\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0441\u0442\u0443\u043f\u0438\u043b\u0438 (uint32_t RESERVED[42];      \/*!&lt; Reserved) \u0447\u0442\u043e\u0431 \u0432 \u043b\u043e\u0431 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u043f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0438\u043b\u0438 \u044d\u0442\u043e \u0444\u0438\u0448\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438?<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0443\u0432\u0438\u0434\u0435\u043b \u0447\u0442\u043e \u043f\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043f\u0440\u044f\u043c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u043c! \u041d\u0443 \u0434\u044b\u043a \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443!!! (&#8230;\u0434\u043e\u0441\u0442\u0430\u044e \u0438\u0437 \u0437\u0430\u043a\u0440\u043e\u043c\u043e\u0432 \u0440\u043e\u0434\u0438\u043d\u044b \u0437\u0430\u0431\u0430\u0432\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e USB \u0434\u043b\u044f STM32F0xx&#8230;) \u0417\u0430\u0448\u0438\u0432\u0430\u044e, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041d\u0435 \u043f\u043e\u043d\u044f\u043b<\/strong>, \u0431\u0435\u0440\u0443 STM32F030, \u0437\u0430\u0448\u0438\u0432\u0430\u044e:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u043e \u044f \u0436 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a, \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u0441 STM \u043d\u0430 HK \u0438 \u0447\u0442\u043e\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 USB \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e&#8230; \u0438 \u0442\u0443\u0442 \u043c\u043d\u0435 \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435 \u043f\u043e \u0441\u0435\u0431\u0435 \u0441\u0442\u0430\u043b\u043e&#8230; \u043a\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 USB \u043d\u0430 ARM, \u0442\u043e\u043c\u0443 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c\u0441\u044f \u0446\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0448\u043a\u0438: &#171;<code>NOP<\/code>&nbsp;performs no operation and is not guaranteed to be time consuming. The processor might remove it from the pipeline before it reaches the execution stage. &#187; \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 NOP \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430 \u0435\u0433\u043e \u043f\u0440\u043e\u0446 \u043c\u043e\u0436\u0435\u0442 &#171;\u0432\u044b\u043f\u043b\u0435\u0432\u044b\u0432\u0430\u0442\u044c&#187; \u043d\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438&#8230; \u043d\u043e \u044f \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u044e, \u043a\u0430\u043a \u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0438 \u0435\u0441\u043b\u0438 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0442\u043e\u0432 \u0442\u0440\u0430\u0442\u0438\u0442 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f?<\/p>\n<p><strong>\u042d\u0442\u043e\u0436 \u0446\u0435\u043b\u0430\u044f \u044d\u043a\u0441\u043f\u0435\u0434\u0438\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0442\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u0435\u043c\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u043b\u044f \u044f\u0434\u0440\u0430 ARM!!!<\/strong><\/p>\n<p>\u0422\u0443\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e HK \u044f\u0432\u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#171;\u043a\u043b\u043e\u043d\u043e\u043c&#187; \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0442\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0433\u0434\u0435 \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u0438 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e \u0442\u0430\u043a\u0442\u0430\u043c \u0437\u0430\u0442\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u043c \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<h2>&#8230;<\/h2>\n<p>\u0418 \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 System Tick Timer!  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e, \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Watchdog (\u0447\u0442\u043e\u0431 \u043f\u0440\u043e\u0446 \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u043b\u0441\u044f \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f). \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u043b \u043d\u0430\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0411\u0435\u0440\u0435\u043c \u0434\u0432\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043b-\u0432\u043e \u0442\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e:<\/p>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b (STM32F030):<\/p>\n<pre><code class=\"cpp\">asm_usb_tx         PUSH     {R4-R7,LR}\t\t\t;10         LDR      R3,DataTable+0x08 \t;6         LDR      R2,DataTable+0x14 \t;6         STR      R2,[R3, #+0x18]\t;5         LDR      R4,[R3, #+0]\t\t;5         MOVS     R5,#+5\t\t\t\t;4         LSLS     R5,R5,#+22\t\t\t;4         ORRS     R5,R5,R4\t\t\t;4         STR      R5,[R3, #+0]\t\t;5         MOVS     R7,#+0\t\t\t\t;4         ADDS     R1,R1,#+1\t\t\t;4 ut_0         LDRB     R5,[R0,#+0]\t\t;5         NOP\t\t\t\t\t\t\t;4         NOP\t\t\t\t\t\t\t;4         SUBS     R1,R1,#+1\t\t\t;4         BEQ      ut_2\t\t\t\t;4         MOVS     R6,#+8\t\t\t\t;4         LDRB     R4,[R0,#+0]\t\t;5         ADDS     R0,R0,#+1\t\t\t;4<\/code><\/pre>\n<p>&#171;\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0435&#187; (HK32F030):<\/p>\n<pre><code class=\"cpp\">asm_usb_tx         PUSH     {R4-R7,LR}\t\t\t;10         LDR      R3,DataTable+0x08\t;6         LDR      R2,DataTable+0x14\t;6         STR      R2,[R3, #+0x18] \t;9 GPIOA-&gt;BSRR         LDR      R4,[R3, #+0]\t\t;8 GPIOA-&gt;MODER         MOVS     R5,#+5\t\t\t\t;4         LSLS     R5,R5,#+22\t\t\t;4         ORRS     R5,R5,R4\t\t\t;4         STR      R5,[R3, #+0]\t\t;6 GPIOA-&gt;MODER         MOVS     R7,#+0\t\t\t\t;4         ADDS     R1,R1,#+1\t\t\t;4 ut_0         LDRB     R5,[R0,#+0]\t\t;9         NOP\t\t\t\t\t\t\t;4         NOP\t\t\t\t\t\t\t;4         SUBS     R1,R1,#+1\t\t\t;4         BEQ      ut_2\t\t\t\t;4-&gt;8         MOVS     R6,#+8\t\t\t\t;4         LDRB     R4,[R0,#+0]\t\t;9 Load transmited Byte         ADDS     R0,R0,#+1\t\t\t;6 Increment TX Buffer Pointer<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0431\u043b\u0438\u043d \u0431\u0430\u0431\u0443\u0448\u043a\u0430 \u0438 \u043f\u0440\u0438\u0435\u0445\u0430\u043b\u0438&#8230; \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 LDR\/STR \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0440\u0430\u0437\u0430 \u0434\u043e\u043b\u044c\u0448\u0435 \u0438 \u0442\u0435 \u0436\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0442\u0440\u0430\u0442\u044f\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0430\u043a\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Immediate Value&#8230; \u0438 \u043c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, &#8212; \u043f\u043e \u0441\u0443\u0442\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0442\u0430\u043a\u0442\u043e\u0432, \u0438 \u0435\u0449\u0451 \u043e\u043f\u0430, &#8212; \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e&#8230; \u041f\u0443\u0441\u0442\u044c, \u044f\u0434\u0440\u043e \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 72 MHz, \u043f\u0440\u043e\u0431\u0443\u0435\u043c.<\/p>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u0441 6 \u043d\u0430 9. \u0418 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438, \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0432\u0430\u043b\u043e\u043c, \u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0432\u043f\u0440\u0438\u0442\u044b\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u043e\u0446 \u043f\u043e\u0436\u0438\u0440\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u043e\u0434\u0433\u043e\u043d\u044f\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u0434 \u043d\u0443\u0436\u043d\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0430\u043d\u0442\u0438\u043d\u0430\u0443\u0447\u043d\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c &#171;\u043f\u043e\u0434\u0431\u043e\u0440\u0430&#187; \u0438 &#171;\u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0442\u044b\u043a\u0430&#187;. \u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h2>\u0420\u0435\u0437\u044e\u043c\u0435:<\/h2>\n<p>&#8230;HK \u044d\u0442\u043e \u043d\u0435 STM&#8230;<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0438 \u0447\u0442\u043e \u0444\u0438\u0433 \u0441 \u043d\u0438\u043c, \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043e\u0442 STM, \u0442\u0430\u043c \u0447\u0438\u0442\u0430\u0439\u0442\u0435, \u0442\u043e \u0445\u043e\u0442\u044c \u0431\u044b \u0441\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u043b\u0438 \u0434\u0430\u0442\u0430\u0448\u0438\u0442, \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0436 \u0434\u0430\u0436\u0435 \u0433\u0434\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 GPIO. \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 HK \u043f\u043e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438, \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 STM, \u043b\u0438\u0447\u043d\u043e \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b ADC\/TIM\/USART\/IWDG\/GPIO, &#8212; \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u0445\u043e\u0436\u0435, \u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0442\u043e\u0447\u043d\u043e\u0439 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0433\u0430\u0434\u0430\u0439\u043a\u0430 \u0433\u0434\u0435 \u0447\u0442\u043e \u0432\u044b\u043b\u0435\u0437\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f<\/p>\n<\/li>\n<\/ol>\n<\/div>\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-323875","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323875","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=323875"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323875\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}