{"id":60297,"date":"2023-10-26T07:50:23","date_gmt":"2023-10-25T23:50:23","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=60297"},"modified":"2023-10-26T07:50:23","modified_gmt":"2023-10-25T23:50:23","slug":"rhsyfsdsfszfhc","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/60297.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58"},"content":{"rendered":"

  F28335\u662f\u4e00\u79cd\u9ad8\u7ea7\u5fae\u63a7\u5236\u5668\uff0c\u53ef\u7528\u4e8e\u5b9e\u73b0\u590d\u6742\u7684\u5904\u7406\u4efb\u52a1\u3002\u5b83\u5177\u6709\u4e30\u5bcc\u7684\u5916\u8bbe\uff0c\u5176\u4e2d\u5305\u62ecSPI\uff08Serial Peripheral Interface\uff09\uff0c\u53ef\u7528\u4e8e\u5728\u5fae\u63a7\u5236\u5668\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u3002<\/p>\n

1.\u4ec0\u4e48\u662fSPI\uff1f<\/h2>\n

  SPI\u662f\u4e00\u79cd\u5916\u8bbe\u63a5\u53e3\uff0c\u53ef\u7528\u4e8e\u5728\u5fae\u63a7\u5236\u5668\u4e4b\u95f4\u8fdb\u884c\u5feb\u901f\u6570\u636e\u4f20\u8f93\u3002\u5b83\u75314\u6761\u7ebf\u7ec4\u6210\uff0c\u5305\u62ec\u4e24\u4e2a\u6570\u636e\u7ebf\uff08SCLK\u548cSDI\uff09\uff0c\u4e00\u4e2a\u63a7\u5236\u7ebf\uff08SS\uff09\u548c\u4e00\u4e2a\u7247\u9009\u7ebf\uff08CS\uff09\u3002\u5b83\u53ef\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u5b57\u8282\u548c\u5b57\u7b26\u4e32\uff0c\u5e76\u4e14\u53ef\u4ee5\u8ba9\u591a\u4e2a\u8bbe\u5907\u540c\u65f6\u53c2\u4e0e\u4f20\u8f93\u3002<\/p>\n

2.\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI<\/h2>\n

  2.1 \u521d\u59cb\u5316SPI<\/h3>\n

  \u9996\u5148\uff0c\u60a8\u9700\u8981\u4f7f\u7528F28335\u7684SPI\u5916\u8bbe\u914d\u7f6e\u5bc4\u5b58\u5668\uff08SPICCR\uff09\u6765\u521d\u59cb\u5316SPI\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u60a8\u60f3\u8981\u7684\u6a21\u5f0f\u3002SPICCR\u5bc4\u5b58\u5668\u53ef\u7528\u4e8e\u8bbe\u7f6eSPI\u7684\u65f6\u949f\u6a21\u5f0f\u3001SPI\u7684\u65f6\u949f\u8109\u51b2\u5bbd\u5ea6\u4ee5\u53caSPI\u7684\u7247\u9009\u7ebf\u3002<\/p>\n

  2.2 \u8bbe\u7f6eSPI\u53d1\u9001\u7f13\u5b58<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u4f7f\u7528F28335\u7684SPI\u53d1\u9001\u7f13\u5b58\u5bc4\u5b58\u5668\uff08SPITXBUF\uff09\u6765\u8bbe\u7f6eSPI\u53d1\u9001\u7f13\u5b58\u3002SPITXBUF\u5bc4\u5b58\u5668\u53ef\u7528\u4e8e\u8bbe\u7f6eSPI\u53d1\u9001\u7f13\u5b58\u7684\u5bb9\u91cf\uff0c\u4ee5\u53caSPI\u53d1\u9001\u7f13\u5b58\u7684\u5b57\u7b26\u7c7b\u578b\u3002<\/p>\n

  2.3 \u542f\u52a8SPI\u4f20\u8f93<\/h3>\n

  \u6700\u540e\uff0c\u60a8\u9700\u8981\u4f7f\u7528F28335\u7684SPI\u63a7\u5236\u5bc4\u5b58\u5668\uff08SPICTL\uff09\u6765\u542f\u52a8SPI\u4f20\u8f93\u3002SPICTL\u5bc4\u5b58\u5668\u53ef\u7528\u4e8e\u8bbe\u7f6eSPI\u7684\u4f20\u8f93\u901f\u7387\uff0c\u4ee5\u53caSPI\u7684\u53d1\u9001\u548c\u63a5\u6536\u72b6\u6001\u3002<\/p>\n

3.\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528F28335\u8bbe\u5b9aSPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u3002<\/strong>\u9996\u5148\uff0c\u60a8\u9700\u8981\u4f7f\u7528SPICCR\u5bc4\u5b58\u5668\u6765\u521d\u59cb\u5316SPI\uff0c\u7136\u540e\u4f7f\u7528SPITXBUF\u5bc4\u5b58\u5668\u6765\u8bbe\u7f6eSPI\u53d1\u9001\u7f13\u5b58\uff0c\u6700\u540e\u4f7f\u7528SPICTL\u5bc4\u5b58\u5668\u6765\u542f\u52a8SPI\u4f20\u8f93\u3002\u901a\u8fc7\u6b63\u786e\u7684\u914d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528F28335\u7684SPI\u53d1\u9001\u5b57\u7b26\u7f13\u5b58\u6765\u4f20\u8f93\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

F28335\u662f\u4e00\u79cd\u9ad8\u7ea7\u5fae\u63a7\u5236\u5668\uff0c\u53ef\u7528\u4e8e\u5b9e\u73b0\u590d\u6742\u7684\u5904\u7406\u4efb\u52a1\u3002\u5b83\u5177\u6709\u4e30\u5bcc\u7684\u5916\u8bbe\uff0c\u5176\u4e2d\u5305\u62ecSPI\uff08SerialPeripheralInterface\uff09\uff0c\u53ef\u7528\u4e8e\u5728\u5fae\u63a7\u5236\u5668\u4e4b\u95f4<\/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],"class_list":["post-60297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-spitx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/60297","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=60297"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/60297\/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=60297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=60297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=60297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}