{"id":63340,"date":"2023-11-01T12:21:24","date_gmt":"2023-11-01T04:21:24","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=63340"},"modified":"2023-12-18T17:15:22","modified_gmt":"2023-12-18T09:15:22","slug":"sjcqgn","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/63340.html","title":{"rendered":"SPI\u5bc4\u5b58\u5668\u529f\u80fd"},"content":{"rendered":"
SPI\uff08Serial Peripheral Interface\uff09\u5bc4\u5b58\u5668\u662f\u4e00\u79cd\u7528\u4e8e\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u7684\u4e32\u884c\u63a5\u53e3\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u662f\u5c06\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u8fde\u63a5\u5230\u4e3b\u673a\u8ba1\u7b97\u673a\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u4f20\u8f93\u548c\u5b58\u50a8\u3002SPI\u5bc4\u5b58\u5668\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u7684\u7075\u6d3b\u6027\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002\u6b64\u5916\uff0cSPI\u5bc4\u5b58\u5668\u8fd8\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u63a7\u5236\u534f\u8bae\uff0c\u4ece\u800c\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u5916\u90e8\u8bbe\u5907\u7684\u529f\u80fd\u3002<\/p>\n
SPI\u5bc4\u5b58\u5668\u7684\u5de5\u4f5c\u539f\u7406\u662f\u901a\u8fc7\u4e24\u4e2aSPI\u603b\u7ebf\uff08SPI_MOSI\u548cSPI_MISO\uff09\u6765\u5b9e\u73b0\u6570\u636e\u7684\u4f20\u8f93\u3002SPI_MOSI\uff08Master Out Slave In\uff09\u7528\u4e8e\u5c06\u4e3b\u673a\u8ba1\u7b97\u673a\u7684\u6570\u636e\u53d1\u9001\u5230\u5916\u90e8\u8bbe\u5907\uff0c\u800cSPI_MISO\uff08Master In Slave Out\uff09\u5219\u7528\u4e8e\u5c06\u5916\u90e8\u8bbe\u5907\u7684\u6570\u636e\u53d1\u9001\u5230\u4e3b\u673a\u8ba1\u7b97\u673a\u3002SPI\u5bc4\u5b58\u5668\u8fd8\u9700\u8981\u4e00\u4e2aSPI_CS\uff08Chip Select\uff09\u4fe1\u53f7\uff0c\u7528\u4e8e\u63a7\u5236\u5916\u90e8\u8bbe\u5907\u7684\u5de5\u4f5c\u72b6\u6001\u3002<\/p>\n
SPI\u5bc4\u5b58\u5668\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u5e94\u7528\u573a\u666f\uff0c\u5305\u62ec\u5b58\u50a8\u8bbe\u5907\u7684\u63a7\u5236\u548c\u6570\u636e\u4f20\u8f93\u3001\u5916\u90e8\u8bbe\u5907\u7684\u63a7\u5236\u3001\u591a\u79cd\u4f20\u611f\u5668\u7684\u63a7\u5236\u548c\u6570\u636e\u91c7\u96c6\u7b49\u3002\u7531\u4e8eSPI\u5bc4\u5b58\u5668\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u63a7\u5236\u534f\u8bae\uff0c\u56e0\u6b64\u5b83\u53ef\u4ee5\u7528\u4e8e\u63a7\u5236\u591a\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u5916\u90e8\u8bbe\u5907\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002<\/p>\n
SPI\u5bc4\u5b58\u5668\u662f\u4e00\u79cd\u7528\u4e8e\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u7684\u4e32\u884c\u63a5\u53e3\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u662f\u5c06\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u8fde\u63a5\u5230\u4e3b\u673a\u8ba1\u7b97\u673a\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u4f20\u8f93\u548c\u5b58\u50a8\u3002<\/strong>SPI\u5bc4\u5b58\u5668\u7684\u5de5\u4f5c\u539f\u7406\u662f\u901a\u8fc7\u4e24\u4e2aSPI\u603b\u7ebf\u6765\u5b9e\u73b0\u6570\u636e\u7684\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u63a7\u5236\u534f\u8bae\uff0c\u4ece\u800c\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u5916\u90e8\u8bbe\u5907\u7684\u529f\u80fd\u3002SPI\u5bc4\u5b58\u5668\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u5e94\u7528\u573a\u666f\uff0c\u5305\u62ec\u5b58\u50a8\u8bbe\u5907\u7684\u63a7\u5236\u548c\u6570\u636e\u4f20\u8f93\u3001\u5916\u90e8\u8bbe\u5907\u7684\u63a7\u5236\u3001\u591a\u79cd\u4f20\u611f\u5668\u7684\u63a7\u5236\u548c\u6570\u636e\u91c7\u96c6\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" SPI\uff08SerialPeripheralInterface\uff09\u5bc4\u5b58\u5668\u662f\u4e00\u79cd\u7528\u4e8e\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u7684\u4e32\u884c\u63a5\u53e3\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u662f\u5c06\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u8fde\u63a5\u5230\u4e3b\u673a\u8ba1\u7b97\u673a\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u4f20\u8f93\u548c\u5b58\u50a8<\/p>\n","protected":false},"author":1,"featured_media":1839,"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":[288,363],"class_list":["post-63340","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-spitx","tag-register"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/63340","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=63340"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/63340\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=63340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=63340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=63340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}