{"id":38886,"date":"2023-09-28T01:47:13","date_gmt":"2023-09-27T17:47:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=38886"},"modified":"2023-10-14T00:22:15","modified_gmt":"2023-10-13T16:22:15","slug":"ccktxyl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/38886.html","title":{"rendered":"CC2530\u4e32\u53e3\u901a\u4fe1\u539f\u7406"},"content":{"rendered":"

  CC2530\u662f\u4e00\u6b3e\u4f4e\u6210\u672c\u7684\u7cfb\u7edf\u7ea7\u82af\u7247\uff0c\u5b83\u4e3b\u8981\u7528\u4e8e\u77ed\u8ddd\u79bb\u65e0\u7ebf\u901a\u4fe1\u5e94\u7528\uff0c\u5982\u5bb6\u5ead\u81ea\u52a8\u5316\u3001\u667a\u80fd\u5bb6\u5c45\u3001\u5de5\u4e1a\u63a7\u5236\u7b49\u3002\u5176\u5185\u7f6e\u4e86\u4e00\u4e2aUART\u63a5\u53e3\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u7b80\u5355\u7684\u6570\u636e\u4f20\u8f93\u3002\u672c\u6587\u5c06\u4ecb\u7ecdCC2530\u4e32\u53e3\u901a\u4fe1\u7684\u539f\u7406\uff0c\u5305\u62ecUART\u63a5\u53e3\u7684\u6784\u6210\u3001\u63a5\u53e3\u7684\u7279\u6027\u3001\u63a5\u53e3\u7684\u5de5\u4f5c\u539f\u7406\u3001\u4e32\u53e3\u901a\u4fe1\u7684\u6d41\u7a0b\u7b49\u3002<\/p>\n

UART\u63a5\u53e3\u6784\u6210<\/h2>\n

  CC2530\u7684UART\u63a5\u53e3\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a\u63a7\u5236\u5668\uff08Controller\uff09\u3001\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff08Programmable Baud Rate Generator\uff09\u548c\u63a5\u6536\u5668\/\u53d1\u9001\u5668\uff08Receiver\/Transmitter\uff09\u3002\u63a7\u5236\u5668\u7528\u4e8e\u63a7\u5236UART\u63a5\u53e3\u7684\u5de5\u4f5c\uff0c\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\u7528\u4e8e\u751f\u6210\u4e32\u53e3\u901a\u4fe1\u7684\u6ce2\u7279\u7387\uff0c\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002 <\/p>\n

  \u63a7\u5236\u5668<\/h3>\n

  \u63a7\u5236\u5668\u662fUART\u63a5\u53e3\u7684\u6838\u5fc3\u90e8\u5206\uff0c\u5b83\u7528\u4e8e\u63a7\u5236\u6574\u4e2aUART\u63a5\u53e3\u7684\u5de5\u4f5c\uff0c\u5305\u62ec\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u63a7\u5236\u3001\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\u7684\u63a7\u5236\u3001\u6570\u636e\u4f20\u8f93\u7684\u63a7\u5236\u7b49\u3002\u5b83\u5177\u6709\u4e00\u4e2a\u53ef\u7f16\u7a0b\u7684\u5bc4\u5b58\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6eUART\u63a5\u53e3\u7684\u53c2\u6570\uff0c\u5982\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u3001\u6821\u9a8c\u4f4d\u7b49\u3002 <\/p>\n

  \u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668<\/h3>\n

  \u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\u662fUART\u63a5\u53e3\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u5b83\u7528\u4e8e\u751f\u6210\u4e32\u53e3\u901a\u4fe1\u7684\u6ce2\u7279\u7387\u3002\u5b83\u5177\u6709\u4e00\u4e2a\u53ef\u7f16\u7a0b\u7684\u5bc4\u5b58\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u6ce2\u7279\u7387\u7684\u53c2\u6570\uff0c\u5982\u9891\u7387\u3001\u5206\u9891\u7cfb\u6570\u7b49\u3002 <\/p>\n

  \u63a5\u6536\u5668\/\u53d1\u9001\u5668<\/h3>\n

  \u63a5\u6536\u5668\/\u53d1\u9001\u5668\u662fUART\u63a5\u53e3\u7684\u6700\u540e\u4e00\u90e8\u5206\uff0c\u5b83\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002\u5b83\u5177\u6709\u4e00\u4e2a\u53ef\u7f16\u7a0b\u7684\u5bc4\u5b58\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u63a5\u6536\u548c\u53d1\u9001\u7684\u53c2\u6570\uff0c\u5982\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u3001\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

UART\u63a5\u53e3\u7279\u6027<\/h2>\n

  CC2530\u7684UART\u63a5\u53e3\u5177\u6709\u4ee5\u4e0b\u7279\u6027\uff1a <\/p>\n

  1.\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387<\/h3>\n

  UART\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u6ce2\u7279\u7387\uff0c\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u8c03\u6574\u6ce2\u7279\u7387\u3002 <\/p>\n

  2.\u53ef\u7f16\u7a0b\u6570\u636e\u4f4d<\/h3>\n

  UART\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u6570\u636e\u4f4d\uff0c\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u8c03\u6574\u6570\u636e\u4f4d\u3002 <\/p>\n

  3.\u53ef\u7f16\u7a0b\u505c\u6b62\u4f4d<\/h3>\n

  UART\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u505c\u6b62\u4f4d\uff0c\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u8c03\u6574\u505c\u6b62\u4f4d\u3002<\/p>\n

  4.\u53ef\u7f16\u7a0b\u6821\u9a8c\u4f4d<\/h3>\n

  UART\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u6821\u9a8c\u4f4d\uff0c\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u8c03\u6574\u6821\u9a8c\u4f4d\u3002<\/p>\n

UART\u63a5\u53e3\u5de5\u4f5c\u539f\u7406<\/h2>\n

  UART\u63a5\u53e3\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff1a\u5f53\u5728\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u5165\u7aef\u63a5\u6536\u5230\u6570\u636e\u65f6\uff0c\u63a7\u5236\u5668\u4f1a\u68c0\u6d4b\u5230\u6570\u636e\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u53d1\u751f\u5668\u4f1a\u6839\u636e\u8bbe\u5b9a\u7684\u6ce2\u7279\u7387\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u51fa\u7aef\u3002\u53e6\u5916\uff0c\u5f53\u5728\u53d1\u9001\u5668\u7684\u8f93\u5165\u7aef\u53d1\u9001\u6570\u636e\u65f6\uff0c\u63a7\u5236\u5668\u4f1a\u68c0\u6d4b\u5230\u6570\u636e\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u53d1\u751f\u5668\u4f1a\u6839\u636e\u8bbe\u5b9a\u7684\u6ce2\u7279\u7387\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u51fa\u7aef\u3002 <\/p>\n

\u4e32\u53e3\u901a\u4fe1\u6d41\u7a0b<\/h2>\n

  \u4e32\u53e3\u901a\u4fe1\u7684\u6d41\u7a0b\u5982\u4e0b\uff1a <\/p>\n

  1.\u6570\u636e\u51c6\u5907<\/h3>\n

  \u9996\u5148\uff0c\u9700\u8981\u51c6\u5907\u7528\u4e8e\u901a\u4fe1\u7684\u6570\u636e\uff0c\u5305\u62ec\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u3001\u6821\u9a8c\u4f4d\u7b49\u3002 <\/p>\n

  2.\u53c2\u6570\u8bbe\u7f6e<\/h3>\n

  \u7136\u540e\uff0c\u9700\u8981\u8bbe\u7f6eUART\u63a5\u53e3\u7684\u53c2\u6570\uff0c\u5305\u62ec\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u3001\u6821\u9a8c\u4f4d\u7b49\u3002 <\/p>\n

  3.\u6570\u636e\u53d1\u9001<\/h3>\n

  \u63a5\u7740\uff0c\u9700\u8981\u5c06\u51c6\u5907\u597d\u7684\u6570\u636e\u53d1\u9001\u5230UART\u63a5\u53e3\u7684\u8f93\u5165\u7aef\uff0c\u63a7\u5236\u5668\u4f1a\u5c06\u6570\u636e\u53d1\u9001\u5230\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u53d1\u751f\u5668\u4f1a\u6839\u636e\u8bbe\u5b9a\u7684\u6ce2\u7279\u7387\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u51fa\u7aef\u3002 <\/p>\n

  4.\u6570\u636e\u63a5\u6536<\/h3>\n

  \u6700\u540e\uff0c\u9700\u8981\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u4eceUART\u63a5\u53e3\u7684\u8f93\u51fa\u7aef\u63a5\u6536\u51fa\u6765\uff0c\u63a7\u5236\u5668\u4f1a\u68c0\u6d4b\u5230\u6570\u636e\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u53d1\u751f\u5668\u4f1a\u6839\u636e\u8bbe\u5b9a\u7684\u6ce2\u7279\u7387\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u51fa\u7aef\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  CC2530\u7684UART\u63a5\u53e3\u7531\u63a7\u5236\u5668\u3001\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\u548c\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7ec4\u6210\uff0c\u5177\u6709\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u3001\u53ef\u7f16\u7a0b\u6570\u636e\u4f4d\u3001\u53ef\u7f16\u7a0b\u505c\u6b62\u4f4d\u548c\u53ef\u7f16\u7a0b\u6821\u9a8c\u4f4d\u7b49\u7279\u6027\uff0c\u5176\u5de5\u4f5c\u539f\u7406\u662f\u5f53\u5728\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u5165\u7aef\u63a5\u6536\u5230\u6570\u636e\u65f6\uff0c\u63a7\u5236\u5668\u4f1a\u68c0\u6d4b\u5230\u6570\u636e\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230\u53ef\u7f16\u7a0b\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u53d1\u751f\u5668\u4f1a\u6839\u636e\u8bbe\u5b9a\u7684\u6ce2\u7279\u7387\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\/\u53d1\u9001\u5668\u7684\u8f93\u51fa\u7aef\u3002\u4e32\u53e3\u901a\u4fe1\u7684\u6d41\u7a0b\u4e3a\uff1a\u6570\u636e\u51c6\u5907\u2192\u53c2\u6570\u8bbe\u7f6e\u2192\u6570\u636e\u53d1\u9001\u2192\u6570\u636e\u63a5\u6536\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

CC2530\u662f\u4e00\u6b3e\u4f4e\u6210\u672c\u7684\u7cfb\u7edf\u7ea7\u82af\u7247\uff0c\u5b83\u4e3b\u8981\u7528\u4e8e\u77ed\u8ddd\u79bb\u65e0\u7ebf\u901a\u4fe1\u5e94\u7528\uff0c\u5982\u5bb6\u5ead\u81ea\u52a8\u5316\u3001\u667a\u80fd\u5bb6\u5c45\u3001\u5de5\u4e1a\u63a7\u5236\u7b49\u3002\u5176\u5185\u7f6e\u4e86\u4e00\u4e2aUART\u63a5\u53e3\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0<\/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":[317,69],"class_list":["post-38886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cc2530","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/38886","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=38886"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/38886\/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=38886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=38886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=38886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}