Hello and thank you for your response!
I am sorry for the lack of information. The inputs gets a variable sine wave between 5-7KHz which is converted into a square wave.
The comparison can be done in anyway possible as long as it's doing it per 10ms.
Thank you again for your time and expertise!
Best regards,
Swoshie