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.

Interrupts jumps on rpm measure

Status
Not open for further replies.

garg29

Advanced Member level 1
Advanced Member level 1
Joined
Nov 17, 2004
Messages
443
Helped
25
Reputation
50
Reaction score
10
Trophy points
1,298
Visit site
Activity points
3,593
Dear All,

I am measuring 2 rpms through INT0 and INT1 both simultaneously.
But i am getting lot of jumps in rpm value .:sad:
Please help me out .
 

Hi

Sorry Crystal Ball down for a while :-D

You need to say what make and type of chip you are using, which compiler and post your code and circuit so we can see whats happening.

Its more normal to measure rpm via the Capture function as explained here
This uses a timer to count the pulses, whereas your INT0 method will be interrupting every pulse so its likely your interrupts may overtake each other and so give incorrect readings.
 

what is you expected RPM and how long a time period are you measuring over?
e.g. if the RPM is low (say a few revs a second) and you measure over a too short time period (say half a second) the counted revs will vary in RPM value depending on the number of counts in the time slot
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top