UART 1 on ESP32

BerndB_ESP32
Posts: 10
Joined: Tue Oct 25, 2022 6:44 am

UART 1 on ESP32

Postby BerndB_ESP32 » Mon Feb 06, 2023 9:06 am

Hi,

Is anybody here to tell me how to use the UART1 (GPIO9 & GPIO10)?
By default, only UART0 and UART2 can be used. To use UART1, we have
to redefine the pins because default pins of UART1 such as GPIO9 and GPIO10
are internally connected to the SPI flash memory.

What is the meaning of "redefine"?

Thanks,
Bernd

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

Re: UART 1 on ESP32

Postby ESP_Sprite » Tue Feb 07, 2023 12:26 am

Depending on what SDK you use, there should be a way (usually when you initialize the UART) to indicate what GPIOs you want RxD, TxD etc routed to. You can use mostly any (not otherwise occupied, and keeping in mind that some GPIOs are input-only) GPIO there.

Who is online

Users browsing this forum: No registered users and 52 guests