View Single Post
  #5   Spotlight this post!  
Unread 08-01-2004, 23:14
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: EDU Demo Code: Encoder Interfacing Using Interrupts

Quote:
Originally Posted by roknjohn
Kevin,

Thank you for all of the great interrupt examples for the EDU controller. They have been extremely educational. I've been racking my brain all year to figure out a simple way to use an encoder that had a useful resolution. This looks like an elegant solution with the new hardware.
Thank you. I'm glad you're making use of the code.

Quote:
Originally Posted by roknjohn
My question is this: How does this translate to the full-size controller? I didn't see any interrupt pins on it.

Would we have to use a timer?
Yes, we'll have interrupts on the new FRC controller. The port b interrupts on the EDU-RC directly map to the first six digital inputs on the new controller (i.e., Interrupt 1 = digital I/O 1, interrupt 2 = digital I/O 2,... interrupt 6 = digital I/O 6).

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