Introduction - If you have any usage issues, please Google them yourself
The ADC signal waveform acquisition, the timer control the sampling rate, the use of official FFT DSP library functions, seeking the signal frequency. Ps: the complete works available