Mimimum sample rate for I2S.
Posted: Mon Apr 11, 2022 7:01 pm
I am trying to debug some I2S code I have, and thought I would turn down the sample rate really low.
But the ESP32 does not seem to support low bit-rates?
Because if I set it to 2400Hz, the samples are clocked much faster, then when I set it to 2434 Hz?
What is the lowest sample rate that the ESP32 allows for I2S?
But the ESP32 does not seem to support low bit-rates?
Because if I set it to 2400Hz, the samples are clocked much faster, then when I set it to 2434 Hz?
What is the lowest sample rate that the ESP32 allows for I2S?
Code: Select all
#define SAMPLERATE 2400
const i2s_config_t sendcfg =
{
.mode = mastersend,
.sample_rate = SAMPLERATE,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL2,
.dma_buf_count = 2,
.dma_buf_len = 8,
.use_apll = false,
.tx_desc_auto_clear = false,
.fixed_mclk = 0,
};