It is a application of FFT (Fast Fourier transform). However, if you want to have it running on a C51 Microcontroller, you got to simplify it even more. Lots of tricks are being applied that it does not look like FFT any more. But it turns out that it wor