{"id":57185,"date":"2023-10-18T06:58:46","date_gmt":"2023-10-17T22:58:46","guid":{"rendered":"https:\/\/www.techphant.cn\/blog\/57185.html"},"modified":"2023-10-18T06:58:46","modified_gmt":"2023-10-17T22:58:46","slug":"sycckjshfssj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/57185.html","title":{"rendered":"\u4f7f\u7528CC2530\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e"},"content":{"rendered":"

  CC2530\u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u4f4e\u529f\u8017\u65e0\u7ebfMCU\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u63a5\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u6bd4\u5982UART\u3001I2C\u3001SPI\u7b49\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u9ad8\u6548\u901a\u4fe1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528CC2530\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002<\/p>\n

\u4e32\u53e3\u63a5\u6536\u6570\u636e<\/h2>\n

  CC2530\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u63a5\u6536\u5916\u90e8\u8bbe\u5907\u53d1\u9001\u7684\u6570\u636e\u3002\u8981\u63a5\u6536\u6570\u636e\uff0c\u9996\u5148\u9700\u8981\u5b9a\u4e49\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u7136\u540e\u6253\u5f00\u4e32\u53e3\uff0c\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u8bbe\u7f6e\u63a5\u6536\u7f13\u51b2\u533a\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u63a5\u6536\u6570\u636e\u4e86\u3002<\/p>\n

  \u5b9a\u4e49\u6570\u636e\u4f20\u8f93\u534f\u8bae<\/h3>\n

  \u9996\u5148\uff0c\u9700\u8981\u6839\u636e\u8981\u63a5\u6536\u7684\u6570\u636e\u7c7b\u578b\u5b9a\u4e49\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u6bd4\u5982UART\u3001I2C\u3001SPI\u7b49\uff0c\u8fd9\u4e9b\u534f\u8bae\u7684\u5b9a\u4e49\u53ef\u4ee5\u5728CC2530\u7684\u5b98\u65b9\u6587\u6863\u4e2d\u627e\u5230\u3002<\/p>\n

  \u6253\u5f00\u4e32\u53e3<\/h3>\n

  \u63a5\u7740\uff0c\u9700\u8981\u6253\u5f00\u4e32\u53e3\uff0c\u9996\u5148\u8981\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u6bd4\u5982\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u3001\u6821\u9a8c\u4f4d\u7b49\uff0c\u7136\u540e\u8c03\u7528CC2530\u7684API\u51fd\u6570\u6253\u5f00\u4e32\u53e3\uff0c\u6bd4\u5982UART_Open()\u3001I2C_Open()\u7b49\u3002<\/p>\n

  \u8bbe\u7f6e\u63a5\u6536\u7f13\u51b2\u533a<\/h3>\n

  \u6700\u540e\uff0c\u9700\u8981\u8bbe\u7f6e\u63a5\u6536\u7f13\u51b2\u533a\uff0c\u53ef\u4ee5\u4f7f\u7528CC2530\u7684API\u51fd\u6570UART_Read()\u6765\u8bbe\u7f6e\u63a5\u6536\u7f13\u51b2\u533a\uff0c\u8fd9\u4e2a\u51fd\u6570\u652f\u6301\u8bbe\u7f6e\u591a\u79cd\u7c7b\u578b\u7684\u63a5\u6536\u7f13\u51b2\u533a\uff0c\u6bd4\u5982\u5b57\u7b26\u7f13\u51b2\u533a\u3001\u5b57\u8282\u7f13\u51b2\u533a\u3001\u5b57\u7b26\u4e32\u7f13\u51b2\u533a\u7b49\u3002<\/p>\n

\u4e32\u53e3\u53d1\u9001\u6570\u636e<\/h2>\n

  \u8981\u53d1\u9001\u6570\u636e\uff0c\u9996\u5148\u8981\u8bbe\u7f6e\u53d1\u9001\u7f13\u51b2\u533a\uff0c\u7136\u540e\u8c03\u7528CC2530\u7684API\u51fd\u6570UART_Write()\u6765\u53d1\u9001\u6570\u636e\uff0c\u8fd9\u4e2a\u51fd\u6570\u652f\u6301\u591a\u79cd\u7c7b\u578b\u7684\u53d1\u9001\u7f13\u51b2\u533a\uff0c\u6bd4\u5982\u5b57\u7b26\u7f13\u51b2\u533a\u3001\u5b57\u8282\u7f13\u51b2\u533a\u3001\u5b57\u7b26\u4e32\u7f13\u51b2\u533a\u7b49\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528CC2530\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002CC2530\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u63a5\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u6bd4\u5982UART\u3001I2C\u3001SPI\u7b49\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u9ad8\u6548\u901a\u4fe1\u3002\u63a5\u6536\u6570\u636e\u65f6\uff0c\u9996\u5148\u9700\u8981\u5b9a\u4e49\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u7136\u540e\u6253\u5f00\u4e32\u53e3\uff0c\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u8bbe\u7f6e\u63a5\u6536\u7f13\u51b2\u533a\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u63a5\u6536\u6570\u636e\u4e86\u3002\u53d1\u9001\u6570\u636e\u65f6\uff0c\u9996\u5148\u8981\u8bbe\u7f6e\u53d1\u9001\u7f13\u51b2\u533a\uff0c\u7136\u540e\u8c03\u7528CC2530\u7684API\u51fd\u6570UART_Write()\u6765\u53d1\u9001\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

CC2530\u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u4f4e\u529f\u8017\u65e0\u7ebfMCU\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u63a5\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u6bd4\u5982UART\u3001I2C\u3001SPI\u7b49\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u9ad8\u6548\u901a<\/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":[69],"class_list":["post-57185","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57185"}],"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=57185"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57185\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=57185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=57185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=57185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}