Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] problem in counting captuered pulse

Status
Not open for further replies.

Bhavani Elanchezhiyan

Newbie level 1
Joined
May 3, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
7
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
View attachment rtd.txt
 

Hi, i dont have mplab at the moment to test the code. have you tried to simulate it in mplab? check if the trigger works properly, and also on different frequencies.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top