{"id":77456,"date":"2024-01-09T01:07:59","date_gmt":"2024-01-08T17:07:59","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=77456"},"modified":"2024-01-09T01:07:59","modified_gmt":"2024-01-08T17:07:59","slug":"uckjyxj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/77456.html","title":{"rendered":"UART \u4e32\u53e3\u6821\u9a8c\u8be6\u89e3"},"content":{"rendered":"
UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u4e32\u53e3\u6821\u9a8c\u662f\u4e32\u884c\u901a\u4fe1\u4e2d\u7684\u91cd\u8981\u73af\u8282\uff0c\u901a\u8fc7\u672c\u6587\u4f60\u5c06\u6df1\u5165\u4e86\u89e3UART\u4e32\u53e3\u6821\u9a8c\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u5e94\u7528\u3002<\/p>\n
UART\u4e32\u53e3\u901a\u4fe1\u662f\u4e00\u79cd\u5f02\u6b65\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u8fdb\u884c\u4fe1\u606f\u4f20\u8f93\u3002\u800c\u4e32\u53e3\u6821\u9a8c\u5219\u662f\u5728\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u5bf9\u6570\u636e\u7684\u51c6\u786e\u6027\u8fdb\u884c\u9a8c\u8bc1\u7684\u91cd\u8981\u73af\u8282\u3002<\/p>\n
\u4e32\u53e3\u6821\u9a8c\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u68c0\u6d4b\u548c\u7ea0\u6b63\u4e32\u53e3\u901a\u4fe1\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n
\u4e32\u53e3\u6821\u9a8c\u65b9\u6cd5\u4e00\u822c\u5305\u62ec\u5947\u5076\u6821\u9a8c\u3001\u6807\u5fd7\u4f4d\u6821\u9a8c\u3001\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff08CRC\uff09\u7b49\u591a\u79cd\u65b9\u5f0f\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u8ba1\u7b97\u65b9\u6cd5\u3002<\/p>\n
\u5947\u5076\u6821\u9a8c\u901a\u8fc7\u5728\u4f20\u8f93\u7684\u6570\u636e\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5947\u5076\u6027\u6807\u8bc6\u4f4d\uff0c\u4f7f\u5f97\u6570\u636e\u4e2d1\u7684\u4e2a\u6570\uff08\u6216\u80050\u7684\u4e2a\u6570\uff09\u4e3a\u5947\u6570\uff08\u6216\u8005\u5076\u6570\uff09\u3002\u63a5\u6536\u7aef\u6536\u5230\u6570\u636e\u540e\uff0c\u91cd\u65b0\u8ba1\u7b97\u5947\u5076\u6027\uff0c\u5e76\u4e0e\u63a5\u6536\u5230\u7684\u5947\u5076\u6027\u8fdb\u884c\u6bd4\u5bf9\uff0c\u4ee5\u786e\u5b9a\u6570\u636e\u662f\u5426\u6b63\u786e\u3002<\/p>\n
\u5947\u5076\u6821\u9a8c\u65b9\u6cd5\u7b80\u5355\u3001\u9002\u7528\u4e8e\u4e00\u822c\u5e94\u7528\u573a\u666f\uff0c\u4f46\u5bf9\u4e8e\u5bf9\u6570\u636e\u5b8c\u6574\u6027\u548c\u53ef\u9760\u6027\u8981\u6c42\u9ad8\u7684\u901a\u4fe1\u73af\u5883\u6765\u8bf4\uff0c\u53ef\u80fd\u5b58\u5728\u4e0d\u8db3\u3002<\/p>\n
CRC\u662f\u4e00\u79cd\u901a\u8fc7\u751f\u6210\u5faa\u73af\u5197\u4f59\u6821\u9a8c\u7801\uff0c\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u6570\u636e\u5e27\u4e2d\u6765\u9a8c\u8bc1\u4f20\u8f93\u6570\u636e\u7684\u65b9\u6cd5\u3002CRC\u6821\u9a8c\u53ef\u4ee5\u6709\u6548\u68c0\u6d4b\u7b26\u53f7\u9519\u8bef\u3001\u4f4d\u79fb\u9519\u8bef\u548c\u4e00\u90e8\u5206\u7684\u7a81\u53d1\u9519\u8bef\u3002<\/p>\n
CRC\u6821\u9a8c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7f51\u7edc\u901a\u4fe1\u4e2d\uff0c\u5982\u4ee5\u592a\u7f51\u901a\u4fe1\u3001\u65e0\u7ebf\u901a\u4fe1\u548c\u5b58\u50a8\u7cfb\u7edf\u7b49\u9886\u57df\u3002\u5176\u591a\u9879\u5f0f\u751f\u6210\u548c\u68c0\u9a8c\u7684\u8ba1\u7b97\u590d\u6742\u5ea6\u8f83\u9ad8\uff0c\u4f46\u5bf9\u4e8e\u6570\u636e\u5b8c\u6574\u6027\u7684\u9a8c\u8bc1\u6548\u679c\u663e\u8457\u3002<\/p>\n