Hallo, I should measure the frequency of an input signal. Max frequency of signal is 100 KHz.
I have made a simple system to detect rising edge of input signal using a flip flop. It samples the input signal every system clock cycle. To measure the input frequency I count the number of system clock periods between two rising edges of input signal.
To test the system I' using a function generator.
Reading the data acquired (using a fixed frequency) I have watched that every 5-10 datas there is an error. The number aquired is about 50% or 75% less than the others.
Using a pull up resistor will be solved the error?
Otherwise I need a system that verify glitches?