Page 1 of 1

Changing the I2S MCLK GPIO from default in an ESP32C3

Posted: Thu Jul 21, 2022 5:27 pm
by felipedeoliveira
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 2149 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 2149 times

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

Posted: Fri Jul 22, 2022 1:47 am
by ESP_Sprite
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.)