2020-05-28 10:36 PM
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
2020-05-29 03:57 AM
> 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
2020-05-31 06:02 PM
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.
2020-05-31 06:03 PM
2020-05-31 06:03 PM
2020-05-31 06:18 PM
I don't understand, what is this?
JW
2020-05-31 06:39 PM
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.
2020-05-31 11:49 PM
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