{"id":47013,"date":"2023-09-30T10:10:46","date_gmt":"2023-09-30T02:10:46","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=47013"},"modified":"2023-11-25T00:13:10","modified_gmt":"2023-11-24T16:13:10","slug":"uhidqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/47013.html","title":{"rendered":"UART\u548cI2C\u7684\u533a\u522b"},"content":{"rendered":"

  UART\u548cI2C\u662f\u4e24\u79cd\u5e38\u89c1\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u4eec\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7535\u5b50\u8bbe\u5907\u4e2d\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u7740\u660e\u663e\u7684\u5dee\u5f02\u3002\u672c\u6587\u5c06\u4ecb\u7ecdUART\u548cI2C\u7684\u533a\u522b\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u7684\u529f\u80fd\u548c\u7528\u9014\u3002<\/p>\n

UART\u6982\u8ff0<\/h2>\n

  UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u8bbe\u5907\u7684\u6570\u636e\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002UART\u901a\u5e38\u662f\u4e00\u4e2a\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u4e00\u6761\u7ebf\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002UART\u53ef\u4ee5\u7528\u6765\u4f20\u8f93\u5b57\u7b26\u3001\u56fe\u50cf\u548c\u97f3\u9891\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u4f20\u8f93\uff0c\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d24.8K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\u3002<\/p>\n

I2C\u6982\u8ff0<\/h2>\n

  I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u4e32\u884c\u603b\u7ebf\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u591a\u4e2a\u8bbe\u5907\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u5141\u8bb8\u5b83\u4eec\u5171\u4eab\u6570\u636e\u3002I2C\u53ef\u4ee5\u540c\u65f6\u4f20\u8f93\u6570\u636e\u548c\u63a7\u5236\u4fe1\u53f7\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u4f20\u8f93\uff0c\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2400K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\u3002I2C\u4e5f\u53ef\u4ee5\u7528\u6765\u4f20\u8f93\u5b57\u7b26\u3001\u56fe\u50cf\u548c\u97f3\u9891\u6570\u636e\u3002<\/p>\n

UART\u548cI2C\u7684\u533a\u522b<\/h2>\n

  \u4f20\u8f93\u901f\u7387<\/h3>\n

  UART\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d24.8K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\uff0c\u800cI2C\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2400K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\u3002\u56e0\u6b64\uff0cI2C\u7684\u4f20\u8f93\u901f\u7387\u6bd4UART\u8981\u5feb\u5f97\u591a\u3002<\/p>\n

  \u8fde\u63a5\u65b9\u5f0f<\/h3>\n

  UART\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u4e00\u6761\u7ebf\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002\u800cI2C\u662f\u4e00\u79cd\u4e32\u884c\u603b\u7ebf\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u591a\u4e2a\u8bbe\u5907\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u5141\u8bb8\u5b83\u4eec\u5171\u4eab\u6570\u636e\u3002<\/p>\n

  \u5e94\u7528\u9886\u57df<\/h3>\n

  UART\u901a\u5e38\u7528\u4e8e\u77ed\u8ddd\u79bb\u901a\u4fe1\uff0c\u4f8b\u5982\u5728PC\u548c\u5916\u8bbe\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u800cI2C\u5219\u66f4\u9002\u5408\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4f8b\u5982\u5728\u4e00\u4e2a\u7cfb\u7edf\u4e2d\u8fde\u63a5\u591a\u4e2a\u4f20\u611f\u5668\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86UART\u548cI2C\u7684\u533a\u522b\u3002<\/strong>UART\u548cI2C\u90fd\u662f\u5e38\u89c1\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u7740\u660e\u663e\u7684\u5dee\u5f02\u3002UART\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d24.8K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\uff0c\u800cI2C\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2400K\u5b57\u8282\u7684\u4f20\u8f93\u901f\u7387\u3002UART\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u4e00\u6761\u7ebf\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\uff0c\u800cI2C\u662f\u4e00\u79cd\u4e32\u884c\u603b\u7ebf\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u591a\u4e2a\u8bbe\u5907\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u5141\u8bb8\u5b83\u4eec\u5171\u4eab\u6570\u636e\u3002UART\u901a\u5e38\u7528\u4e8e\u77ed\u8ddd\u79bb\u901a\u4fe1\uff0c\u800cI2C\u5219\u66f4\u9002\u5408\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\u548cI2C\u662f\u4e24\u79cd\u5e38\u89c1\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u4eec\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7535\u5b50\u8bbe\u5907\u4e2d\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u7740\u660e\u663e\u7684\u5dee\u5f02\u3002\u672c\u6587\u5c06\u4ecb\u7ecdUART\u548cI2C\u7684\u533a\u522b\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u7684\u529f\u80fd\u548c\u7528\u9014\u3002<\/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":[351,145],"class_list":["post-47013","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-i2c","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47013","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=47013"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47013\/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=47013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=47013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=47013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}