Zero crossing time measurement

fan174

Member
I want to measure the time interval between every zero crossings for 5V AC input signal using the PIC16f877a.
I understand c programming but I am struggling to measure the time interval between every zero crossings. I did google search and found that I have to use Analog Comparator, Interrupt and CCP Module.

How to detect every zero crossing ?

if crossing detect then how to measure time ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…