ESP8266 Developer Zone The Official ESP8266 Forum 2015-01-04T13:31:11+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=122 2015-01-04T13:31:11+08:00 2015-01-04T13:31:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=122&p=428#p428 <![CDATA[How to arrange UART0/UART1 pins and functions]]>
The original pin function related to the UART0 port shows below:
001.jpg

FUNC : PIN NAME
U0TXD --> U0TXD
U0RXD --> U0RXD
U0CTS --> MTCK
U0RTS --> MTDO
These pins can operate in a full duplex way with hardware handshake(flwo control).
config details --> viewtopic.php?f=7&t=48

On esp demo board, this picture shows a basic debug environment:
002.png





2. uart debug info. output:
Usually,for iot project , UART0 can output the debug information. But in AT mode , UART0 communicates with the PC or MCU, so the debug info. should be output via UART1.
(1).SET UART1 PIN FUNC:
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_U1TXD_BK);
(2).change output port for os_printf:
os_install_putc1((void *)uart1_write_char);

3. how to prevent uart0 output when the chip is booting up.
see --> viewtopic.php?f=7&t=22

Statistics: Posted by costaud — Sun Jan 04, 2015 1:31 pm


]]>