Hello.
I am (un)happy owner of I2S amplifier board from aliexpress:
https://aliexpress.ru/item/1005001623757092.html?sku_id=12000016865437219
When I communicate over i2c protocol, I faced with issue that if i2s is enabled (BCLK and MCLK are enabled) i2c does not work.
esp32 returns error timeout.
I checked with logic analyzer - really, no any reply from MA board.
If I disable BCLK - I2C work successfully.
Is it bug, or feature of MA ?
I am (un)happy owner of I2S amplifier board from aliexpress:
https://aliexpress.ru/item/1005001623757092.html?sku_id=12000016865437219
When I communicate over i2c protocol, I faced with issue that if i2s is enabled (BCLK and MCLK are enabled) i2c does not work.
esp32 returns error timeout.
I checked with logic analyzer - really, no any reply from MA board.
If I disable BCLK - I2C work successfully.
Is it bug, or feature of MA ?
I2S protocol parameters, monitoring errors, volume, limiterWhat do you want to change by I2C?
I2C allow to change many things.
Can you please explain what you mean by "BCLK and MCLK are enabled"? I only see SCK on the board.
The latest datasheet (V1.1) states...
Running the DAC directly from the MCLK is not supported, delete functionality.
What happens if you connect BCLK from your ESP32 to SCK on the board? I assume SCK and CLK are tied together on the board?
The latest datasheet (V1.1) states...
Running the DAC directly from the MCLK is not supported, delete functionality.
What happens if you connect BCLK from your ESP32 to SCK on the board? I assume SCK and CLK are tied together on the board?
I realize that. I have successfully connected an ESP32 to a MA12070P with and without MCLK, but the newest datasheet says do not connect MCLK from the source to CLK on the MA12070P chip. That's why I suggested connecting BCLK from the ESP32 to both SCK and CLK on the MA12070P. Am I missing something else?
I'm running Squeezelite-ESP32, and it took me a while to figure out the he right combination of Squeezelite settings and MA12070P register changes to get them to play well together. Are you able to access the chip using I2C and make register changes?
I never learned I2C. Thought I could use the board out of the box with I2S without programming. Bummer.
What are you using as a source? It is a pain. For example, the default PCM word format is left justified so I had to change bits 0-2 of register 0x35 to 000 to accept i2s format from my ESP32.
If I knew that the internal da conversion of this chip faires well against my dedicated AK 4493 Dacs I would get my feet wet with programming.
Do your AK4493 DACs have i2s inputs? Again, curious, what are you trying to use as your source for the MA12070P?
To get arround having to learn I2C programming I might use the AD1896 ASRC. It's output is pin programmable. I will set it to fixed 192hkz left justified. That way I will also spare one master clock band.
Other defaults include 32bit data (64 bit word) and CLK frequency of 3072khz, 6144khz, 12288khz, or 24576khz. Does the AD1896 ASRC handle that as well?
- Home
- Amplifiers
- Class D
- MA1070P does not work with I2C when BCLK is enabled