2020-09-03 07:19 AM
The IT asserting rate seems to be totally de-correlated with the rate of reception of a sample from the microphone.
Has somebody already used a microphone MEMS I2S ICS-43434 by InvenSense-TDK ?
I don't succeed to connect a stereo pair of this microphone on a STM32F407 using STM32cubeMX to generate the HAL.
I2S2 is parameterized by STM32cubeMX as:
hi2s2.Instance = SPI2;
hi2s2.Init.Mode = I2S_MODE_MASTER_RX;
hi2s2.Init.Standard = I2S_STANDARD_PHILIPS;
hi2s2.Init.DataFormat = I2S_DATAFORMAT_24B;
hi2s2.Init.MCLKOutput = I2S_MCLKOUTPUT_DISABLE;
hi2s2.Init.AudioFreq = I2S_AUDIOFREQ_16K;
hi2s2.Init.CPOL = I2S_CPOL_LOW;
hi2s2.Init.ClockSource = I2S_CLOCK_PLL;
hi2s2.Init.FullDuplexMode = I2S_FULLDUPLEXMODE_DISABLE;
if (HAL_I2S_Init(&hi2s2) != HAL_OK)
{
Error_Handler();
}
Well, with oscilloscope we can see :
But :
Many thanks for your help.
2020-09-03 04:11 PM
What is "IT rising rate"?
JW
2020-09-04 01:12 AM
2020-09-04 04:35 AM
Ah, by IT you mean interrupts... "raising interrupt" is IMO a perfectly OK idiom; I just wasn't familiar with the "IT" abbreviation... =)
3.8MHz interrupt rate - especially when using Cube - sounds like the interrupt permanently being invoked again, maybe due to some of the flags not being cleared properly in the ISR - maybe overrun, or maybe TXE (which actually cannot be cleared, has to be disabled).
JW