Bhavani Elanchezhiyan
Newbie level 1

I write code for counting captured pulse for every 1sec. compiler I used was MPLABIDE v8.92 and wrote my source code in hitechC, controller used was pic16f877a.
problem in my code is every 10 count missed 1 count that means I set frequency as 100Hz output shows in display is 91. I attached my code and simulation clip please suggest solution for this problem.

View attachment rtd.txt
problem in my code is every 10 count missed 1 count that means I set frequency as 100Hz output shows in display is 91. I attached my code and simulation clip please suggest solution for this problem.

View attachment rtd.txt