ESP8266 UART

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(以“== 概述 == UART0: U0TXD, U0RXD, MTDO(U0RTS), MTCK(U0CTS) UART1: GPIO2(U1TXD) Downloading: U0TXD+U0RXD or GPIO2+U0RXD Communicating: UART0: U0TXD, U0RXD, MT...”为内容创建页面)
 
(概述)
第1行: 第1行:
 
== 概述 ==
 
== 概述 ==
  
UART0: U0TXD, U0RXD, MTDO(U0RTS), MTCK(U0CTS)
+
;;UART0:
  
UART1: GPIO2(U1TXD)  
+
<pre>
 +
U0TXD --- PIN26
 +
U0RXD --- PIN25
 +
U0CTS --- PIN12 (MTCK)
 +
U0RTS --- PIN13 (MTDO)
 +
</pre>
 +
 
 +
After calling void system_uart_swap():
 +
 
 +
<pre>
 +
U0TXD --- PIN13 (MTDO)  ---> Output pin, NOT be pulled up externally in the initiallization stage
 +
U0RXD --- PIN12 (MTCK)
 +
U0CTS --- PIN25
 +
U0RTS --- PIN26
 +
</pre>
 +
 
 +
 
 +
;;UART1:  -- Only ouput pin, used for printing of debug information
 +
 
 +
  U1TXD --- PIN14 (GPIO2)
  
  

2015年10月15日 (四) 12:54的版本

概述

UART0
U0TXD --- PIN26 
U0RXD --- PIN25
U0CTS --- PIN12 (MTCK)
U0RTS --- PIN13 (MTDO)

After calling void system_uart_swap():

U0TXD --- PIN13 (MTDO)   ---> Output pin, NOT be pulled up externally in the initiallization stage
U0RXD --- PIN12 (MTCK)
U0CTS --- PIN25
U0RTS --- PIN26 


UART1
-- Only ouput pin, used for printing of debug information
 U1TXD --- PIN14 (GPIO2)


Downloading: U0TXD+U0RXD or GPIO2+U0RXD

Communicating: UART0: U0TXD, U0RXD, MTDO(U0RTS), MTCK(U0CTS)

Debugging: UART1_TXD (GPIO2) can be used to print debugging information.


By default, UART0 will output some printed information when the device is powered on and is booting up. If this issue exerts influence on some specific applications, users can exchange the inner pins of UART when initializing, that is to say, exchange U0TXD, U0RXD with U0RTS, U0CTS



个人工具
名字空间

变换
操作
导航
工具箱