sirs I want an algorithm for checking the correctness of a 50%duty cycle 14ms signal and i am using atmega 32 .please anyone suggest