@Anatolii_A and @phofman
I will only play audio with 48KHz sampling frequency.
But I want to make sure if I understud correctly one thing: the MCLK XO signal can be of ANY frequency, as long it is 192x greater than Fs ?
I will only play audio with 48KHz sampling frequency.
But I want to make sure if I understud correctly one thing: the MCLK XO signal can be of ANY frequency, as long it is 192x greater than Fs ?
ESP32's internal MCLK will be generated by PLL, more jittery than external clock. This discussion looks relevant - generating I2S with external MCLK for ESP32-S2+ https://esp32.com/viewtopic.php?t=16290
IMO the external clock and async-mode ESS is by far the easiest.
IMO the external clock and async-mode ESS is by far the easiest.
it is words from datasheet. bigger than 192x and read that link about clocksbe of ANY frequency, as long it is 192x greater than Fs ?
Ok guys, I decided to use a 27MHz XO on MCLK pin. It is not multiple of Fs and it work in asynchronous mode.
So, I will connect the XO output to the DAC MCLK pin and those three I2S signal lines to ESP32 as usual ?
The ESP32 will be WROVER-E and I plan to use the A2DP library to take the data from bluetooth and output it to DAC.
So, I will connect the XO output to the DAC MCLK pin and those three I2S signal lines to ESP32 as usual ?
The ESP32 will be WROVER-E and I plan to use the A2DP library to take the data from bluetooth and output it to DAC.
If you want to use an ESP32 and a ES9023, here's an example of what Dimdim user did :Hi !
Has anyone worked with ES9023 DAC ? I want to build one for myself and I have a few questions about it.
https://www.mouser.com/datasheet/2/1082/ES9023_Datasheet_v0_72-3074267.pdf
Can I send the audio data with an ESP32 over I2S ? The main problem is that I don't know what should I do with the MCLK pin. As far as I understand, it is said that this DAC can work in 2 modes: Asynchronous and Synchronous. But there is no information on how to implement this. I asked the AI and it says that in Synchronous mode the DAC can generate a master clock form the I2S clock signals. Is this true ? If this is possible, what should I do with the MCLK pin from the DAC ? I let it floating ?
https://www.dimdim.gr/2024/01/esp32-based-internet-radio-streamer/
I've done a similar thing with a PCM5102 which is easier to implement than a ES9023 as the high speed clock for internal usage is generated by a PLL.
Nice, thanks. 50MHz XO.If you want to use an ESP32 and a ES9023, here's an example of what Dimdim user did :
https://www.dimdim.gr/2024/01/esp32-based-internet-radio-streamer/
I've got 100k pullup resistor at GPIO0 and then it goes to MCLK (ESS9023), programmer is connected externally, so it won't introduce noise when not used.@elektryk But ESP32 GPIO0 is used for Boot button...
Ok, this popular A2DP lib gives only 44.1k https://github.com/pschatzmann/ESP32-A2DPHigher frequency - more phase noise, if it will not play 192K it is more profitable to put here lower freq oscillator.
- Home
- Source & Line
- Digital Source
- ES9023P Audio DAC