|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Interrupts per second
Anyone know how many interrputs per second the RC can handle? The Microchip docs don't seem to say and I did a search but could not locate any information on the forum. Thanks for any information.
Steven |
|
#2
|
|||||
|
|||||
|
Re: Interrupts per second
Quote:
|
|
#3
|
|||
|
|||
|
Re: Interrupts per second
Thanks, don't know why my searches missed that...
|
|
#4
|
|||||
|
|||||
|
Re: Interrupts per second
Quote:
It can be pretty hard to search for things on these forums unless you can remember a unique word or value from a thread, since the same terms get used over and over even if they aren't directly related to the thread topic. I have trouble finding my own posts where I've previously posted an answer or code! Last edited by Mark McLeod : 12-02-2004 at 14:05. |
|
#5
|
|||
|
|||
|
Re: Interrupts per second
Yeah, when I searched for interrupts per second, it eliminated per second entirely and searched for just interrupts... did me a whole lot of good
![]() |
|
#6
|
||||
|
||||
|
Re: Interrupts per second
Actually, it depends entirely on how long it takes to execute your Interupt Handler code. If you keep triggering interupts before the last one finished, you end up interupting the interupt. Do this too many times and you blow the stack and the thing crashes.
So, the REAL question is: How much time has IFI given us to service an interupt without blowing up their code? Chow for now, Steve |
|
#7
|
|||
|
|||
|
Re: Interrupts per second
I figured that, since the interrupt simply calls a function which increments a variable, I shouldn't have any trouble with that...
|
|
#8
|
||||
|
||||
|
Re: Interrupts per second
Most processors block further interrupts on a pin once the first one has been received
so unless you re-enable interrupts inside the interrupt routine, it will not be able to interrupt the interrupts - usually you enable them in the last instruction before you return, or in some processors, the return-from-interupt instruction itself re-enables them |
|
#9
|
||||
|
||||
|
Re: Interrupts per second
True, except you are dealing with two layers of interupts here. The high priority interupt can interupt your low priority interupt. And since we don't know exactly what IFI is doing with their code...
I'm learning a LOT about what doesn't work with this machine. |
|
#10
|
|||
|
|||
|
Re: Interrupts per second
Quote:
|
|
#11
|
||||
|
||||
|
Re: Interrupts per second
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INT2 and INT3 interrupts not working | Mercutio | Programming | 4 | 01-02-2004 13:27 |
| EDU Demo Code: Encoder Interfacing Using Interrupts | Kevin Watson | Programming | 4 | 08-01-2004 23:14 |
| Interrupts Questions | mightywombat | Programming | 0 | 03-01-2004 14:50 |
| Problem with interrupts on the PIC | Mike Betts | Programming | 7 | 16-12-2003 21:26 |
| Interrupts on the EDU-RC? | Andrew | Programming | 3 | 13-11-2003 23:16 |