I am measuring pulse widths between 5 microseconds to 15 microseconds. I am giving these pulses from function generator by setting 1 Hz frequency. The code which I posted in my thread displays 1 microsecond or 0.5 microsecond when I give 1 microsecond width pulse similarly it gives either 10 or 9.5 when I apply 10 microsecond pulse width and so on so if for example when I give 10.3 or 10.2 or 10.1 it keeps on giving me 10 or 10.5 so it is not giving me correct reading for such values and that's what my problem is....
So what do you think now?