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.
![cap_count.jpg cap_count.jpg](https://www.edaboard.com/data/attachments/52/52780-c64f1709ed011265011ebb9f10eab1e8.jpg)
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.
![cap_count.jpg cap_count.jpg](https://www.edaboard.com/data/attachments/52/52780-c64f1709ed011265011ebb9f10eab1e8.jpg)
View attachment rtd.txt