{"id":77416,"date":"2024-01-02T02:14:25","date_gmt":"2024-01-01T18:14:25","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=77416"},"modified":"2024-01-02T02:14:25","modified_gmt":"2024-01-01T18:14:25","slug":"shuysmqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/77416.html","title":{"rendered":"SPI\u548cUART\u6709\u4ec0\u4e48\u533a\u522b?"},"content":{"rendered":"
\u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\uff0c\u901a\u4fe1\u534f\u8bae\u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002SPI\u548cUART\u4f5c\u4e3a\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u867d\u7136\u5728\u529f\u80fd\u4e0a\u6709\u4e00\u4e9b\u76f8\u4f3c\u4e4b\u5904\uff0c\u4f46\u5b83\u4eec\u5728\u5b9e\u9645\u5e94\u7528\u548c\u6280\u672f\u7ec6\u8282\u4e0a\u5b58\u5728\u660e\u663e\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u5bf9SPI\u548cUART\u8fdb\u884c\u6df1\u5165\u6bd4\u8f83\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n
SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u3001\u540c\u6b65\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u901a\u5e38\u7528\u4e8e\u8fde\u63a5\u82af\u7247\u95f4\u7684\u77ed\u8ddd\u79bb\u901a\u4fe1\uff0c\u4f8b\u5982\u8fde\u63a5\u5fae\u63a7\u5236\u5668\u4e0e\u5916\u56f4\u8bbe\u5907\u3002SPI\u4f7f\u7528\u4e3b\u4ece\u67b6\u6784\uff0c\u901a\u4fe1\u7684\u53d1\u8d77\u8005\u4e3a\u4e3b\u8bbe\u5907\uff0c\u800c\u4ece\u8bbe\u5907\u88ab\u52a8\u54cd\u5e94\u4e3b\u8bbe\u5907\u7684\u547d\u4ee4\u3002SPI\u901a\u4fe1<\/a>\u4e00\u822c\u9700\u8981\u56db\u6839\u4fe1\u53f7\u7ebf\uff0c\u5305\u62ec\u65f6\u949f\u4fe1\u53f7\u3001\u4e3b\u8bbe\u5907\u8f93\u51fa\u6570\u636e\u3001\u4e3b\u8bbe\u5907\u8f93\u5165\u6570\u636e\u548c\u7247\u9009\u4fe1\u53f7\u3002<\/p>\n \u76f8\u6bd4\u4e4b\u4e0b\uff0cUART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u534a\u53cc\u5de5<\/a>\u3001\u5f02\u6b65\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5e38\u7528\u4e8e\u4e32\u53e3\u901a\u4fe1\uff0c\u4f8b\u5982\u8fde\u63a5\u8ba1\u7b97\u673a\u4e0e\u5916\u8bbe\u8bbe\u5907\u3002UART\u4f7f\u7528\u4e00\u4e2a\u5f15\u811a\u8fdb\u884c\u6570\u636e\u7684\u53d1\u9001\u548c\u63a5\u6536\uff0c\u540c\u65f6\uff0c\u5b83\u8fd8\u9700\u8981\u4e00\u4e2a\u65f6\u5e8f\u5f15\u811a\u6765\u540c\u6b65\u6570\u636e\u7684\u4f20\u8f93\u3002UART<\/a>\u7684\u901a\u4fe1\u901f\u7387\u53ef\u8c03\u8282\uff0c\u4f46\u4f20\u8f93\u8ddd\u79bb\u76f8\u5bf9\u8f83\u77ed\u3002<\/p>\n SPI\u901a\u4fe1\u901f\u7387\u8f83\u9ad8\uff0c\u53ef\u4ee5\u8fbe\u5230\u51e0\u5341MHz\u751a\u81f3\u4e0a\u767eMHz\uff0c\u9002\u5408\u4e8e\u5bf9\u901a\u4fe1\u901f\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u5408\uff0c\u5982\u5b58\u50a8\u5668\u7684\u8bfb\u5199\u3001\u4f20\u611f\u5668\u7684\u91c7\u96c6\u7b49\u3002SPI\u8fd8\u652f\u6301\u591a\u4e3b\u8bbe\u5907\u5171\u4eab\u540c\u4e00\u603b\u7ebf\u7684\u60c5\u51b5\uff0c\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97\u591a\u4e2a\u8bbe\u5907\u53ef\u4ee5\u540c\u65f6\u4e0e\u4e3b\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\uff0c\u5b9e\u73b0\u4e86\u66f4\u590d\u6742\u7684\u901a\u4fe1\u9700\u6c42\u3002<\/p>\n \u76f8\u6bd4\u4e4b\u4e0b\uff0cUART\u901a\u4fe1\u901f\u7387\u76f8\u5bf9\u8f83\u4f4e\uff0c\u4e00\u822c\u5728\u51e0\u5341kbps\u5230\u51e0\u767ekbps\u4e4b\u95f4\u3002\u4f46UART\u534f\u8bae\u76f8\u5bf9\u7b80\u5355\uff0c\u5360\u7528\u7684\u8d44\u6e90\u8f83\u5c11\uff0c\u9002\u5408\u4e8e\u5bf9\u901a\u4fe1\u901f\u5ea6\u8981\u6c42\u4e0d\u9ad8\u3001\u4f46\u5bf9\u786c\u4ef6\u6210\u672c\u548c\u590d\u6742\u5ea6\u8981\u6c42\u8f83\u4f4e\u7684\u573a\u666f\uff0c\u5982\u4f20\u611f\u5668\u6570\u636e\u7684\u91c7\u96c6\u3001\u4e0e\u5916\u56f4\u8bbe\u5907\u7684\u7b80\u5355\u4ea4\u4e92\u7b49\u3002<\/p>\n \u7efc\u4e0a\u6240\u8ff0\uff0cSPI\u548cUART\u5728\u901a\u4fe1\u539f\u7406\u3001\u529f\u80fd\u7279\u70b9\u4ee5\u53ca\u9002\u7528\u573a\u666f\u4e0a\u90fd\u5b58\u5728\u5dee\u5f02\u3002<\/strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u548c\u786c\u4ef6\u6761\u4ef6\u9009\u62e9\u5408\u9002\u7684\u901a\u4fe1\u534f\u8bae\u4ee5\u5b9e\u73b0\u6700\u4f73\u6027\u80fd\u548c\u6210\u672c\u6548\u76ca\u3002\u65e0\u8bba\u662fSPI\u8fd8\u662fUART\uff0c\u90fd\u662f\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u4eec\u7684\u5dee\u5f02\u7279\u6027\u4e5f\u4f7f\u5f97\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\uff0c\u901a\u4fe1\u534f\u8bae\u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002SPI\u548cUART\u4f5c\u4e3a\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u867d\u7136\u5728\u529f\u80fd\u4e0a\u6709\u4e00\u4e9b\u76f8\u4f3c\u4e4b\u5904\uff0c\u4f46\u5b83\u4eec\u5728\u5b9e\u9645\u5e94\u7528\u548c\u6280\u672f\u7ec6\u8282\u4e0a\u5b58\u5728\u660e\u663e\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u5bf9S<\/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-77416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77416","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=77416"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77416\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=77416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=77416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=77416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}SPI\u548cUART\u7684\u529f\u80fd\u5dee\u5f02<\/h2>\n
SPI\u7684\u4f18\u52bf\u4e0e\u7279\u70b9<\/h3>\n
UART\u7684\u9002\u7528\u573a\u666f<\/h3>\n
\u603b\u7ed3<\/h2>\n