Hello,
I am trying to sample and reconstruct an audio signal using the SAADC and I2S respectively. I have a double buffer setup for the SAADC, where we process the data in one buffer while sampling in the other, but I am getting discontinuities in the output signal every time saadc_handler() is called. The attached scope shot captures the analog input waveform (yellow) and reconstructed output from I2S codec (green). It has been verified that the discontinuity happens exactly when SAADC changes output buffer from one to the other. My understanding is that the I2S output stream is set up correctly (we have tested with this i2s_example, and it worked perfectly), so I am assuming there is something I need to change when sampling.
The sampling and reconstruction frequency are both at 31.25 kHz, and each input buffer size is 1024 (with an output buffer size of 2048).
Here is a screenshot of the scope image of the input and output signals: