i2s pdm slave mode

juancho1987
Posts: 1
Joined: Tue Jul 25, 2023 1:21 pm

i2s pdm slave mode

Postby juancho1987 » Tue Jul 25, 2023 1:38 pm

Hello Every one,
I'm trying to develop and i2s microphone mock, the idea is to simulate some sounds in one test equipment ... We want to ensure that the sound generate during the testing always is the same one . For that reason, we are trying to mock the microphone.

For this objective we are using the ESP-IDF framework, and the libraries for i2s . as starting point we take a pdm example from the framework , this example provide us an example for tx and rx (master) mode, but not for slave case . then what we did is just modify the role and test again . The result was that the device configured as slave all the time is writing values for the DOUT pin without any syncronization or without waiting for CLK signal..

What we expected is that the device only will transmit the data only when some master device generates a CLK signal .

Any idea or any example .

Thanks in advanced

Who is online

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