You can find similar project and discussion (DelSig_ADC-Filter-DAC8) here
You would only have to update to SAR_ADC, which should not be a problem.
1 of 1 people found this helpful
Depending on your filter configuration you will need several ADC values before a filter output is ready. Better avoid the while-loop within an interrupt handler and check for data ready in your main-loop.