{"id":77418,"date":"2024-01-12T14:40:45","date_gmt":"2024-01-12T06:40:45","guid":{"rendered":"\/\/www.viralrail.com\/?p=77418"},"modified":"2024-01-12T14:40:45","modified_gmt":"2024-01-12T06:40:45","slug":"uisdqb","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/77418.html","title":{"rendered":"UART\u3001I2C\u3001SPI\u7684\u533a\u522b"},"content":{"rendered":"

  \u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\uff0cUART\u3001I2C\u548cSPI\u662f\u5e38\u89c1\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u4e09\u79cd\u901a\u4fe1\u65b9\u5f0f\u7684\u7279\u70b9\u548c\u533a\u522b\u3002<\/p>\n

UART\uff08\u901a\u7528\u5f02\u6b65\u6536\u53d1\u4f20\u8f93\uff09<\/h2>\n

  UART\u662f\u4e00\u79cd\u5f02\u6b65\u4e32\u884c\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u5e38\u7528\u4e8e\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002UART\u901a\u5e38\u4f7f\u7528\u4e00\u5bf9\u6570\u636e\u7ebf\uff08TX\u548cRX\uff09\u8fdb\u884c\u5168\u53cc\u5de5\u901a\u4fe1\u3002<\/p>\n

  \u5de5\u4f5c\u539f\u7406<\/h3>\n

  \u5728UART<\/a>\u901a\u4fe1\u4e2d\uff0c\u6570\u636e\u4ee5\u6570\u636e\u5305\u7684\u5f62\u5f0f\u88ab\u53d1\u9001\uff0c\u5e76\u4e14\u6bcf\u4e2a\u6570\u636e\u5305\u5305\u62ec\u8d77\u59cb\u4f4d\u3001\u6570\u636e\u4f4d\u3001\u5947\u5076\u6821\u9a8c<\/a>\u4f4d\u548c\u505c\u6b62\u4f4d\u3002\u8fd9\u79cd\u901a\u4fe1\u65b9\u5f0f\u975e\u5e38\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u8f83\u77ed\u8ddd\u79bb\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  \u9002\u7528\u573a\u666f<\/h3>\n

  \u7531\u4e8eUART\u7684\u7b80\u5355\u6027\u548c\u53ef\u9760\u6027\uff0c\u5b83\u7ecf\u5e38\u7528\u4e8e\u8fde\u63a5\u5fae\u63a7\u5236\u5668\u3001\u4f20\u611f\u5668\u3001\u663e\u793a\u5c4f\u7b49\u5916\u8bbe\u8bbe\u5907\u3002<\/p>\n

I2C\uff08Inter-Integrated Circuit\uff09<\/h2>\n

  I2C\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5b83\u4f7f\u7528\u4e24\u6839\u7ebf\uff08\u4e32\u884c\u6570\u636e\u7ebf\u548c\u4e32\u884c\u65f6\u949f\u7ebf\uff09\uff0c\u80fd\u591f\u5b9e\u73b0\u591a\u4e3b\u673a\u548c\u591a\u4ece\u673a\u7684\u901a\u4fe1\u3002<\/p>\n

  \u6570\u636e\u4f20\u8f93\u65b9\u5f0f<\/h3>\n

  I2C\u901a\u4fe1\u901a\u8fc7\u5728\u65f6\u949f\u4fe1\u53f7\u7684\u63a7\u5236\u4e0b\uff0c\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u652f\u6301\u9ad8\u901f\uff08HS\uff09\u3001\u5feb\u901f\uff08FS\uff09\u3001\u6807\u51c6\uff08SS\uff09\u548c\u4f4e\u901f\uff08LS\uff09\u56db\u79cd\u6a21\u5f0f\u3002<\/p>\n

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

  \u7531\u4e8eI2C\u652f\u6301\u591a\u4ece\u673a\u901a\u4fe1\u548c\u5177\u6709\u8f83\u5927\u7684\u5730\u5740\u7a7a\u95f4\uff0c\u56e0\u6b64\u5b83\u5e38\u89c1\u4e8e\u4f4e\u901f\u5916\u8bbe\u3001\u4f20\u611f\u5668\u3001\u5b58\u50a8\u5668\u7b49\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n

SPI\uff08Serial Peripheral Interface\uff09<\/h2>\n

  SPI\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u7684\u540c\u6b65\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u901a\u5e38\u7528\u4e8e\u8fde\u63a5\u5fae\u63a7\u5236\u5668\u548c\u5916\u56f4\u8bbe\u5907\uff0c\u5982\u5b58\u50a8\u5668\u3001\u4f20\u611f\u5668\u548c\u663e\u793a\u5c4f\u7b49\u3002<\/p>\n

  \u4f20\u8f93\u65b9\u5f0f<\/h3>\n

  SPI\u901a\u4fe1<\/a>\u4f7f\u7528\u56db\u6839\u7ebf\uff08\u65f6\u949f\u7ebf\u3001\u6570\u636e\u8f93\u5165\u7ebf\u3001\u6570\u636e\u8f93\u51fa\u7ebf\u548c\u7247\u9009\u7ebf\uff09\uff0c\u652f\u6301\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u80fd\u591f\u5b9e\u73b0\u591a\u4e3b\u673a\u548c\u591a\u4ece\u673a\u7684\u901a\u4fe1\u3002<\/p>\n

  \u7279\u70b9<\/h3>\n

  SPI\u901a\u4fe1\u5177\u6709\u8f83\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u548c\u7075\u6d3b\u7684\u8fde\u63a5\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5bf9\u901f\u5ea6\u548c\u5e26\u5bbd\u8981\u6c42\u8f83\u9ad8\u7684\u5e94\u7528\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u901a\u8fc7\u672c\u7bc7\u6587\u7ae0\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u4e86\u89e3\u5230UART\u3001I2C\u548cSPI\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/strong>UART\u4ee5\u7b80\u5355\u53ef\u9760\u8457\u79f0\uff0c\u9002\u7528\u4e8e\u7b80\u5355\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff1bI2C\u652f\u6301\u591a\u4ece\u673a\u901a\u4fe1\uff0c\u9002\u7528\u4e8e\u4f4e\u901f\u5916\u8bbe\u4e4b\u95f4\u7684\u901a\u4fe1\uff1bSPI\u5177\u6709\u9ad8\u901f\u5168\u53cc\u5de5\u901a\u4fe1\u7279\u6027\uff0c\u9002\u7528\u4e8e\u5bf9\u901f\u5ea6\u548c\u5e26\u5bbd\u8981\u6c42\u8f83\u9ad8\u7684\u5e94\u7528\u3002\u9009\u62e9\u5408\u9002\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u8bbe\u5907\u4e4b\u95f4\u6570\u636e\u4f20\u8f93\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\uff0cUART\u3001I2C\u548cSPI\u662f\u5e38\u89c1\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u4e09\u79cd\u901a\u4fe1\u65b9\u5f0f\u7684\u7279\u70b9\u548c\u533a\u522b\u3002UART\uff08\u901a\u7528\u5f02\u6b65\u6536\u53d1\u4f20\u8f93<\/p>\n","protected":false},"author":1,"featured_media":64183,"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":[145],"class_list":["post-77418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/77418"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=77418"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/77418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=77418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=77418"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=77418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}