View Single Post
  #9   Spotlight this post!  
Unread 30-01-2005, 16:23
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Confused about Interrupts

Quote:
Originally Posted by jgannon
Whoa, that's weird. I apparently have an older version; my encoder.c looks completely different from what I just downloaded from kevin.org. Yeah, that doesn't make any sense to me... it should be on 7, not 6.
No, 6 & 8 is correct. I changed it because I got a nasty gram from someone who hadn't made I/O 7 an input, which caused the encoder to count in one direction only. 6 & 8 are inputs by default. This text was added to the readme.txt file for this very reason:

3) Digital I/O pins one, two, six and eight are configured as
inputs in user_routines.c/User_Initialization(). If you notice
that the encoder only counts in one direction, you forgot to
do this step.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org