{"id":96200,"date":"2024-07-31T14:03:29","date_gmt":"2024-07-31T06:03:29","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=96200"},"modified":"2024-07-31T14:03:33","modified_gmt":"2024-07-31T06:03:33","slug":"ujkysmy-3","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/96200.html","title":{"rendered":"UART\u63a5\u53e3\u6709\u4ec0\u4e48\u7528"},"content":{"rendered":"\n
\u3000\u3000UART\u63a5\u53e3<\/a><\/strong>(\u901a\u7528\u5f02\u6b65\u6536\u53d1\u4f20\u8f93\u5668)\u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u7269\u7406\u63a5\u53e3\uff0c\u5177\u6709\u591a\u79cd\u7528\u9014\u548c\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u89e3\u91ca\uff1a<\/p>\n\n\n\n \u3000\u3000UART\u63a5\u53e3\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u5404\u79cd\u5916\u90e8\u8bbe\u5907\uff0c\u5982\u4f20\u611f\u5668\u3001\u6253\u5370\u673a\u3001\u626b\u63cf\u4eea\u3001\u5b58\u50a8\u8bbe\u5907\u7b49\u3002\u5b83\u8fd8\u53ef\u4ee5\u8fde\u63a5\u7ec8\u7aef\u8bbe\u5907\u3001\u6a21\u5757\u548c\u8ba1\u7b97\u673a\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000UART\u63a5\u53e3\u4e3b\u8981\u7528\u4e8e\u5b9e\u73b0\u4e24\u53f0\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u652f\u6301\u5168\u53cc\u5de5\u901a\u4fe1\uff0c\u5373\u540c\u65f6\u8fdb\u884c\u53d1\u9001\u548c\u63a5\u6536\u64cd\u4f5c\u3002\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97UART\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u6c7d\u8f66\u97f3\u54cd\u4e0e\u5916\u63a5AP\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u4ee5\u53caPC\u673a\u4e0e\u76d1\u63a7\u8c03\u8bd5\u5668\u548c\u5176\u4ed6\u5668\u4ef6\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n\n\n\n \u3000\u3000UART\u91c7\u7528\u5f02\u6b65\u4f20\u8f93\u65b9\u5f0f\uff0c\u8fd9\u610f\u5473\u7740\u53d1\u9001\u548c\u63a5\u6536\u53cc\u65b9\u4e0d\u9700\u8981\u5171\u4eab\u65f6\u949f\u4fe1\u53f7\uff0c\u800c\u662f\u901a\u8fc7\u6570\u636e\u5e27\u4e2d\u7684\u8d77\u59cb\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u53ef\u80fd\u5b58\u5728\u7684\u6821\u9a8c\u4f4d\u6765\u540c\u6b65\u6570\u636e\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5316\u4e86\u901a\u4fe1\u534f\u8bae\u7684\u8bbe\u8ba1\uff0c\u5e76\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u7075\u6d3b\u6027\u3002<\/p>\n\n\n\n \u3000\u3000UART\u80fd\u591f\u652f\u6301\u591a\u79cd\u901a\u4fe1\u534f\u8bae\uff0c\u5305\u62ecRS-232\u3001LIN\u3001IrDA\u7b49\u3002\u8fd9\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u7075\u6d3b\u4f7f\u7528\uff0c\u4f8b\u5982\u5de5\u4e1a\u63a7\u5236\u3001\u7f51\u7edc\u901a\u4fe1\u548c\u6d88\u8d39\u7535\u5b50\u8bbe\u5907\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000UART\u901a\u5e38\u7531\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u7ec4\u6210\uff0c\u80fd\u591f\u5c06\u5e76\u884c\u6570\u636e\u8f6c\u6362\u4e3a\u4e32\u884c\u6570\u636e\u6d41\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u6821\u9a8c\u65b9\u5f0f(\u5982\u5947\u5076\u6821\u9a8c)\u548c\u6570\u636e\u683c\u5f0f(\u5982\u8d77\u59cb\u4f4d\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d)\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u5177\u5907FIFO\u7f13\u51b2\u533a\u3001\u6d41\u63a7\u5236\u3001\u81ea\u52a8\u6ce2\u7279\u7387\u68c0\u6d4b\u7b49\u529f\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0cUART\u5e38\u7528\u4e8e\u5fae\u63a7\u5236\u5668\u4e0e\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u5982\u8fde\u63a5GPS\u6a21\u5757\u3001\u84dd\u7259\u6a21\u5757\u7b49\u3002\u5b83\u4e5f\u5e38\u7528\u4e8e\u8ba1\u7b97\u673a\u4e0e\u5916\u8bbe\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u5982\u9f20\u6807\u3001\u952e\u76d8\u3001\u663e\u793a\u5668\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000UART\u63a5\u53e3\u56e0\u5176\u7b80\u5355\u53ef\u9760\u3001\u652f\u6301\u591a\u79cd\u901a\u4fe1\u534f\u8bae\u548c\u5f3a\u5927\u7684\u6570\u636e\u4f20\u8f93\u80fd\u529b\uff0c\u5728\u5404\u79cd\u7535\u5b50\u8bbe\u5907\u548c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002\u65e0\u8bba\u662f\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\u8fd8\u662f\u5b9e\u73b0\u590d\u6742\u7684\u901a\u4fe1\u534f\u8bae\uff0cUART\u90fd\u5c55\u73b0\u51fa\u4e86\u5176\u4e0d\u53ef\u66ff\u4ee3\u7684\u4f18\u52bf\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u73b0\u4ee3\u901a\u4fe1\u6280\u672f\u4e2d\uff0cUART\u63a5\u53e3\u7684\u66ff\u4ee3\u54c1\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n\n\n\n \u3000\u3000\u8bbe\u8ba1\u4e00\u4e2a\u9ad8\u6548\u7684UART\u63a5\u53e3\u4ee5\u652f\u6301\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u9700\u8981\u7efc\u5408\u8003\u8651\u591a\u4e2a\u65b9\u9762\uff0c\u5305\u62ec\u6ce2\u7279\u7387\u8bbe\u7f6e\u3001\u65f6\u949f\u9891\u7387\u4f18\u5316\u3001\u786c\u4ef6\u8bbe\u8ba1\u4ee5\u53ca\u901a\u4fe1\u534f\u8bae\u7684\u9009\u62e9\u7b49\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u8bbe\u8ba1\u6b65\u9aa4\u548c\u5efa\u8bae\uff1a<\/p>\n\n\n\n \u3000\u3000\u6ce2\u7279\u7387\u662f\u6bcf\u79d2\u949f\u4f20\u8f93\u7684\u4f4d\u6570\uff0c\u5e38\u89c1\u7684\u6ce2\u7279\u7387\u67099600\u300119200\u3001115200\u7b49\u3002\u9009\u62e9\u5408\u9002\u7684\u6ce2\u7279\u7387\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u4e3a\u4e86\u63d0\u9ad8UART\u7684\u6700\u5927\u901f\u7387\uff0c\u53ef\u4ee5\u9009\u62e9\u9ad8\u6027\u80fd\u7684\u65f6\u949f\u6e90\uff0c\u5e76\u4f18\u5316\u65f6\u949f\u4fe1\u53f7\u4f20\u8f93\u8def\u5f84\uff0c\u51cf\u5c0f\u6296\u52a8\u548c\u5ef6\u8fdf\u3002\u8fd9\u6709\u52a9\u4e8e\u63d0\u5347\u6574\u4f53\u7684\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u786c\u4ef6\u8bbe\u8ba1\u4e0a\uff0c\u53ef\u4ee5\u91c7\u7528FPGA\u5f00\u53d1\u677f\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u901a\u4fe1\u63a5\u53e3\u534f\u8bae\uff0c\u5982\u4ee5\u592a\u7f51\u3001UDP IP\u3001\u5343\u5146\u7f51\u7edc\u7b49\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4f18\u5316UART\u5185\u6838\u6a21\u5757\uff0c\u63a7\u5236\u6ce2\u7279\u7387\u53d1\u751f\u5668\u548c\u79fb\u4f4d\u5bc4\u5b58\u5668\uff0c\u4f7f\u5f97\u6570\u636e\u5728\u6ce2\u7279\u7387\u65f6\u949f\u7684\u9a71\u52a8\u4e0b\u540c\u6b65\u5730\u63a5\u6536\u548c\u4fdd\u5b58\u3002<\/p>\n\n\n\n \u3000\u3000\u5728UART\u901a\u4fe1\u4e2d\uff0c\u5408\u7406\u7ba1\u7406\u6570\u636e\u7f13\u5b58\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6570\u636e\u5e27\u6821\u9a8c\u65b9\u6cd5\u548c\u9009\u62e9\u5408\u9002\u7684\u901a\u4fe1\u534f\u8bae\u6765\u4f18\u5316\u6027\u80fd\u3002\u4f8b\u5982\uff0c\u5728\u63a5\u6536\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u5c06\u6570\u636e\u5b57\u8282\u5b58\u50a8\u5728\u7279\u5b9a\u7684\u5bc4\u5b58\u5668\u4e2d\uff0c\u5e76\u901a\u8fc7\u4e2d\u65ad\u6807\u5fd7\u6765\u901a\u77e5\u8f6f\u4ef6\u6570\u636e\u4f20\u8f93\u7684\u5b8c\u6210\u3002<\/p>\n\n\n\n \u3000\u3000\u8bbe\u8ba1\u65f6\u5e94\u8003\u8651\u4fe1\u53f7\u7535\u5e73\u7684\u8981\u6c42\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u7684\u6297\u5e72\u6270\u6027\u80fd\u3002\u540c\u65f6\uff0c\u91c7\u7528\u4f4e\u529f\u8017\u8bbe\u8ba1\u53ef\u4ee5\u5ef6\u957f\u8bbe\u5907\u7684\u4f7f\u7528\u5bff\u547d\u5e76\u51cf\u5c11\u80fd\u6e90\u6d88\u8017\u3002<\/p>\n\n\n\n \u3000\u3000UART\u652f\u6301\u5168\u53cc\u5de5\u901a\u4fe1\uff0c\u5373\u540c\u65f6\u8fdb\u884c\u53d1\u9001\u548c\u63a5\u6536\u64cd\u4f5c\u3002\u8fd9\u79cd\u6a21\u5f0f\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u6548\u7387\u3002<\/p>\n\n\n\n \u3000\u3000\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0c\u672a\u6765\u53ef\u80fd\u4f1a\u51fa\u73b0\u65b0\u7684\u901a\u4fe1\u534f\u8bae\u548c\u6280\u672f\uff0c\u8fdb\u4e00\u6b65\u63d0\u9ad8UART\u63a5\u53e3\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n \u3000\u3000UART\u63a5\u53e3\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\u7684\u5e94\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5177\u4f53\u7684\u5e94\u7528\u6848\u4f8b\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u7269\u8054\u7f51\u4e2d\uff0c\u4f20\u611f\u5668\u662f\u6570\u636e\u91c7\u96c6\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u901a\u8fc7UART\u63a5\u53e3\uff0c\u4f20\u611f\u5668\u53ef\u4ee5\u5c06\u91c7\u96c6\u5230\u7684\u6570\u636e\u4f20\u8f93\u5230\u63a7\u5236\u5668\u6216\u5176\u4ed6\u8bbe\u5907\u3002\u4f8b\u5982\uff0c\u5728\u667a\u80fd\u5bb6\u5c45\u7cfb\u7edf\u4e2d\uff0c\u6e29\u5ea6\u4f20\u611f\u5668\u3001\u6e7f\u5ea6\u4f20\u611f\u5668\u7b49\u53ef\u4ee5\u901a\u8fc7UART\u63a5\u53e3\u5b9e\u65f6\u4f20\u8f93\u73af\u5883\u53c2\u6570\u7ed9\u4e2d\u592e\u63a7\u5236\u5668\u8fdb\u884c\u5904\u7406\u548c\u663e\u793a\u3002<\/p>\n\n\n\n \u3000\u3000\u5382\u5546\u5728\u90e8\u7f72\u7269\u8054\u7f51\u8bbe\u5907\u65f6\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528UART\u63a5\u53e3\u8fdb\u884c\u8bbe\u5907\u7684\u8bca\u65ad\u548c\u65e5\u5fd7\u8bb0\u5f55\u3002\u901a\u8fc7\u8be5\u63a5\u53e3\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bfb\u53d6\u8bbe\u5907\u72b6\u6001\u4fe1\u606f\u3001\u9519\u8bef\u65e5\u5fd7\u7b49\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u8bbe\u5907\u7684\u76d1\u63a7\u548c\u7ef4\u62a4\u3002<\/p>\n\n\n\n \u3000\u3000UART\u63a5\u53e3\u5728\u667a\u80fd\u5bb6\u5c45\u548c\u5de5\u4e1a\u81ea\u52a8\u5316\u7cfb\u7edf\u4e2d\u4e5f\u6709\u5e7f\u6cdb\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u5728\u667a\u80fd\u5bb6\u5c45\u7cfb\u7edf\u4e2d\uff0c\u5229\u7528UART\u63a5\u53e3\u53ef\u4ee5\u5b9e\u73b0\u667a\u80fd\u5bb6\u7535\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u5982\u706f\u5149\u63a7\u5236\u3001\u7a97\u5e18\u5f00\u5173\u7b49\u3002\u5728\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\uff0c\u901a\u8fc7UART\u63a5\u53e3\u53ef\u4ee5\u5b9e\u73b0\u5404\u79cd\u673a\u68b0\u8bbe\u5907\u7684\u6570\u636e\u4ea4\u6362\u548c\u63a7\u5236\u547d\u4ee4\u7684\u53d1\u9001\u3002<\/p>\n\n\n\n \u3000\u3000UART\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5Wi-Fi\u6a21\u5757\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u901a\u4fe1\u3002\u8fd9\u79cd\u7ec4\u5408\u6280\u672f\u53ef\u4ee5\u63d0\u9ad8\u8bbe\u5907\u4e4b\u95f4\u7684\u8fde\u63a5\u6548\u7387\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u7684\u5e94\u7528\u573a\u666f\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e9b\u9700\u8981\u8fdc\u7a0b\u76d1\u63a7\u6216\u63a7\u5236\u7684\u7269\u8054\u7f51\u9879\u76ee\u4e2d\uff0c\u901a\u8fc7UART\u4e0eWi-Fi\u6a21\u5757\u7684\u7ed3\u5408\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4e00\u4e9b\u590d\u6742\u7684\u7269\u8054\u7f51\u5e73\u53f0\u4e2d\uff0c\u5982TLink\u7269\u8054\u7f51\u5e73\u53f0\uff0cmRIO\u4f5c\u4e3a\u6570\u636e\u91c7\u96c6\u7ec8\u7aef\uff0c\u901a\u8fc7UART\u63a5\u53e3\u5c06\u91c7\u96c6\u7684\u6570\u636e\u5c01\u88c5\u4e3a\u4e91\u7aefUDP\u8bbe\u5907\u53ef\u7528\u7684\u6570\u636e\u5e27\uff0c\u5e76\u901a\u8fc7UDP\u901a\u4fe1\u4e0a\u4f20\u81f3\u5e73\u53f0\uff0c\u5b9e\u73b0\u591a\u7ec8\u7aef\u7684\u6570\u636e\u5171\u4eab\u3002<\/p>\n\n\n\n \u3000\u3000\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684STM32\u5fae\u63a7\u5236\u5668\u4e5f\u96c6\u6210\u4e86UART\u786c\u4ef6\u6a21\u5757\uff0c\u901a\u8fc7\u8bbe\u8ba1\u901a\u4fe1\u534f\u8bae\u3001\u6570\u636e\u4f20\u8f93\u5904\u7406\u548c\u9519\u8bef\u5904\u7406\u65b9\u6848\uff0c\u53ef\u4ee5\u5b9e\u73b0STM32\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u9ad8\u6548\u901a\u4fe1\u3002\u8fd9\u5728\u7269\u8054\u7f51\u8bbe\u5907\u5f00\u53d1\u4e2d\u662f\u4e00\u4e2a\u5178\u578b\u7684\u96c6\u6210\u65b9\u6848\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u4f18\u5316UART\u63a5\u53e3\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u662f\u4e00\u4e2a\u590d\u6742\u4e14\u591a\u65b9\u9762\u7684\u4efb\u52a1\u3002\u6211\u4eec\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u8be6\u7ec6\u63a2\u8ba8\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f18\u5316UART\u901a\u4fe1\u534f\u8bae\u662f\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u964d\u4f4e\u529f\u8017\u7684\u5173\u952e\u4e4b\u4e00\u3002\u901a\u8fc7\u964d\u4f4eUART\u901a\u4fe1\u901f\u7387\uff0c\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u529f\u8017\uff0c\u540c\u65f6\u4fdd\u6301\u901a\u4fe1\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528\u4e2d\u65ad\u63a5\u6536\u6570\u636e\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u7cfb\u7edf\u7684\u54cd\u5e94\u901f\u5ea6\uff0c\u51cf\u5c11\u5bf9CPU\u7684\u5360\u7528\u3002\u4f8b\u5982\uff0c\u5728\u57fa\u4e8eSTM32\u7684UART\u4e32\u53e3\u901a\u4fe1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7HAL\u5e93\u63d0\u4f9b\u7684HAL_UART_Receive_IT\u51fd\u6570\u5f00\u542f\u4e2d\u65ad\u63a5\u6536\u529f\u80fd\uff0c\u4ece\u800c\u63d0\u9ad8\u6570\u636e\u5904\u7406\u6548\u7387\u3002<\/p>\n\n\n\n \u3000\u3000\u91c7\u7528\u9ad8\u6027\u80fd\u7684\u4fe1\u53f7\u8c03\u7406\u5668\u4ef6\uff0c\u5982\u9ad8\u901f\u9a71\u52a8\u5668\u548c\u63a5\u6536\u5668\uff0c\u53ef\u4ee5\u63d0\u9ad8UART\u901a\u4fe1\u63a5\u53e3\u7684\u4f20\u8f93\u901f\u7387\u3002\u8fd9\u4e9b\u5668\u4ef6\u80fd\u591f\u6709\u6548\u5730\u8c03\u7406\u4e32\u884c\u6570\u636e\u4fe1\u53f7\uff0c\u964d\u4f4e\u4f20\u8f93\u5ef6\u8fdf\uff0c\u4ece\u800c\u652f\u6301\u66f4\u9ad8\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n \u3000\u3000\u8f6f\u4ef6\u8bbe\u8ba1\u7684\u4f18\u5316\u4e5f\u662f\u63d0\u9ad8UART\u4f20\u8f93\u901f\u7387\u7684\u91cd\u8981\u624b\u6bb5\u3002\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u7f16\u7a0b\u8bed\u8a00\u3001\u66f4\u9ad8\u7ea7\u7684\u7f16\u7a0b\u6280\u5de7\u4ee5\u53ca\u66f4\u9ad8\u6548\u7684\u901a\u4fe1\u534f\u8bae\u7b49\u90fd\u53ef\u4ee5\u663e\u8457\u63d0\u5347UART\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u6784\u9020\u9ad8\u6027\u80fd\u7684UART\u65f6\uff0c\u5fc5\u987b\u8003\u8651\u4e3b\u673a\u63a5\u53e3\u7684\u6027\u80fd\u3001UART\u7684FIFO(\u5148\u8fdb\u5148\u51fa\u961f\u5217)\u7b49\u7279\u6027\u6307\u6807\u3002\u8fd9\u4e9b\u56e0\u7d20\u76f4\u63a5\u5f71\u54cd\u5230UART\u7684\u6574\u4f53\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u9009\u62e9\u5408\u9002\u7684RS232\u6216RS485\u534f\u8bae\u53ef\u4ee5\u589e\u5f3aUART\u63a5\u53e3\u7684\u6297\u5e72\u6270\u80fd\u529b\u3002RS485\u534f\u8bae\u7531\u4e8e\u5176\u5dee\u5206\u4fe1\u53f7\u4f20\u8f93\u65b9\u5f0f\uff0c\u5177\u6709\u66f4\u597d\u7684\u6297\u5e72\u6270\u80fd\u529b\u548c\u66f4\u957f\u7684\u4f20\u8f93\u8ddd\u79bb\u3002<\/p>\n\n\n\n \u3000\u3000\u5728IP\u8bbe\u8ba1\u4e2d\uff0c\u9700\u8981\u7279\u522b\u6ce8\u610f\u7535\u5e73\u8f6c\u6362\u95ee\u9898\u3002\u901a\u8fc7\u5408\u7406\u7684\u7535\u5e73\u8f6c\u6362\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u786e\u4fdd\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u80fd\u591f\u987a\u5229\u4f20\u8f93\uff0c\u907f\u514d\u56e0\u7535\u5e73\u4e0d\u5339\u914d\u5bfc\u81f4\u7684\u6570\u636e\u9519\u8bef\u3002<\/p>\n\n\n\n \u3000\u3000\u57fa\u4e8eUART\u7684\u5668\u4ef6\u4e3b\u8981\u7531\u53d1\u9001\u6a21\u5757\u3001\u63a5\u6536\u6a21\u5757\u3001\u6ce2\u7279\u7387\u4ea7\u751f\u5668\u548c\u63a7\u5236\u903b\u8f91\u7535\u8def\u7ec4\u6210\u3002\u8282\u70b9\u5185\u7684UART\u63a5\u53e3\u7535\u8def\u7684\u5206\u5e03\u53c2\u6570\u9650\u5236\u4e86\u6700\u9ad8\u901a\u4fe1\u901f\u7387\uff0c\u56e0\u6b64\u5728\u8bbe\u8ba1\u65f6\u9700\u8981\u5145\u5206\u8003\u8651\u8fd9\u4e9b\u56e0\u7d20\u4ee5\u786e\u4fdd\u901a\u4fe1\u7684\u53ef\u9760\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u9488\u5bf9\u4e0d\u540c\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9UART\u63a5\u53e3\u7684\u6807\u51c6\u4e3b\u8981\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u73af\u5883\u6761\u4ef6\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u5173\u952e\u56e0\u7d20\uff1a<\/p>\n\n\n\n \u3000\u3000\u5e94\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n UART\u63a5\u53e3\u56e0\u5176\u7b80\u5355\u53ef\u9760\u3001\u652f\u6301\u591a\u79cd\u901a\u4fe1\u534f\u8bae\u548c\u5f3a\u5927\u7684\u6570\u636e\u4f20\u8f93\u80fd\u529b\uff0c\u5728\u5404\u79cd\u7535\u5b50\u8bbe\u5907\u548c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002\u65e0\u8bba\u662f\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\u8fd8\u662f\u5b9e\u73b0\u590d\u6742\u7684\u901a\u4fe1\u534f\u8bae<\/p>\n","protected":false},"author":1,"featured_media":94194,"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":[145],"class_list":["post-96200","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/96200","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=96200"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/96200\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/94194"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=96200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=96200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=96200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e00\u3001 UART\u63a5\u53e3\u5728\u73b0\u4ee3\u901a\u4fe1\u6280\u672f\u4e2d\u7684\u66ff\u4ee3<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e8c\u3001 \u5982\u4f55\u8bbe\u8ba1\u4e00\u4e2a\u9ad8\u6548\u7684UART\u63a5\u53e3\u4ee5\u652f\u6301\u9ad8\u901f\u6570\u636e\u4f20\u8f93?<\/h2>\n\n\n\n
\u3000\u3000\u4e09\u3001 UART\u63a5\u53e3\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\u7684\u5e94\u7528<\/h2>\n\n\n\n
\u3000\u3000\u56db\u3001 \u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u4f18\u5316UART\u63a5\u53e3<\/h2>\n\n\n\n
\u3000\u3000\u4e94\u3001 \u9488\u5bf9\u4e0d\u540c\u5e94\u7528\u573a\u666f\uff0cUART\u63a5\u53e3\u7684\u9009\u62e9\u6807\u51c6<\/h2>\n\n\n\n
\n
\n