{"id":40072,"date":"2023-09-30T04:40:37","date_gmt":"2023-09-29T20:40:37","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40072"},"modified":"2023-10-14T16:27:59","modified_gmt":"2023-10-14T08:27:59","slug":"eduyj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40072.html","title":{"rendered":"ESP32C3 Mini\u7684UART\u5f15\u811a"},"content":{"rendered":"

  ESP32C3 Mini\u7684UART\u5f15\u811a\u662f\u4e00\u79cd\u901a\u7528\u4e32\u884c\u603b\u7ebf\u63a5\u53e3\uff0c\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u4f8b\u5982\u6253\u5370\u673a\u3001GPS\u6a21\u5757\u3001\u6e29\u5ea6\u4f20\u611f\u5668\u7b49\u3002\u5b83\u5177\u6709\u826f\u597d\u7684\u517c\u5bb9\u6027\u548c\u4f4e\u529f\u8017\u7279\u6027\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002\u672c\u6587\u5c06\u4ecb\u7ecdESP32C3 Mini\u7684UART\u5f15\u811a\u7684\u7279\u6027\u3001\u8fde\u63a5\u65b9\u5f0f\u4ee5\u53ca\u5b83\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n

ESP32C3 Mini\u7684UART\u5f15\u811a\u7279\u6027<\/h2>\n

  UART\u7684\u901a\u7528\u7279\u6027<\/h3>\n

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u901a\u5e38\u7531\u4e24\u4e2a\u5f15\u811a\u7ec4\u6210\uff1aTX\uff08\u53d1\u9001\uff09\u548cRX\uff08\u63a5\u6536\uff09\u3002UART\u53ef\u4ee5\u7528\u6765\u4f20\u8f93\u63a7\u5236\u4fe1\u53f7\u3001\u6587\u672c\u548c\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u8bbe\u5907\u4e4b\u95f4\u5b9e\u73b0\u7b80\u5355\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  ESP32C3 Mini\u7684UART\u7279\u6027<\/h3>\n

  ESP32C3 Mini\u7684UART\u5f15\u811a\u5177\u6709\u826f\u597d\u7684\u517c\u5bb9\u6027\uff0c\u53ef\u4ee5\u4e0e\u4e0d\u540c\u7684\u8bbe\u5907\u8fdb\u884c\u8fde\u63a5\uff0c\u4f8b\u5982\u6253\u5370\u673a\u3001GPS\u6a21\u5757\u3001\u6e29\u5ea6\u4f20\u611f\u5668\u7b49\u3002\u5b83\u5177\u6709\u4f4e\u529f\u8017\u7279\u6027\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002\u5b83\u7684\u6700\u9ad8\u4f20\u8f93\u901f\u7387\u53ef\u8fbe\u5230115200 bps\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n

ESP32C3 Mini\u7684UART\u5f15\u811a\u8fde\u63a5<\/h2>\n

  \u8fde\u63a5\u65b9\u5f0f<\/h3>\n

  ESP32C3 Mini\u7684UART\u5f15\u811a\u53ef\u4ee5\u901a\u8fc7\u4e00\u6839\u6807\u51c6\u7684UART\u8fde\u63a5\u7ebf\u8fdb\u884c\u8fde\u63a5\uff0cUART\u8fde\u63a5\u7ebf\u53ef\u4ee5\u5728\u7535\u5b50\u5546\u5e97\u8d2d\u4e70\u3002UART\u8fde\u63a5\u7ebf\u4e00\u822c\u7531\u4e24\u4e2a\u5f15\u811a\u7ec4\u6210\uff1aTX\uff08\u53d1\u9001\uff09\u548cRX\uff08\u63a5\u6536\uff09\u3002\u5c06UART\u8fde\u63a5\u7ebf\u7684TX\u5f15\u811a\u63a5\u5728ESP32C3 Mini\u7684UART\u5f15\u811a\u7684RX\u5f15\u811a\u4e0a\uff0c\u5c06UART\u8fde\u63a5\u7ebf\u7684RX\u5f15\u811a\u63a5\u5728ESP32C3 Mini\u7684UART\u5f15\u811a\u7684TX\u5f15\u811a\u4e0a\uff0c\u5373\u53ef\u5b8c\u6210\u8fde\u63a5\u3002<\/p>\n

  \u8fde\u63a5\u6ce8\u610f\u4e8b\u9879<\/h3>\n

  \u5728\u8fde\u63a5ESP32C3 Mini\u7684UART\u5f15\u811a\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n