Thread: encoders
View Single Post
  #14   Spotlight this post!  
Unread 05-02-2005, 10:20
dmurdz's Avatar
dmurdz dmurdz is offline
Registered User
AKA: Dan
FRC #1027 (Mechatronic Maniacs)
Team Role: Leadership
 
Join Date: Feb 2005
Rookie Year: 2004
Location: West Springfield, Massachusetts
Posts: 54
dmurdz is on a distinguished road
Send a message via AIM to dmurdz Send a message via MSN to dmurdz
Re: encoders

Sample code from Kevin on www.kevin.org/frc, the interrupts program, in file interrupts.c, there is a spot that says:

/************************************************** *****************************
*
* FUNCTION: Int_3_Handler()
*
* PURPOSE: If enabled, the interrupt 3 handler is called when the
* interrupt 3/digital input 3 pin changes logic level.
*
* CALLED FROM: user_routines_fast.c/InterruptHandlerLow()
*
* PARAMETERS: RB4_State is the current logic level of the
* interrupt 3 pin.
*
* RETURNS: Nothing
*
* COMMENTS: The PIC18F8520's RB4/KBI0 pin on port b is mapped to
* interrupt 3 on the EDU-RC and digital input 3 on the
* FRC-RC [108].
*
************************************************** *****************************/
void Int_3_Handler(unsigned char RB4_State)
{
// this function will be called when an interrupt 3 occurs
}

Is this the final code??? What do I need to add???

HELP!!!!!!!!!!!!!!!!