How to output I2Sn_CLK for external codec/DAC use(master clock,Not BCLK)

sdmovie
Posts: 1
Joined: Fri Mar 10, 2017 2:37 pm

How to output I2Sn_CLK for external codec/DAC use(master clock,Not BCLK)

Postby sdmovie » Fri Mar 24, 2017 2:40 pm

As title, although in datasheets there are clock_outx pins and it was stated(esp32_technical_reference_manual_en.pdf,section 7.1) that I2S_CLK can out for external DAC/Codec use, but I could not find descriptions on mapping I2Sn_CLK to external pins.

Original statements:
"Except for the I2Sn_CLK signal, all other signals are
mapped to the chip pin via the GPIO matrix and IO MUX. The I2Sn_CLK signal is mapped to the chip pin via the
IO_MUX. For details, please refer to the chapter about IO_MUX and the GPIO Matrix."

Thanks,

johboh
Posts: 8
Joined: Sat Apr 29, 2017 5:58 pm

Re: How to output I2Sn_CLK for external codec/DAC use(master clock,Not BCLK)

Postby johboh » Sat Apr 29, 2017 6:00 pm

Hi,
Did you find an answer to your question? I'm also interested in how to output the master clock.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: How to output I2Sn_CLK for external codec/DAC use(master clock,Not BCLK)

Postby ESP_igrr » Mon May 01, 2017 2:19 pm

You can output the I2S0 clock using CLK_OUT0 like this:

Code: Select all

    PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_CLK_OUT1);
    REG_SET_FIELD(PIN_CTRL, CLK_OUT1, 0);

Who is online

Users browsing this forum: Bryght-Richard and 99 guests