My brotherz, actually am doing frequency measuring of pulses using ccp modules with pic 16f887+mikroc compiler, after fooling myself arround the code,ultimately, i managed to construct the codez, but there is stil one problem that needs to be rectified, since the results obtained on LCD is not stable, at one time, there is a wrong results, and another instant there is correct results, i dont know what causes this wrong answer to appear on the LCD,can somebody help me out, because it is my project, help me out, look on the codez below, and two snaps, one showing correct results 3KHZ(CCP1), but other showing the wrong strange results(CCP2), these two keeps alternating continously, could any1 help me, especially on the way to declare variables?