{"id":77459,"date":"2024-01-12T11:06:07","date_gmt":"2024-01-12T03:06:07","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=77459"},"modified":"2024-01-12T11:06:07","modified_gmt":"2024-01-12T03:06:07","slug":"syuqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/77459.html","title":{"rendered":"STM32 UART\u4e0eUSART\u533a\u522b"},"content":{"rendered":"
STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u662f\u5e7f\u53d7\u6b22\u8fce\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u800cUART\u548cUSART\u4f5c\u4e3a\u4e32\u884c\u901a\u4fe1\u6a21\u5757<\/a>\uff0c\u5728STM32\u5f00\u53d1\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63a2\u8ba8STM32\u4e2dUART\u4e0eUSART\u7684\u5dee\u5f02\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e24\u79cd\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\u3002<\/p>\n UART\uff08\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5e38\u89c1\u4e8e\u5fae\u63a7\u5236\u5668\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002USART\uff08\u901a\u7528\u540c\u6b65\u5f02\u6b65\u6536\u53d1\u5668\uff09\u5219\u662f\u4e00\u79cd\u53ef\u4ee5\u652f\u6301\u540c\u6b65\u548c\u5f02\u6b65\u4e32\u884c\u901a\u4fe1\u7684\u901a\u7528\u63a5\u53e3\uff0c\u5177\u6709\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002<\/p>\n UART\u4e3b\u8981\u901a\u8fc7\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u4f4d\u6765\u8fdb\u884c\u901a\u8baf\uff0c\u901a\u5e38\u91c7\u7528\u4e00\u6839\u4f20\u8f93\u7ebf\uff0c\u4e0d\u9700\u8981\u65f6\u949f\u4fe1\u53f7\u3002\u5b83\u9002\u7528\u4e8e\u7b80\u5355\u7684\u4e32\u884c\u901a\u4fe1\u9700\u6c42\uff0c\u6bd4\u5982\u4e0e\u4f20\u611f\u5668\u3001GPS\u6a21\u5757\u7b49\u5916\u8bbe\u901a\u8baf\u3002<\/p>\n USART\u5219\u652f\u6301\u5168\u53cc\u5de5\u901a\u8baf\uff0c\u80fd\u591f\u540c\u65f6\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u540c\u6b65\u6a21\u5f0f\u6216\u8005\u5f02\u6b65\u6a21\u5f0f\u8fdb\u884c\u901a\u8baf\u3002\u56e0\u6b64\uff0c\u5b83\u66f4\u9002\u7528\u4e8e\u590d\u6742\u7684\u901a\u8baf\u9700\u6c42\uff0c\u6bd4\u5982\u4e0e\u8ba1\u7b97\u673a\u3001LCD\u663e\u793a\u5c4f\u7b49\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002<\/p>\n \u5728STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u4e2d\uff0cUART\u548cUSART\u90fd\u6709\u81ea\u5df1\u7684\u786c\u4ef6\u5b9e\u73b0\uff0c\u5206\u522b\u5728\u4e0d\u540c\u7684\u901a\u7528\u4e32\u884c\u63a5\u53e3\uff08USART1\u3001USART2\u7b49\uff09\u4e2d\u4f7f\u7528\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u4f7f\u7528\u54ea\u79cd\u901a\u4fe1\u65b9\u5f0f\u65f6\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u901a\u8baf\u9700\u6c42\u548c\u5916\u8bbe\u7684\u7279\u6027\u6765\u51b3\u5b9a\u3002<\/p>\n \u5728STM32\u4e2d\uff0cUART\u548cUSART\u7684\u533a\u522b\u4e3b\u8981\u4f53\u73b0\u5728\u5b83\u4eec\u7684\u529f\u80fd\u548c\u901a\u8baf\u65b9\u5f0f\u4e0a\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u4e32\u884c\u901a\u8baf\uff0c\u6bd4\u5982\u548c\u4f20\u611f\u5668\u7b49\u8bbe\u5907\u7684\u901a\u8baf\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528UART\uff1b\u800c\u5bf9\u4e8e\u9700\u8981\u66f4\u591a\u529f\u80fd\u548c\u7075\u6d3b\u6027\u7684\u901a\u8baf\uff0c\u6bd4\u5982\u4e0e\u8ba1\u7b97\u673a\u6216\u663e\u793a\u5c4f\u7684\u901a\u8baf\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528USART\u3002<\/p>\nUART\u4e0eUSART\u6982\u8ff0<\/h2>\n
UART\u5de5\u4f5c\u539f\u7406<\/h3>\n
USART\u5de5\u4f5c\u539f\u7406<\/h3>\n
STM32\u4e2d\u7684UART\u4e0eUSART<\/h2>\n
UART<\/a>\u4e0eUSART\u5728STM32\u4e2d\u7684\u533a\u522b<\/h3>\n
\u4f7f\u7528\u5efa\u8bae<\/h3>\n