{"id":46504,"date":"2023-10-05T19:57:13","date_gmt":"2023-10-05T11:57:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=46504"},"modified":"2023-10-05T19:57:13","modified_gmt":"2023-10-05T11:57:13","slug":"rzcdxyhsl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/46504.html","title":{"rendered":"RS232\u652f\u6301\u7684\u534f\u8bae\u548c\u901f\u7387"},"content":{"rendered":"

  RS232\u662f\u4e00\u79cd\u7528\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u6807\u51c6\uff0c\u5b83\u652f\u6301\u5404\u79cd\u534f\u8bae\u548c\u901f\u7387\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/strong>\u672c\u6587\u5c06\u4ecb\u7ecdRS232\u652f\u6301\u7684\u534f\u8bae\u548c\u901f\u7387\uff0c\u4ee5\u53ca\u5b83\u4eec\u7684\u4f18\u7f3a\u70b9\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u4e00\u6807\u51c6\u3002<\/p>\n

RS232\u652f\u6301\u7684\u534f\u8bae<\/h2>\n

  1.UART\u534f\u8bae<\/h3>\n

  UART\u534f\u8bae\u662fRS232\u6700\u5e38\u7528\u7684\u534f\u8bae\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u4ece\u4e00\u53f0\u8bbe\u5907\u4f20\u8f93\u5230\u53e6\u4e00\u53f0\u8bbe\u5907\u3002UART\u534f\u8bae\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6570\u636e\u683c\u5f0f\uff0c\u59828\u4f4d\u6570\u636e\uff0c7\u4f4d\u6570\u636e\uff0c1\u4f4d\u505c\u6b62\u4f4d\uff0c1\u4f4d\u5f00\u59cb\u4f4d\u7b49\u3002\u6b64\u5916\uff0cUART\u534f\u8bae\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6d41\u63a7\u5236\u534f\u8bae\uff0c\u5982XON\/XOFF\uff0cRTS\/CTS\u7b49\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u6570\u636e\u7684\u4f20\u8f93\u3002<\/p>\n

  2.SPI\u534f\u8bae<\/h3>\n

  SPI\u534f\u8bae\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684RS232\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5728\u4e24\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002SPI\u534f\u8bae\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u4f20\u8f93\u6a21\u5f0f\uff0c\u5982\u4e3b\u673a\u6a21\u5f0f\uff0c\u4ece\u673a\u6a21\u5f0f\uff0c\u53cc\u5411\u6a21\u5f0f\u7b49\u3002\u6b64\u5916\uff0cSPI\u534f\u8bae\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6570\u636e\u683c\u5f0f\uff0c\u59828\u4f4d\u6570\u636e\uff0c9\u4f4d\u6570\u636e\uff0c16\u4f4d\u6570\u636e\u7b49\u3002<\/p>\n

  3.I2C\u534f\u8bae<\/h3>\n

  I2C\u534f\u8bae\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684RS232\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4e24\u53f0\u8bbe\u5907\u4e4b\u95f4\u7684\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002I2C\u534f\u8bae\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6570\u636e\u683c\u5f0f\uff0c\u59828\u4f4d\u6570\u636e\uff0c7\u4f4d\u6570\u636e\uff0c1\u4f4d\u505c\u6b62\u4f4d\u7b49\u3002\u6b64\u5916\uff0cI2C\u534f\u8bae\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6d41\u63a7\u5236\u534f\u8bae\uff0c\u5982STOP\/START\uff0cACK\/NACK\u7b49\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u6570\u636e\u7684\u4f20\u8f93\u3002<\/p>\n

RS232\u652f\u6301\u7684\u901f\u7387<\/h2>\n

  1.\u4f4e\u901f\u7387<\/h3>\n

  RS232\u53ef\u4ee5\u652f\u6301\u4f4e\u901f\u7387\uff0c\u8fd9\u79cd\u901f\u7387\u53ef\u4ee5\u6ee1\u8db3\u4e00\u822c\u7684\u6570\u636e\u4f20\u8f93\u9700\u6c42\uff0c\u5982300bps\uff0c1200bps\uff0c2400bps\u7b49\u3002\u4f4e\u901f\u7387\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u4f20\u8f93\u6570\u636e\u7684\u65f6\u95f4\uff0c\u4ece\u800c\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\u3002<\/p>\n

  2.\u9ad8\u901f\u7387<\/h3>\n

  RS232\u4e5f\u53ef\u4ee5\u652f\u6301\u9ad8\u901f\u7387\uff0c\u8fd9\u79cd\u901f\u7387\u53ef\u4ee5\u6ee1\u8db3\u5927\u91cf\u6570\u636e\u4f20\u8f93\u7684\u9700\u6c42\uff0c\u59829600bps\uff0c19200bps\uff0c38400bps\u7b49\u3002\u9ad8\u901f\u7387\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\uff0c\u4ece\u800c\u51cf\u5c11\u4f20\u8f93\u6570\u636e\u7684\u65f6\u95f4\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  RS232\u662f\u4e00\u79cd\u7528\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u6807\u51c6\uff0c\u5b83\u652f\u6301\u5404\u79cd\u534f\u8bae\u548c\u901f\u7387\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/strong>\u5b83\u652f\u6301\u7684\u534f\u8bae\u6709UART\u534f\u8bae\uff0cSPI\u534f\u8bae\u548cI2C\u534f\u8bae\uff0c\u652f\u6301\u7684\u901f\u7387\u6709\u4f4e\u901f\u7387\u548c\u9ad8\u901f\u7387\u3002\u8fd9\u4e9b\u534f\u8bae\u548c\u901f\u7387\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\uff0c\u4ece\u800c\u51cf\u5c11\u4f20\u8f93\u6570\u636e\u7684\u65f6\u95f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

RS232\u662f\u4e00\u79cd\u7528\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u6807\u51c6\uff0c\u5b83\u652f\u6301\u5404\u79cd\u534f\u8bae\u548c\u901f\u7387\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002\u672c\u6587\u5c06\u4ecb\u7ecdRS232\u652f\u6301\u7684\u534f\u8bae\u548c\u901f\u7387\uff0c\u4ee5\u53ca\u5b83\u4eec\u7684\u4f18<\/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":[68],"class_list":["post-46504","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-r-3"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/46504","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=46504"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/46504\/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=46504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=46504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=46504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}