Thread: interupts 3-6??
View Single Post
  #5   Spotlight this post!  
Unread 26-01-2007, 14:41
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Re: interupts 3-6??

couldn't you just look at the specific pin to see if it is the pin that is activated?

such as

Quote:
if(INCONbits.RBIF)
{
if(PORTBbits.RB7)
{
yadda yaddaa
}
if(PORTBbits.RB6)
{
yadda yadda
}
etc. etc.
}
I've been muddling through the pic18f8722 data sheet and I think that PORTB is just another set of bits that refer to the pins RB0 thru RB7. Is that a valid way to isolate the interrupts in INTCONbits.RBIF?