{"id":42692,"date":"2023-10-03T22:47:28","date_gmt":"2023-10-03T14:47:28","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42692"},"modified":"2023-10-03T22:47:28","modified_gmt":"2023-10-03T14:47:28","slug":"kydpjtx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42692.html","title":{"rendered":"K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1"},"content":{"rendered":"

  K210\u662f\u4e00\u79cd\u57fa\u4e8eRISC-V\u67b6\u6784\u7684\u5904\u7406\u5668\uff0c\u5b83\u53ef\u4ee5\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002<\/strong>K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u66f4\u52a0\u9ad8\u6548\u3001\u53ef\u9760\u7684\u7cfb\u7edf\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdK210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u83b7\u5f97\u6700\u4f73\u6027\u80fd\u3002<\/p>\n

K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f<\/h2>\n

  K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5b9e\u73b0\u7cfb\u7edf\u529f\u80fd\u3002K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\u4e3b\u8981\u6709\u4e24\u79cd\uff1aUART\u548cI2C\u3002<\/p>\n

  UART<\/h3>\n

  UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u53ef\u4ee5\u5b9e\u73b0\u5f02\u6b65\u901a\u4fe1\u7684\u6280\u672f\u3002\u5b83\u53ef\u4ee5\u5c06K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u53d8\u5f97\u7b80\u5355\u3001\u5feb\u6377\u3002K210\u901a\u8fc7UART\u53ef\u4ee5\u4e0e\u591a\u79cd\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u6bd4\u5982Arduino\u3001STM32\u3001ESP8266\u7b49\u3002<\/p>\n

  I2C<\/h3>\n

  I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u53ef\u4ee5\u5b9e\u73b0\u4e24\u7aef\u8bbe\u5907\u4e4b\u95f4\u7684\u540c\u6b65\u901a\u4fe1\u7684\u6280\u672f\u3002K210\u53ef\u4ee5\u901a\u8fc7I2C\u4e0e\u5404\u79cd\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u6bd4\u5982Arduino\u3001STM32\u3001ESP8266\u7b49\u3002I2C\u53ef\u4ee5\u63d0\u9ad8K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u6548\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u8bbe\u5907\u4e4b\u95f4\u7684\u540c\u6b65\u901a\u4fe1\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1<\/h2>\n

  \u4f7f\u7528K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u7cfb\u7edf\u7684\u6027\u80fd\u3002K210\u53ef\u4ee5\u901a\u8fc7UART\u6216I2C\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002<\/p>\n

  UART<\/h3>\n

  \u4f7f\u7528UART\u8fdb\u884cK210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\uff0c\u9996\u5148\u9700\u8981\u5728K210\u548c\u5355\u7247\u673a\u4e4b\u95f4\u5efa\u7acb\u4e00\u4e2a\u4e32\u53e3\u8fde\u63a5\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528UART API\u6765\u5b9e\u73b0K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002UART API\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u52a0\u8f7b\u677e\u5730\u5b9e\u73b0K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  I2C<\/h3>\n

  \u4f7f\u7528I2C\u8fdb\u884cK210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\uff0c\u9996\u5148\u9700\u8981\u5728K210\u548c\u5355\u7247\u673a\u4e4b\u95f4\u5efa\u7acb\u4e00\u4e2aI2C\u8fde\u63a5\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528I2C API\u6765\u5b9e\u73b0K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002I2C API\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u52a0\u8f7b\u677e\u5730\u5b9e\u73b0K210\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u8bbe\u5907\u4e4b\u95f4\u7684\u540c\u6b65\u901a\u4fe1\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  K210\u662f\u4e00\u79cd\u57fa\u4e8eRISC-V\u67b6\u6784\u7684\u5904\u7406\u5668\uff0c\u5b83\u53ef\u4ee5\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002<\/strong>K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u66f4\u52a0\u9ad8\u6548\u3001\u53ef\u9760\u7684\u7cfb\u7edf\u3002K210\u53ef\u4ee5\u901a\u8fc7UART\u6216I2C\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002\u4f7f\u7528K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u7cfb\u7edf\u7684\u6027\u80fd\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u8bbe\u5907\u4e4b\u95f4\u7684\u540c\u6b65\u901a\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

K210\u662f\u4e00\u79cd\u57fa\u4e8eRISC-V\u67b6\u6784\u7684\u5904\u7406\u5668\uff0c\u5b83\u53ef\u4ee5\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002K210\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u7684\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u66f4\u52a0\u9ad8<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[83],"class_list":["post-42692","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dpj"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=42692"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42692\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=42692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}