{"id":2805,"date":"2019-09-12T01:02:40","date_gmt":"2019-09-12T01:02:40","guid":{"rendered":""},"modified":"2019-09-12T09:03:00","modified_gmt":"2019-09-12T01:03:00","slug":"uart%e9%80%9a%e4%bf%a1%e7%9a%84%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86%e5%8f%8a%e4%bc%98%e7%bc%ba%e7%82%b9%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2805","title":{"rendered":"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790"},"content":{"rendered":"

\n\tUART<\/u>\u662f\u7528\u4e8e\u63a7\u5236\u8ba1\u7b97\u673a<\/u>\u4e0e\u4e32\u884c\u8bbe\u5907\u7684\u82af\u7247\u3002\u6709\u4e00\u70b9\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b83\u63d0\u4f9b\u4e86\u6570\u636e\u7ec8\u7aef\u8bbe\u5907\u63a5\u53e3<\/u>\uff0c\u8fd9\u6837\u8ba1\u7b97\u673a\u5c31\u53ef\u4ee5\u548c\u8c03\u5236\u89e3\u8c03\u5668\u6216\u5176\u5b83\u4f7f\u7528RS<\/u>-232C\u63a5\u53e3\u7684\u4e32\u884c\u8bbe\u5907\u901a\u4fe1\u4e86\u3002<\/p>\n

\n\tUART\u901a\u4fe1\u7b80\u4ecb<\/p>\n

\n\t <\/div>\n

\n\t\u5728UART\u901a\u4fe1\u4e2d\uff0c\u4e24\u4e2aUART\u76f4\u63a5\u76f8\u4e92\u901a\u4fe1\u3002\u53d1\u9001UART\u5c06\u6765\u81eaCPU<\/u>\u7b49\u63a7\u5236\u8bbe\u5907\u7684\u5e76\u884c\u6570\u636e\u8f6c\u6362\u4e3a\u4e32\u884c\u5f62\u5f0f\uff0c\u5e76\u5c06\u5176\u4e32\u884c\u53d1\u9001\u5230\u63a5\u6536UART\uff0c\u63a5\u6536UART\u7136\u540e\u5c06\u4e32\u884c\u6570\u636e\u8f6c\u6362\u56de\u63a5\u6536\u8bbe\u5907\u7684\u5e76\u884c\u6570\u636e\u3002\u5728\u4e24\u4e2aUART\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u53ea\u9700\u8981\u4e24\u6839\u7ebf\u3002\u6570\u636e\u4ece\u53d1\u9001UART\u7684Tx\u5f15\u811a\u6d41\u5411\u63a5\u6536UART\u7684Rx\u5f15\u811a\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\tUART\u4ee5\u5f02\u6b65\u65b9\u5f0f\u53d1\u9001\u6570\u636e\uff0c\u8fd9\u610f\u5473\u7740\u6ca1\u6709\u65f6\u949f<\/u>\u4fe1\u53f7\u5c06\u53d1\u9001UART\u7684\u4f4d\u8f93\u51fa\u4e0e\u63a5\u6536UART\u7684\u4f4d\u91c7\u6837\u540c\u6b65\u3002\u53d1\u9001UART\u4e0d\u662f\u65f6\u949f\u4fe1\u53f7\uff0c\u800c\u662f\u5c06\u5f00\u59cb\u548c\u505c\u6b62\u4f4d\u6dfb\u52a0\u5230\u6b63\u5728\u4f20\u8f93\u7684\u6570\u636e\u5305\u4e2d\u3002\u8fd9\u4e9b\u4f4d\u5b9a\u4e49\u6570\u636e\u5305\u7684\u5f00\u59cb\u548c\u7ed3\u675f\uff0c\u56e0\u6b64\u63a5\u6536UART\u77e5\u9053\u4f55\u65f6\u5f00\u59cb\u8bfb\u53d6\u4f4d\u3002<\/p>\n

\n\t\u5f53\u63a5\u6536UART\u68c0\u6d4b\u5230\u8d77\u59cb\u4f4d\u65f6\uff0c\u5b83\u5f00\u59cb\u4ee5\u79f0\u4e3a\u6ce2\u7279\u7387\u7684\u7279\u5b9a\u9891\u7387\u8bfb\u53d6\u8f93\u5165\u4f4d\u3002\u6ce2\u7279\u7387\u662f\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u7684\u5ea6\u91cf\uff0c\u4ee5\u6bcf\u79d2\u4f4d\u6570(bps)\u8868\u793a\u3002\u4e24\u4e2aUART\u5fc5\u987b\u4ee5\u5927\u81f4\u76f8\u540c\u7684\u6ce2\u7279\u7387\u8fd0\u884c\u3002\u53d1\u9001\u548c\u63a5\u6536UART\u4e4b\u95f4\u7684\u6ce2\u7279\u7387\u53ea\u80fd\u76f8\u5dee10%\u5de6\u53f3\u3002<\/p>\n

\n\t\u4e24\u4e2aUART\u8fd8\u5fc5\u987b\u914d\u7f6e\u4e3a\u53d1\u9001\u548c\u63a5\u6536\u76f8\u540c\u7684\u6570\u636e\u5305\u7ed3\u6784\u3002<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\tUART\u5982\u4f55\u5de5\u4f5c<\/p>\n

\n\tUART\u4f20\u8f93\u6570\u636e\u4f9d\u9760\u7684\u662fUART\u603b\u7ebf\uff0c\u6570\u636e\u603b\u7ebf\u7528\u4e8e\u901a\u8fc7CPU\uff0c\u5b58\u50a8\u5668<\/u>\u6216\u5fae\u63a7\u5236\u5668\u7b49\u5176\u4ed6\u8bbe\u5907\u5c06\u6570\u636e\u53d1\u9001\u5230UART\u3002\u6570\u636e\u4ee5\u5e76\u884c\u5f62\u5f0f\u4ece\u6570\u636e\u603b\u7ebf\u4f20\u8f93\u5230\u53d1\u9001UART\u3002\u5728\u53d1\u9001UART\u4ece\u6570\u636e\u603b\u7ebf\u83b7\u5f97\u5e76\u884c\u6570\u636e\u4e4b\u540e\uff0c\u5b83\u5c06\u6dfb\u52a0\u8d77\u59cb\u4f4d\uff0c\u5947\u5076\u6821\u9a8c\u4f4d\u548c\u505c\u6b62\u4f4d\uff0c\u4ece\u800c\u521b\u5efa\u6570\u636e\u5305\u3002\u63a5\u4e0b\u6765\uff0c\u6570\u636e\u5305\u5728Tx\u5f15\u811a\u4e0a\u9010\u4f4d\u4e32\u884c\u8f93\u51fa\u3002UART\u63a5\u6536\u7aef\u5219\u5728\u5176Rx\u5f15\u811a\u4e0a\u9010\u4f4d\u8bfb\u53d6\u6570\u636e\u5305\u3002\u7136\u540e\uff0c\u63a5\u6536UART\u5c06\u6570\u636e\u8f6c\u6362\u56de\u5e76\u884c\u5f62\u5f0f\uff0c\u5e76\u5220\u9664\u8d77\u59cb\u4f4d\uff0c\u5947\u5076\u6821\u9a8c\u4f4d\u548c\u505c\u6b62\u4f4d\u3002\u6700\u540e\uff0c\u63a5\u6536UART\u5c06\u6570\u636e\u5305\u5e76\u884c\u4f20\u8f93\u5230\u63a5\u6536\u7aef\u7684\u6570\u636e\u603b\u7ebf\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\tUART\u4f20\u8f93\u7684\u6570\u636e\u88ab\u7ec4\u7ec7\u6210\u6570\u636e\u5305\u3002\u6bcf\u4e2a\u6570\u636e\u5305\u5305\u542b1\u4e2a\u8d77\u59cb\u4f4d\uff0c5\u52309\u4e2a\u6570\u636e\u4f4d(\u53d6\u51b3\u4e8eUART)\uff0c\u53ef\u9009\u7684\u5947\u5076\u6821\u9a8c\u4f4d\u4ee5\u53ca1\u62162\u4e2a\u505c\u6b62\u4f4d\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\t\u5f00\u59cb\u4f4d<\/p>\n

\n\t\u5f53UART\u6570\u636e\u4f20\u8f93\u7ebf\u4e0d\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u5b83\u901a\u5e38\u4fdd\u6301\u5728\u9ad8\u7535\u538b\u7535\u5e73\u3002\u4e3a\u4e86\u5f00\u59cb\u6570\u636e\u4f20\u8f93\uff0c\u53d1\u9001UART\u5c06\u4f20\u8f93\u7ebf\u4ece\u9ad8\u7535\u5e73\u62c9\u81f3\u4f4e\u7535\u5e73\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u3002\u5f53\u63a5\u6536UART\u68c0\u6d4b\u5230\u9ad8\u7535\u538b\u5230\u4f4e\u7535\u538b\u8f6c\u6362\u65f6\uff0c\u5b83\u5f00\u59cb\u4ee5\u6ce2\u7279\u7387\u7684\u9891\u7387\u8bfb\u53d6\u6570\u636e\u5e27\u4e2d\u7684\u4f4d\u3002<\/p>\n

\n\t\u6570\u636e\u6846<\/p>\n

\n\t\u6570\u636e\u6846\u5305\u542b\u8981\u4f20\u8f93\u7684\u5b9e\u9645\u6570\u636e\u3002\u5982\u679c\u4f7f\u7528\u5947\u5076\u6821\u9a8c\u4f4d\uff0c\u5219\u5b83\u53ef\u4ee5\u662f5\u4f4d\u52308\u4f4d\u957f\u3002\u5982\u679c\u4e0d\u4f7f\u7528\u5947\u5076\u6821\u9a8c\u4f4d\uff0c\u5219\u6570\u636e\u5e27\u53ef\u4ee5\u662f9\u4f4d\u957f\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6570\u636e\u9996\u5148\u4ee5\u6700\u4f4e\u6709\u6548\u4f4d\u53d1\u9001\u3002<\/p>\n

\n\t\u5947\u5076\u6821\u9a8c\u4f4d<\/p>\n

\n\t\u5947\u5076\u6821\u9a8c\u63cf\u8ff0\u6570\u5b57\u7684\u5747\u5300\u6027\u6216\u5947\u6570\u3002\u5947\u5076\u6821\u9a8c\u4f4d\u662f\u63a5\u6536UART\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u5224\u65ad\u662f\u5426\u6709\u4efb\u4f55\u6570\u636e\u53d1\u751f\u53d8\u5316\u7684\u4e00\u79cd\u65b9\u6cd5\u3002\u7535\u78c1\u8f90\u5c04\u3001\u4e0d\u5339\u914d\u7684\u6ce2\u7279\u7387\u6216\u957f\u8ddd\u79bb\u4f20\u8f93\u65f6\uff0c\u6570\u636e\u90fd\u6709\u53ef\u80fd\u53d1\u751f\u53d8\u5316\u3002\u63a5\u6536UART\u8bfb\u53d6\u6570\u636e\u5e27\u540e\uff0c\u5b83\u4f1a\u8ba1\u7b97\u503c\u4e3a1\u7684\u4f4d\u6570\uff0c\u5e76\u68c0\u67e5\u603b\u6570\u662f\u5076\u6570\u8fd8\u662f\u5947\u6570\u3002\u5982\u679c\u5947\u5076\u6821\u9a8c\u4f4d\u4e3a0(\u5076\u6821\u9a8c)\uff0c\u5219\u6570\u636e\u5e27\u4e2d\u76841\u4f4d\u5e94\u603b\u8ba1\u4e3a\u5076\u6570\u3002\u5982\u679c\u5947\u5076\u6821\u9a8c\u4f4d\u662f1(\u5947\u6821\u9a8c)\uff0c\u5219\u6570\u636e\u5e27\u4e2d\u76841\u4f4d\u5e94\u603b\u8ba1\u4e3a\u5947\u6570\u3002\u5f53\u5947\u5076\u6821\u9a8c\u4f4d\u4e0e\u6570\u636e\u5339\u914d\u65f6\uff0cUART\u77e5\u9053\u4f20\u8f93\u6ca1\u6709\u9519\u8bef\u3002\u4f46\u5982\u679c\u5947\u5076\u6821\u9a8c\u4f4d\u4e3a0\uff0c\u7136\u800c1\u4f4d\u5e94\u603b\u8ba1\u4e3a\u5947\u6570;\u6216\u8005\u5947\u5076\u6821\u9a8c\u4f4d\u662f1\uff0c\u5e76\u4e141\u4f4d\u5e94\u603b\u8ba1\u662f\u5076\u6570\uff0c\u5219\u6570\u636e\u5e27\u4e2d\u7684\u4f4d\u5df2\u7ecf\u6539\u53d8\u3002<\/p>\n

\n\t\u505c\u6b62\u4f4d<\/p>\n

\n\t\u4e3a\u4e86\u901a\u77e5\u4f20\u8f93\u6570\u636e\u5305\u7684\u7ed3\u675f\uff0cUART\u53d1\u9001\u7aef\u4f1a\u5c06\u6570\u636e\u4f20\u8f93\u7ebf\u4ece\u4f4e\u7535\u538b\u9a71\u52a8\u81f3\u9ad8\u7535\u538b\u81f3\u5c11\u4e24\u4f4d\u6301\u7eed\u65f6\u95f4\u3002<\/p>\n

\n\tUART\u4f20\u8f93\u6b65\u9aa4<\/p>\n

\n\t1.\u53d1\u9001UART\u4ece\u6570\u636e\u603b\u7ebf\u5e76\u884c\u63a5\u6536\u6570\u636e\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\t2.\u53d1\u9001UART\u5c06\u8d77\u59cb\u4f4d\uff0c\u5947\u5076\u6821\u9a8c\u4f4d\u548c\u505c\u6b62\u4f4d\u6dfb\u52a0\u5230\u6570\u636e\u5e27\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\t3.\u6574\u4e2a\u6570\u636e\u5305\u4ece\u53d1\u9001UART\u4e32\u884c\u53d1\u9001\u5230\u63a5\u6536UART\u3002\u63a5\u6536UART\u4ee5\u9884\u5148\u914d\u7f6e\u7684\u6ce2\u7279\u7387\u5bf9\u6570\u636e\u7ebf\u8fdb\u884c\u91c7\u6837\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\t4.\u63a5\u6536UART\u4e22\u5f03\u6570\u636e\u5e27\u4e2d\u7684\u8d77\u59cb\u4f4d\uff0c\u5947\u5076\u6821\u9a8c\u4f4d\u548c\u505c\u6b62\u4f4d\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\t5.\u63a5\u6536UART\u5c06\u4e32\u884c\u6570\u636e\u8f6c\u6362\u56de\u5e76\u884c\u5e76\u5c06\u5176\u4f20\u8f93\u5230\u63a5\u6536\u7aef\u7684\u6570\u636e\u603b\u7ebf\uff1a<\/p>\n

\n\t\"UART\u901a\u4fe1\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u4f18\u7f3a\u70b9\u5206\u6790\"<\/p>\n

\n\tUART\u7684\u4f18\u70b9\u548c\u7f3a\u70b9<\/p>\n

\n\t\u6ca1\u6709\u4efb\u4f55\u4e00\u79cd\u901a\u4fe1\u534f\u8bae\u662f\u5b8c\u7f8e\u7684\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4f18\u70b9\u548c\u7f3a\u70b9\uff0c\u53ef\u5e2e\u52a9\u60a8\u786e\u5b9a\u5b83\u4eec\u662f\u5426\u7b26\u5408\u60a8\u9879\u76ee\u7684\u9700\u6c42\uff1a<\/p>\n

\n\t\u4f18\u70b9<\/p>\n

\n\t\u53ea\u4f7f\u7528\u4e24\u6839\u7535\u7ebf<\/u><\/p>\n

\n\t\u4e0d\u9700\u8981\u65f6\u949f\u4fe1\u53f7<\/p>\n

\n\t\u6709\u4e00\u4e2a\u5947\u5076\u6821\u9a8c\u4f4d<\/p>\n

\n\t\u53ea\u8981\u53cc\u65b9\u8bbe\u7f6e\u540e\uff0c\u5c31\u53ef\u4ee5\u6539\u53d8\u6570\u636e\u5305\u7684\u7ed3\u6784<\/p>\n

\n\t\u6709\u5b8c\u6574\u7684\u6587\u6863\u5e76\u4e14\u5177\u6709\u5e7f\u6cdb\u7684\u4f7f\u7528<\/p>\n

\n\t\u7f3a\u70b9<\/p>\n

\n\t\u6570\u636e\u5e27\u7684\u5927\u5c0f\u9650\u5236\u4e3a\u6700\u591a9\u4f4d<\/p>\n

\n\t\u4e0d\u652f\u6301\u591a\u4e2a\u4ece\u5c5e\u6216\u591a\u4e2a\u4e3b\u7cfb\u7edf<\/p>\n

\n\t\u6bcf\u4e2aUART\u7684\u6ce2\u7279\u7387\u5fc5\u987b\u572810%\u4e4b\u5185<\/p>\n","protected":false},"excerpt":{"rendered":"

UART \u662f\u7528\u4e8e\u63a7\u5236 \u8ba1\u7b97\u673a \u4e0e\u4e32\u884c\u8bbe\u5907\u7684\u82af\u7247\u3002\u6709\u4e00\u70b9\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b83\u63d0\u4f9b\u4e86\u6570\u636e\u7ec8\u7aef\u8bbe\u5907 \u63a5\u53e3 \uff0c\u8fd9\u6837\u8ba1\u7b97\u673a\u5c31\u53ef\u4ee5\u548c\u8c03\u5236\u89e3\u8c03\u5668\u6216\u5176\u5b83\u4f7f\u7528 RS -232C\u63a5\u53e3\u7684\u4e32\u884c\u8bbe\u5907\u901a\u4fe1\u4e86\u3002 UART\u901a\u4fe1\u7b80\u4ecb<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2805"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2805"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2805\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2805"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}