Massive rework to the code... I was able to sample a 4kHz signal with the correct sampling rate and send it to MATLAB. I am now using the SD card to store the data. prinf() is too slow...