View Single Post
  #6   Spotlight this post!  
Unread 24-01-2007, 08:10
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Help Integrating Interrupts and Camera

Camera uses interrupts for serial communications.
Encoder (gear tooth sensor) outputs should be connected to i/o pins which generate interrupts.


In the Kevin Watson code:
The interrupt routine (see user_routines_fast.c - InterruptHandlerLow) in the camera example only has code to handle the serial port interrupts.

The interrupt routine in the encoder (gear tooth sensor) example has code to handle the serial port interrupts as well as the i/o pin (connected to the encoder outputs) interrupts.

So, when you combine your workspaces use the interrupt service routine from the encoder example.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010