{"id":39098,"date":"2023-09-29T09:28:13","date_gmt":"2023-09-29T01:28:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39098"},"modified":"2023-09-29T09:28:13","modified_gmt":"2023-09-29T01:28:13","slug":"bjtxyujsysx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39098.html","title":{"rendered":"\u677f\u95f4\u901a\u4fe1\u7528UART\uff1a\u4ecb\u7ecd\u4e0e\u5b9e\u73b0"},"content":{"rendered":"

  \u677f\u95f4\u901a\u4fe1\uff08Board-to-Board Communication\uff09\u662f\u6307\u5728\u591a\u5757\u7535\u8def\u677f\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u662f\u7535\u5b50\u7cfb\u7edf\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u591a\u4e2a\u5904\u7406\u5668\uff0c\u4f7f\u5f97\u591a\u4e2a\u5904\u7406\u5668\u53ef\u4ee5\u5b9e\u73b0\u5171\u4eab\u4fe1\u606f\u3002\u800cUART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ee5\u5f02\u6b65\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u3002\u672c\u6587\u5c06\u4ecb\u7ecdUART\u7684\u539f\u7406\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528UART\u5b9e\u73b0\u677f\u95f4\u901a\u4fe1\u3002<\/p>\n

UART\u539f\u7406<\/h2>\n

  UART\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u7684\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u540c\u65f6\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u53ef\u4ee5\u5728\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u4e3b\u8981\u7ec4\u6210\u90e8\u5206\u662f\u4e00\u4e2a\u53d1\u9001\u5668\u548c\u4e00\u4e2a\u63a5\u6536\u5668\uff0c\u5b83\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u6ce2\u7279\u7387\uff08baud rate\uff09\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002UART\u53ef\u4ee5\u4f7f\u7528\u4e24\u79cd\u4e0d\u540c\u7684\u6a21\u5f0f\uff0c\u5373\u540c\u6b65\u6a21\u5f0f\u548c\u5f02\u6b65\u6a21\u5f0f\u3002\u5728\u540c\u6b65\u6a21\u5f0f\u4e0b\uff0c\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u662f\u7531\u4e00\u4e2a\u65f6\u949f\u4fe1\u53f7\u63a7\u5236\u7684\uff0c\u800c\u5728\u5f02\u6b65\u6a21\u5f0f\u4e0b\uff0c\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u662f\u7531\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u4e4b\u95f4\u7684\u6ce2\u7279\u7387\u63a7\u5236\u7684\u3002<\/p>\n

  UART\u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n

  UART\u7684\u5de5\u4f5c\u539f\u7406\u975e\u5e38\u7b80\u5355\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u7cfb\u7edf\u4e2d\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u53e6\u4e00\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u8bc6\u522b\u7684\u683c\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u53d1\u9001\u5668\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u8f6c\u6362\u6210\u4e00\u79cd\u53ef\u4ee5\u88ab\u63a5\u6536\u5668\u8bc6\u522b\u7684\u683c\u5f0f\uff1b\u5176\u6b21\uff0c\u53d1\u9001\u5668\u5c06\u8f6c\u6362\u540e\u7684\u6570\u636e\u53d1\u9001\u51fa\u53bb\uff1b\u6700\u540e\uff0c\u63a5\u6536\u5668\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u8f6c\u6362\u6210\u53ef\u4ee5\u88ab\u7cfb\u7edf\u8bc6\u522b\u7684\u683c\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  UART\u7684\u4f18\u70b9<\/h3>\n

  UART\u662f\u4e00\u79cd\u7b80\u5355\u9ad8\u6548\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/p>\n