Electronics > Projects, Designs, and Technical Stuff

PCM to I2S audio and vice versa

(1/1)

Dajgoro:
Hi

I have some SIM (Simcom) modules(various models) with PCM audio input and output (short sync pulse mode), and on the other side I have a ESP32 module with I2S ports.
I'm trying to connect the two without making it too complicated. I though about using the SPI in slave mode, but the short sync pulse can't be used as the CS signal, so that wont work.
Also I don't think the transmit side clock/data polarity would be correct.
All I can think about is putting in a little CPLD/FPGA to reformat the data, but that sounds as a bit of an overkill, and a MCU won't cut it since the data is too fast to bitbang.
I could do it in TTL, but at that point the logic would be so complex I might as well do it with a FPGA...
I found that there is a TI audio system IC in BGA, but that's too big and too complex for what I need here.

Does anyone have an idea for a simpler workaround?

OwO:
Post a timing diagram of said "PCM audio interface"? As long as it has a clock signal at the same rate as the data then the I2S peripheral can be used.

Dajgoro:
PCM:


I2S:


As you can see the PCM format has a frame sync pulse, then goes the data. In the case of the SIM module, it sends only one word of audio, with the rest being a long sequence of zeroes, while in I2S there is the WSL/LCK line going high and low depending on the channel selected.

Dajgoro:

--- Quote from: blueskull on May 07, 2019, 08:49:41 am ---Run i2s in 32 bit mode, discard "right" channel, then split true left and right channels from upper word and lower word from "left" channel.

--- End quote ---
How?
I don't have the WSL signal do frame the words/channels, besides there are 128 bits in each frame as it is now.

ogden:

--- Quote from: Dajgoro on May 06, 2019, 03:29:56 pm ---Does anyone have an idea for a simpler workaround?

--- End quote ---

One of possible workarounds: use LM49370 as PCM-I2S bridge. Appnote: http://www.ti.com/lit/an/snaa039a/snaa039a.pdf

That's *after* manufacturer confirmation that they do not offer solution for I2S audio.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod