Thread: Encoder Code
View Single Post
  #11   Spotlight this post!  
Unread 19-01-2006, 20:14
PICgnosis's Avatar
PICgnosis PICgnosis is offline
Registered User
AKA: Karen Suhm
FRC #0842 (Falcon Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Phoenix, AZ
Posts: 45
PICgnosis is on a distinguished road
Re: Encoder Code

Hi.

I had the same problem and also traced it back to the mismatch between the mcc18/h/p18f8722.h and encoder.c aliases for the INT3 external interrupt priority bit.

In encoder.c, bit #1 is aliased as INT3IP but in mcc18/h/p18f8722.h it's called INT3P. If you want the <p18f8722.h> header file to be consistent with the PIC18F8722 datasheet, you should change the alias in p18f8722.h (Ln 1712) to INT3IP. If you're not a stickler for details, as long as you change one of them to match the other, it will compile correctly.



Karen

Last edited by PICgnosis : 20-01-2006 at 11:30.