Using third UART port

guilleATV
Posts: 2
Joined: Mon Nov 14, 2022 7:24 am

Using third UART port

Postby guilleATV » Mon Nov 14, 2022 12:51 pm

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 7448 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.

ESP_Sprite
Posts: 9589
Joined: Thu Nov 26, 2015 4:08 am

Re: Using third UART port

Postby ESP_Sprite » Tue Nov 15, 2022 1:39 am

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.

guilleATV
Posts: 2
Joined: Mon Nov 14, 2022 7:24 am

Re: Using third UART port

Postby guilleATV » Tue Nov 15, 2022 7:42 am

Thank you very much, really helpfully your answer. :)
Good to know that I can use any GPIO as third UART.

Who is online

Users browsing this forum: No registered users and 120 guests