Hi
I wrongly posted on "Project Guidance" and I didn't find a way to delete the post there... So I opened a new one here.
I'm working on the microphone INMP441 on mono-output mode. I see in the datasheet that if the L/R PIN (4) is on low then the left channel is activated, and otherwise the right channel. In my case it's on low so I expect to have values only in the left channel, which according to the datasheet is in the first 2 bytes of every 4-byte sample. Problem is looks like this is not consistent. For example here's a snapshot from a buffer I get after DMA sampling:
data[0]: 23296
data[1]: 0
data[2]: 0
data[3]: 13
data[4]: 13824
data[5]: 0
data[6]: 0
data[7]: 12
data[8]: 62208
data[9]: 0
data[10]: 0
data[11]: 11
data[12]: 53504
data[13]: 0
data[14]: 0
data[15]: 11
data[16]: 27904
data[17]: 0
I would expect to have relevant data in the entries (0,1), (4,5), (8,9), (12,13), (16,17) . But looks like there's a shift or something in the data (for example I see non-zero values in data[3], which shouldn't be the case.
Any help is appreciated.
Thanks
I wrongly posted on "Project Guidance" and I didn't find a way to delete the post there... So I opened a new one here.
I'm working on the microphone INMP441 on mono-output mode. I see in the datasheet that if the L/R PIN (4) is on low then the left channel is activated, and otherwise the right channel. In my case it's on low so I expect to have values only in the left channel, which according to the datasheet is in the first 2 bytes of every 4-byte sample. Problem is looks like this is not consistent. For example here's a snapshot from a buffer I get after DMA sampling:
data[0]: 23296
data[1]: 0
data[2]: 0
data[3]: 13
data[4]: 13824
data[5]: 0
data[6]: 0
data[7]: 12
data[8]: 62208
data[9]: 0
data[10]: 0
data[11]: 11
data[12]: 53504
data[13]: 0
data[14]: 0
data[15]: 11
data[16]: 27904
data[17]: 0
I would expect to have relevant data in the entries (0,1), (4,5), (8,9), (12,13), (16,17) . But looks like there's a shift or something in the data (for example I see non-zero values in data[3], which shouldn't be the case.
Any help is appreciated.
Thanks