USING GPIO pins of ESP-WROOM-32D as UART RTS/ UART CTS

FCT_IOT
Posts: 37
Joined: Fri Jan 26, 2018 11:15 am

USING GPIO pins of ESP-WROOM-32D as UART RTS/ UART CTS

Postby FCT_IOT » Thu Feb 01, 2018 12:56 pm

Dear all,

I am interested in using ESP-WROOM-32D in one of my project where it will be operated as a slave interfaced to an MCU. I was reading through the ESP32 AT Instruction set pdf file provide by espressif. It mentions Default configuration for sending AT Commands is through UART1 which uses GPIO16 - RXD, GPIO17 - TXD, GPIO14 - RTS, GPIO15 - CTS. When i checked the ESP-32 datasheet, the GPIO14, GPIO15 are used as GPIOs and are not specifically RTS/ CTS Pins.

I would like to know if we can use any free gpios on ESP-WROOM-32D Pinout list as UART Pins.

In ESP-WROOM-32D GPIO16- U2RXD, GPIO17 - U2TXD are available for connection and have the same GPIO numbers but U2RTS and U2 CTS are connected to GPIO7 , GPIO 8 respectively. GPIO7, GPIO8 are used to connect to internal flash in ESP-WROOM-32D Module. I am interfacing an external flash with WIFI Module using HSPI Interface. Hence i will not be able to use GPIO14, GPIO15 as RTS/CTS. Can i configure other GPIOs as CTS/RTS.

Thanks in advance

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: USING GPIO pins of ESP-WROOM-32D as UART RTS/ UART CTS

Postby WiFive » Thu Feb 01, 2018 2:01 pm

Yes, just beware of input only pins, strapping pins, and internal flash pins.

FCT_IOT
Posts: 37
Joined: Fri Jan 26, 2018 11:15 am

Re: USING GPIO pins of ESP-WROOM-32D as UART RTS/ UART CTS

Postby FCT_IOT » Thu Feb 01, 2018 2:10 pm

WiFive wrote:Yes, just beware of input only pins, strapping pins, and internal flash pins.
Thank you for the reply. How can we configure the GPIOs into specific UART Functions. Any link to reference files will be helpful to understand.

Thanks in advance.


FCT_IOT
Posts: 37
Joined: Fri Jan 26, 2018 11:15 am

Re: USING GPIO pins of ESP-WROOM-32D as UART RTS/ UART CTS

Postby FCT_IOT » Fri Feb 02, 2018 2:24 am

Thank you @WiFive. I will go through the links.

Who is online

Users browsing this forum: No registered users and 92 guests