View Single Post
  #9   Spotlight this post!  
Unread 01-02-2008, 10:52
cprogrammer's Avatar
cprogrammer cprogrammer is offline
Registered User
FRC #1595 (Gremlins)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Washington
Posts: 42
cprogrammer will become famous soon enoughcprogrammer will become famous soon enough
Re: Ganged Interrupt Edge Detection

Quote:
Encoder_3_Int_Handler(Port_B & 0x10 ? 1 : 0); // call the encoder 3 interrupt handler (in encoder.c)
I see it now, the XOR gate operator for Port_B_Delta is to distinguish which interrupt fired. Then the line of code above inputs a 0 or 1 into the function to tell whether a rising or falling edge has interrupted. Thank you for all your help wt200999