Using I2S interface to read in serial data fast

simmania

Member
Hi,
I would like to use the I2S interface to generate a 2.5 MHz clock and read in serial data on this clock.
Which library can I use to make this happen? Note that I do not need to process audio data. Just need to read in raw data.

Can I program the I2S registers myself? Or do I need to use some library?
 
You can access the I2S registers directly. Search for the OpenGalvo project for a recent example.

OR you might just use the audio library with I2S input and 1 queue to get access to the raw data. Then you would dive into the audio I2S code to capture have the DMA and buffers all 32 bits of each I2S frame rather than only the top 16 bits, and chance the PLL settings so you get the desired clock speed. But just using audio for I2S input and queue will give you something that "works" immediately but captures only 16 of every 32 bits.
 
Back
Top