cancel
Showing results for 
Search instead for 
Did you mean: 

stereo I2S communication

JAn.1610
Associate II

I am using STM32F103C for mcu and SPH0645 model for microphone.

When I connect only one microphone and communicate with I2S it works!

then I wanted to do make stereo

So I connected two microphones one with SEL=0 and the other with SEL=1

However, WS gives only 1 when it should give 0 and 1 alternately.

Can anyone tell me what should I do to connect stereo microphones!

Thanks

7 REPLIES 7

> However, WS gives only 1 when it should give 0 and 1 alternately.

Read out and check/post the relevant GPIO/AFIO and SPI registers content.

JW

I set up like this

when I debug and run the program I2S3_WS and I2S3_CLK always remained 0 and I2S2_WS and I2S2_CLK always remained 1. It never changes.

JAn.1610
Associate II

0693W000001plfMQAQ.png

JAn.1610
Associate II

0693W000001plfWQAQ.png

I don't understand, what is this?

JW

JAn.1610
Associate II

I want to know how to read CLK values.

CLK should repeat 0 and 1 but when I use HAL_GPIO_ReadPin I don't get the value changing.

If those signals change as they should, by repeatedly reading out you should see them changing. Or, better, use oscilloscope or logic analyser to observe the pins.

Read it and check/compare to the working case content of SPI/I2S and the relevant GPIO/AFIO registers.

JW