{"id":78771,"date":"2024-01-12T02:11:08","date_gmt":"2024-01-11T18:11:08","guid":{"rendered":"\/\/www.viralrail.com\/?p=78771"},"modified":"2024-01-12T02:11:08","modified_gmt":"2024-01-11T18:11:08","slug":"rbtljs","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/78771.html","title":{"rendered":"RS232\u6ce2\u7279\u7387\u8ba1\u7b97"},"content":{"rendered":"

  RS232\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u6807\u51c6\uff0c\u6ce2\u7279\u7387\u8ba1\u7b97\u5bf9\u4e8eRS232\u901a\u4fe1\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u975e\u5e38\u91cd\u8981\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u6ce2\u7279\u7387\u8ba1\u7b97\u7684\u539f\u7406\u3001\u65b9\u6cd5\u4ee5\u53ca\u5e94\u7528\u3002<\/p>\n

RS232\u6ce2\u7279\u7387\u7b80\u4ecb<\/h2>\n

  \u5728 RS232 \u901a\u4fe1\u4e2d\uff0c\u6ce2\u7279\u7387\u662f\u6307\u6bcf\u79d2\u949f\u4f20\u8f93\u7684\u6bd4\u7279\u6570\u3002\u6ce2\u7279\u7387\u8ba1\u7b97\u662f\u786e\u4fdd\u53d1\u9001\u65b9\u548c\u63a5\u6536\u65b9\u4e4b\u95f4\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u5339\u914d\u7684\u5173\u952e\u3002\u9ad8\u6ce2\u7279\u7387<\/a>\u610f\u5473\u7740\u66f4\u5feb\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4f46\u4e5f\u9700\u8981\u66f4\u9ad8\u7684\u5e26\u5bbd\u3002<\/p>\n

  \u6ce2\u7279\u7387\u8ba1\u7b97\u539f\u7406<\/h3>\n

  \u6ce2\u7279\u7387\u8ba1\u7b97\u57fa\u4e8e\u4fe1\u53f7\u7684\u4f20\u8f93\u9891\u7387\u3002\u901a\u5e38\uff0c\u6ce2\u7279\u7387\u662f\u7531\u7cbe\u786e\u7684\u65f6\u949f\u4fe1\u53f7\uff08\u65f6\u949f\u901f\u7387\uff09\u6765\u63a7\u5236\u3002\u6ce2\u7279\u7387\u8ba1\u7b97\u5e38\u6d89\u53ca\u5230\u65f6\u949f\u901f\u7387\u7684\u9664\u6cd5\uff0c\u4ee5\u786e\u4fdd\u53d1\u9001\u548c\u63a5\u6536\u8bbe\u5907\u4e4b\u95f4\u7684\u540c\u6b65\u3002<\/p>\n

  \u6ce2\u7279\u7387\u8ba1\u7b97\u65b9\u6cd5<\/h3>\n

  \u6ce2\u7279\u7387\u8ba1\u7b97\u7684\u65b9\u6cd5\u5305\u62ec\u76f4\u63a5\u8ba1\u7b97\u548c\u5b9e\u9645\u6d4b\u91cf\u3002\u76f4\u63a5\u8ba1\u7b97\u662f\u6839\u636e\u65f6\u949f\u901f\u7387\u548c\u5e26\u5bbd\u7684\u5173\u7cfb\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\uff0c\u800c\u5b9e\u9645\u6d4b\u91cf\u5219\u662f\u901a\u8fc7\u8bbe\u5907\u5b9e\u9645\u4f20\u8f93\u6570\u636e\u7684\u901f\u7387\u6765\u786e\u5b9a\u6ce2\u7279\u7387\u3002<\/p>\n

RS232\u6ce2\u7279\u7387\u8ba1\u7b97\u5b9e\u4f8b<\/h2>\n

  \u4ee5\u5b9e\u9645\u4f8b\u5b50\u6765\u8bf4\u660e\u6ce2\u7279\u7387\u8ba1\u7b97\u7684\u8fc7\u7a0b\u3002\u5047\u8bbe\u4e00\u4e2aRS232\u901a\u4fe1\u7cfb\u7edf\u7684\u65f6\u949f\u901f\u7387\u4e3a10MHz\uff0c\u8981\u6c42\u6ce2\u7279\u7387\u4e3a115200\u3002\u90a3\u4e48\u6ce2\u7279\u7387\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1aBaud Rate = Clock Speed \/ (16 * (Prescale + 1))\u3002\u5e26\u5165\u6570\u636e\u540e\uff0c\u53ef\u5f97\u5230\uff1a115200 = 10000000 \/ (16 * (Prescale + 1))\u3002\u901a\u8fc7\u7b80\u5355\u7684\u4ee3\u6570\u8fd0\u7b97\uff0c\u5f97\u5230 Prescale = 5\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  RS232\u6ce2\u7279\u7387\u8ba1\u7b97\u662f\u4fdd\u8bc1\u4e32\u884c\u901a\u4fe1\u7a33\u5b9a\u53ef\u9760\u7684\u5173\u952e\u4e00\u6b65\u3002<\/strong>\u901a\u8fc7\u7406\u89e3\u6ce2\u7279\u7387\u8ba1\u7b97\u7684\u539f\u7406\u548c\u65b9\u6cd5\uff0c\u6211\u4eec\u80fd\u66f4\u597d\u5730\u914d\u7f6e\u548c\u4f18\u5316RS232<\/a>\u901a\u4fe1\u7cfb\u7edf<\/a>\uff0c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

RS232\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u6807\u51c6\uff0c\u6ce2\u7279\u7387\u8ba1\u7b97\u5bf9\u4e8eRS232\u901a\u4fe1\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u975e\u5e38\u91cd\u8981\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u6ce2\u7279\u7387\u8ba1\u7b97\u7684\u539f\u7406\u3001\u65b9\u6cd5\u4ee5\u53ca\u5e94\u7528\u3002RS232\u6ce2\u7279\u7387\u7b80\u4ecb\u5728RS2<\/p>\n","protected":false},"author":1,"featured_media":64183,"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-78771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-r-3"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/78771"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=78771"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/78771\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=78771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=78771"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=78771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}