ESP32 PCM mode bad signal Syncro

zymoplex
Posts: 1
Joined: Fri Jun 15, 2018 11:03 am

ESP32 PCM mode bad signal Syncro

Postby zymoplex » 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

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
	};
Attachments
sync-need.jpg
sync-need.jpg (65.12 KiB) Viewed 2272 times
sync-esp32.jpg
sync-esp32.jpg (48.45 KiB) Viewed 2272 times

Who is online

Users browsing this forum: No registered users and 92 guests