I am using PIC 16F84 for my project and I need to measure the time interval between two rising edges of input signal. Input signal is like a clock but the period of the signal is not so stable. So basically I want to measure the time between the rising edges that comes one after another, and also measure several of them and take the average of many to obtain an average clock period. I know how to handle external interrupt (RB0/INT), but I dont know how to manipulate it and measure some time interval in it. Also I want to use the measured time intervals in comparisons so that I can do other things according to that time. (I use a 4 MHz crystal oscillator.) any suggestions will work. regards
Yusuf