View Single Post
  #2   Spotlight this post!  
Unread 04-02-2006, 18:10
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Gear tooth sensor / GTS on DIO 3,4,5,6?

I'm assuming your issue is accessing which of the interrupts 3-6 went off. If not, sorry -_-

Take a look at Kevin Watson's interrupt tutorial. It gives well annotated code for initializing and using all the interrupts. There is a way to use all 6 pins seperately, all though you need to use the method he does.

However, you need to convert it to use the files for the new RC.
Replace the #include <ifi_picdefs.h> with #include <p18cxxx>, replace the linker file with the 18c8722.lkr from this year's default code, and change MPLAB's project options to build using the P18C8722 as the processor.
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)