Reading I2S data in ISR
Posted: Mon Feb 18, 2019 2:29 pm
Hello everyone,
I setup a 44,100 Hz timer to fill a buffer with data from an I2S microphone (SPH0645LM4H) however I get a core panic when running i2s_read_bytes() from inside the ISR, presumably it spends to much time there. Other methods I tried like running a simple task loop causes reliability issues and interferes with other parts of the program.
Can I read I2S data from the timer ISR? Or what is the preferred method for reading data continuously?
Andy
I setup a 44,100 Hz timer to fill a buffer with data from an I2S microphone (SPH0645LM4H) however I get a core panic when running i2s_read_bytes() from inside the ISR, presumably it spends to much time there. Other methods I tried like running a simple task loop causes reliability issues and interferes with other parts of the program.
Can I read I2S data from the timer ISR? Or what is the preferred method for reading data continuously?
Andy