View Single Post
  #4   Spotlight this post!  
Unread 09-02-2005, 23:05
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Calling Incorrect Interrupt Handler

Mike,

I am not using edu code on the bot, at the time i was using Kevin's EDU-Encoders workspace, but now I am using the FRC-Encoders.

I am pretty sure pin 1 is INT2

From user_routines_fast.c...
Code:
if (INTCON3bits.INT2IF && INTCON3bits.INT2IE)       /* The INT2 pin is RB2/DIG I/O 1. */
  { 
    INTCON3bits.INT2IF = 0;
	Left_Encoder_Int_Handler(); // call the interrupt 1 handler (in encoder.c)
  }
  else if (INTCON3bits.INT3IF && INTCON3bits.INT3IE)  /* The INT3 pin is RB3/DIG I/O 2. */
  {
    INTCON3bits.INT3IF = 0;
	Right_Encoder_Int_Handler(); // call the interrupt 2 handler (in encoder.c)
  }