Apparently, although I2S is big endian and the ESP32 little endian, no conversion is needed.
I guess i2s_channel_write() assumes that a conversion is needed.
Michael
/*
* Output a 1 KHz sinewave on a PCM5102A I2S audio board
*
* BCK - IO 22
* WR (LRCK) - IO 5
* DOUT - IO 21
* SPDX ...
Search found 2 matches
- Wed Jun 11, 2025 2:11 pm
- Forum: ESP-IDF
- Topic: Problem getting I2S to work
- Replies: 4
- Views: 561
- Tue Jun 10, 2025 9:45 pm
- Forum: ESP-IDF
- Topic: Problem getting I2S to work
- Replies: 4
- Views: 561
Problem getting I2S to work
I am trying to output a 1kHz sine wave to an attached I2S DAC (PCM5102A).
I generate one cycle in memory (sampled at 32 points) and output the buffer continually. The sample rate is set to 32 KHz / 32 bit per channel. I have presumed that I had to convert from little endian (as calculated by the ...
I generate one cycle in memory (sampled at 32 points) and output the buffer continually. The sample rate is set to 32 KHz / 32 bit per channel. I have presumed that I had to convert from little endian (as calculated by the ...