View Single Post
  #7   Spotlight this post!  
Unread 31-01-2008, 16:52
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Multiple Interrupts

Quote:
Originally Posted by JohnC View Post
I just had a bad idea. If you want interrupts on the rising AND falling edges...
Code:
void Int_1_ISR(void)
{
    INTCON2bits.INTEDG2 = !INTCON2bits.INTEDG2;
}
Mmm, does anyone smell the processor cooking?
I did this for the 2004 IR beacon receiver and it works just fine (and no smoke or flames <grin>).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org