I2S 8CH ADC

alongoldman
Posts: 5
Joined: Fri May 18, 2018 5:26 am

I2S 8CH ADC

Postby alongoldman » Fri May 18, 2018 5:43 am

Hi,
I'm working on a project to connect AK5538VM ADC to ESP32.
The ADC will provide the MCLK so it would be the master in this setup.

The AK5538VM is an 8CH audio ADC, it can output data in 2 ways:
1. through 4 discrete pins, each pin outputs a 2CH standard I2S audio stream
2. through 1 discrete pin outputting all the data in TDM format

What would be your recommended approach ?
How do I configure ESP32 I2S parallel input mode ?
Alternatively, can ESP32 work in AK5538VM TDM format ?

User avatar
cooperbaker
Posts: 10
Joined: Fri Jan 18, 2019 6:39 am

Re: I2S 8CH ADC

Postby cooperbaker » Fri Jan 18, 2019 6:46 am

I'm curious if you made any progress on the 1 wire TDM data approach. Were you able to move TDM data through the i2s bus?

I'm eager to get i2s tdm working for the cirrus cs42448 codec.

alongoldman
Posts: 5
Joined: Fri May 18, 2018 5:26 am

Re: I2S 8CH ADC

Postby alongoldman » Wed May 15, 2019 12:04 pm

Yes, it's fully working in TDM.
I just needed to div/4 the WS clock output of the ESP32 to fit the required WS clock input of the ADC in TDM 8ch mode.
I have an FPGA to handle that for me but you can use a simple D-FF ic to do the clock div.

User avatar
thefury
Posts: 20
Joined: Thu Sep 05, 2019 5:25 pm

Re: I2S 8CH ADC

Postby thefury » Mon Jan 24, 2022 7:58 pm

Sorry to resurrect a dead thread, but how did you get it to sync with the first channel? I've done a div/4 but the channels are swapping at various times.

Who is online

Users browsing this forum: Google [Bot] and 196 guests