I2S Pins
Posted: Sun Sep 29, 2019 7:53 am
Hi!
Naively put together a board using examples on the internet and looking at a few reference designs.
I'm still struggling to understand the required pins to get this working.
GPIO25/26 are listed as DAC1/2 ... There are two I2S channels.
My thinking was that GPIO25/26 was required for the actual ADC but alot of examples use them for the clk.
This is from working examples where DOUT is GPIO32... And no pin is connected to GPIO25/26..
I understand some pins can be internally muxed from the I2S blocks to different GPIO pins.
So my hope was that I could get the following config working. But I cant..
Any pointers, hints ... links to ref.
Naively put together a board using examples on the internet and looking at a few reference designs.
I'm still struggling to understand the required pins to get this working.
GPIO25/26 are listed as DAC1/2 ... There are two I2S channels.
My thinking was that GPIO25/26 was required for the actual ADC but alot of examples use them for the clk.
This is from working examples where DOUT is GPIO32... And no pin is connected to GPIO25/26..
Code: Select all
// The pin config as per the setup
const i2s_pin_config_t pin_config = {
.bck_io_num = 14, // BCKL
.ws_io_num = 15, // LRCL
.data_out_num = -1, // not used (only for speakers)
.data_in_num = 32 // DOUT
};
So my hope was that I could get the following config working. But I cant..
Code: Select all
static const i2s_pin_config_t pin_config = {
.bck_io_num = 15, // BCKL
.ws_io_num = 25, // LRCL (WordSelect)
.data_out_num = I2S_PIN_NO_CHANGE,
.data_in_num = GPIO26 // DOUT
};