Changing the I2S MCLK GPIO from default in an ESP32C3

felipedeoliveira
Posts: 2
Joined: Mon Jun 20, 2022 4:38 pm

Changing the I2S MCLK GPIO from default in an ESP32C3

Postby felipedeoliveira » Thu Jul 21, 2022 5:27 pm

I'm using my own esp32c3 designed board to work in a audio project with the ES8311 CODEC. My board is based on Lyrat_mini_v1.2 but it uses ESP32C instead.

I've used GPIO 7 conected to the I2S MCLK pin, but in the code there's the folowing message in the i2s.h folder:
i2s_pin_defines.PNG
i2s_pin_defines.PNG (13.14 KiB) Viewed 2123 times
It says that ESP32 supports setting MCK on GPIO0/GPIO1/GPIO3 only. Is this valid for ESP32C too? Am I gonna have to change the pin on my board?

Schematics of this part on my board:
es8311_to_esp32c3.PNG
es8311_to_esp32c3.PNG (100.44 KiB) Viewed 2123 times

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

Re: Changing the I2S MCLK GPIO from default in an ESP32C3

Postby ESP_Sprite » Fri Jul 22, 2022 1:47 am

According to the TRM, ESP32C3 routes the MCLK signal via the GPIO matrix; that means you can select any GPIO for it. (Also, I cleaned up your topic title; seems you accidentally had caps lock on while writing it.)

Who is online

Users browsing this forum: No registered users and 117 guests