{"id":56571,"date":"2023-10-20T09:27:55","date_gmt":"2023-10-20T01:27:55","guid":{"rendered":"\/\/www.dealsbon.com\/blog\/56571.html"},"modified":"2023-10-20T09:27:55","modified_gmt":"2023-10-20T01:27:55","slug":"fsdsfszfhc","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/56571.html","title":{"rendered":"F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58"},"content":{"rendered":"

  SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u5e76\u884c\u603b\u7ebf\u6280\u672f\uff0c\u53ef\u7528\u4e8e\u5feb\u901f\u5730\u5728\u4e24\u4e2a\u6216\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002F28335\u662f\u4e00\u79cd\u5fae\u63a7\u5236\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528SPI\u6280\u672f\u6765\u8bbe\u5b9a\u5b57\u7b26\u7f13\u5b58\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u3002<\/p>\n

\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u6b65\u9aa4<\/h2>\n

  1.\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u5bc4\u5b58\u5668<\/h3>\n

  \u9996\u5148\uff0c\u9700\u8981\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u5bc4\u5b58\u5668\uff0c\u4ee5\u786e\u5b9a\u8981\u53d1\u9001\u7684\u5b57\u7b26\u7f13\u5b58\u7684\u5927\u5c0f\u3002\u53ef\u4ee5\u4f7f\u7528F28335\u7684SPI_TXBUF\u5bc4\u5b58\u5668\u6765\u8bbe\u7f6e\u5b57\u7b26\u7f13\u5b58\u7684\u5927\u5c0f\u3002<\/p>\n

  2.\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u6a21\u5f0f<\/h3>\n

  \u5176\u6b21\uff0c\u9700\u8981\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u6a21\u5f0f\uff0c\u4ee5\u786e\u5b9a\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u683c\u5f0f\u3002\u53ef\u4ee5\u4f7f\u7528F28335\u7684SPI_TXCTL\u5bc4\u5b58\u5668\u6765\u8bbe\u7f6e\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u6a21\u5f0f\uff0c\u652f\u63018\u4f4d\u300116\u4f4d\u548c32\u4f4d\u7684\u5b57\u7b26\u7f13\u5b58\u683c\u5f0f\u3002<\/p>\n

  3.\u53d1\u9001\u5b57\u7b26\u7f13\u5b58<\/h3>\n

  \u6700\u540e\uff0c\u9700\u8981\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528F28335\u7684SPI_TXFIFO\u5bc4\u5b58\u5668\u6765\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\uff0c\u5176\u4e2d\u5305\u542b\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u6570\u636e\u3002<\/p>\n

F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u4f18\u52bf<\/h2>\n

  1.\u9ad8\u901f\u4f20\u8f93<\/h3>\n

  F28335\u8bbe\u5b9a\u7684SPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u53ef\u4ee5\u63d0\u4f9b\u9ad8\u901f\u7684\u4f20\u8f93\u901f\u5ea6\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u9700\u6c42\u3002<\/p>\n

  2.\u7b80\u5355\u6613\u7528<\/h3>\n

  SPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u8bbe\u7f6e\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8bbe\u7f6eSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u5bc4\u5b58\u5668\u548cSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u6a21\u5f0f\u5bc4\u5b58\u5668\uff0c\u5c31\u53ef\u4ee5\u5b8c\u6210\u5b57\u7b26\u7f13\u5b58\u7684\u8bbe\u7f6e\u3002<\/p>\n

  3.\u5b89\u5168\u53ef\u9760<\/h3>\n

  F28335\u8bbe\u5b9a\u7684SPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u53ef\u4ee5\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u4f20\u8f93\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u4fdd\u62a4\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u6b65\u9aa4\uff0c\u4ee5\u53ca\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u7684\u4f18\u52bf\u3002<\/strong>F28335\u8bbe\u5b9a\u7684SPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u53ef\u4ee5\u63d0\u4f9b\u9ad8\u901f\u3001\u7b80\u5355\u6613\u7528\u3001\u5b89\u5168\u53ef\u9760\u7684\u4f20\u8f93\uff0c\u662f\u4e00\u79cd\u7406\u60f3\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

SPI\uff08SerialPeripheralInterface\uff09\u662f\u4e00\u79cd\u5e76\u884c\u603b\u7ebf\u6280\u672f\uff0c\u53ef\u7528\u4e8e\u5feb\u901f\u5730\u5728\u4e24\u4e2a\u6216\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002F28335\u662f\u4e00\u79cd\u5fae\u63a7\u5236\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528SPI\u6280<\/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":[288],"class_list":["post-56571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-spitx"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/56571"}],"collection":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/comments?post=56571"}],"version-history":[{"count":0,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/56571\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=56571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=56571"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=56571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}