View Single Post
  #2   Spotlight this post!  
Unread 14-02-2006, 13:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Interrupt Maximum before the RED light DEATH?

The PIC executes ten million instructions per second. If your interrupt service routines don't use them all up, the main program will be able to execute. Counting instructions is tedious and error-prone, but it'll give you the answer you're looking for.

A less tedious way would be to set an output pin high when you enter the interrupt service routine, then set it low as you leave. An oscilloscope on that pin will tell you how long and how often the routine runs, and will give you a reasonable indication of what fraction of the time you're spending servicing interrupts.