|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Too many interrupts?
Hi, I'm in charge of the programming and I was wanting to use interrupts to track the rising edges of the gear tooth sensors. My mentor is concerned that tracking this (max speed of 10ft/sec) will bog the processor down too much. He is proposing to build a byte counter circuit that will keep count will the processor is doing other things and then the count will be read by the processor for an update and reset. Can anyone provide insight to this?
Thanks, Windell Please only respond if you are a credible source because I don't want to make myself an idiot to my mentor when I present him with an argument. |
|
#2
|
|||||
|
|||||
|
Re: Too many interrupts?
Where are you planning on mounting the gear tooth? And how many edges is it going to see per time?
|
|
#3
|
||||||
|
||||||
|
Re: Too many interrupts?
See this thread: http://www.chiefdelphi.com/forums/sh...threadid=63416
|
|
#4
|
||||
|
||||
|
Re: Too many interrupts?
Like the thead points out, the number of gear tooth sensor interrupts are not a problem. They are a relatively low number compared to the encoders that people are using. We are getting around 1200 interrupts per second from the gear tooth sensor. The interrupt routine is simple too - just increment a counter and clear the interrupt flag.
Brian |
|
#5
|
|||||
|
|||||
|
Re: Too many interrupts?
if you still decide you need a divider circuit, you can buy some kits for a very reasonable price
http://banebots.com/pc/ELECTRONICS/EN-A0001-KT |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many interrupts is too many interrupts? | Madison | Programming | 14 | 08-02-2008 12:09 |
| Too many R/C commands in a loop? | ManicMechanic | VEX | 1 | 02-07-2007 00:52 |
| pic: TOO MANY TETRAS!!!! | Ali Ahmed | Extra Discussion | 12 | 22-01-2005 10:06 |