Hello friends! Continuous trying to measure (with the PIC16F628) the time between the arrival of a pulse and another one. Approximately the pulses arrive with a frequency around 5 at 7Hz. The procedure that elaborates is the following: In interruption input RB0/INT I connect the pulse generator to. With the arrival of the first pulse an interruption is caused and beginning to the account of TMR1 occurs. With the arrival of the second pulse, return to interrupt and stop the account of the TMR1. The read value in TMR1 must be the time between pulse and pulse that is what I want to know. Can ypu say me if this procedure is correct?
Thank you a lot