ESP32 PCM mode bad signal Syncro
Posted: Fri Jun 15, 2018 11:36 am
Hello,
I have a problem with the signals BCLK and FSYNC, attached two JPEG file, the first is the signal of the ESP32 (sync-esp32.jpg) and the second (sync-need.jpg) the signal I want.
I don't know how to do that.
Here is the code
Thank you
I have a problem with the signals BCLK and FSYNC, attached two JPEG file, the first is the signal of the ESP32 (sync-esp32.jpg) and the second (sync-need.jpg) the signal I want.
I don't know how to do that.
Here is the code
Thank you
Code: Select all
static const i2s_config_t i2s_config = {
.mode = I2S_MODE_MASTER | I2S_MODE_TX,
.sample_rate = 8000,
.bits_per_sample = 16,
.channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT,
.communication_format = I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT,
.intr_alloc_flags = 0,
// default interrupt priority
.dma_buf_count = 8,
.dma_buf_len = 64,
.use_apll = false
};
static const i2s_pin_config_t pin_config = {
.bck_io_num = 26,
.ws_io_num = 25,
.data_out_num = 22,
.data_in_num = 23
};