I am developping an audio recording application.
I am sampling the audio from an external ADC WM8782 using 48KHz.
I am using double buffering: one for reading data microphone while the other is wriiten in USB memory stick.
I am using Fatfs to access (open, write,...) to USB memory stick.
When recording a sine signal (by connecting a sine wave to ADC input) I discovered some spikes.
After some debugging, it seems the issue is related to writing time consumption. In fact, write access to memory stick is lower than reading a complete buffer but sometimes (I don't know when) USB memory stick exceeds the time required to read a complete buffer.
Now I don't know what could be the root cause.
Is there somebody who could help.