Hi Since I have been asked to develop code to measure the frequency using XC161 microcontroller. Frankly I don't have any idea of implementing it. However so far I have used the ADC to sample the sine wave of low frequency. Should I use compare and capture module in order to detect the rising edge? (Unless Im talking ***) Your help would be greatly appreicated. AJ