Page 1 of 1

Using third UART port

Posted: Mon Nov 14, 2022 12:51 pm
by guilleATV
I'm designing my own board with some devices connected by UART to ESP32-S3-WROOM-1-N4
I'm basing my board design on ESP32-S3-DevKitC-1 v1.1.
As I read on documentation, there's 3 UART ports, but I just can identify 2 of them.
ESP32_S3.png
ESP32_S3.png (1.22 MiB) Viewed 7452 times
On GPIOs 43 and 44 there's UART0 (U0TXD and U0RXD)

On GPIOs 17 and 18 there's UART1 (U1TXD and U1RXD)

Where's UART2? I supposed is on GPIOs 15 and 16, but I'm not sure.

If I go to HardwareSerial.cpp file, the defined pins for UART1 are not 17 and 18, instead I can see 15 and 16, and UART2 is defined on 19 and 20, where is the USB D- and D+ pins.

Can someone help me?

Thank you very much.

Re: Using third UART port

Posted: Tue Nov 15, 2022 1:39 am
by ESP_Sprite
The pins indicated are the default pins for the UART, but you don't have to use them; you can route the UART signals to any available GPIO. The 3rd UART simply does not have a default set of pins.

Re: Using third UART port

Posted: Tue Nov 15, 2022 7:42 am
by guilleATV
Thank you very much, really helpfully your answer. :)
Good to know that I can use any GPIO as third UART.