Go to Post Where's the "drill enough weight holes so we're barely under 120lbs" option? ;-) - AlecMataloni [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2007, 14:07
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
More than 6 RC digital input interrupts?

I'm trying to get all of our systems up and running, and it would make my life a lot easier if there were a way to get 8 interrupt lines running. Every bit of FRC code I've seen has a maximum of 6 (on rc_dig_in01 to rc_dig_in06).

Is there a way to get more without having to multiplex the interrupt lines externally?
  #2   Spotlight this post!  
Unread 06-02-2007, 15:40
Andrew Morris's Avatar
Andrew Morris Andrew Morris is offline
Oh hey, it's build season!
FRC #0177 (Bobcat Robotics)
Team Role: Student
 
Join Date: Nov 2006
Rookie Year: 2005
Location: South Windsor
Posts: 16
Andrew Morris will become famous soon enough
Re: More than 6 RC digital input interrupts?

There are only 6 external digital interrupts on the RC. One way to add more is to have a second controller(I have used a VEX controller) with encoders or other devices using interrupts plugged in sending signals back to the RC through an analog output(PWM). However, this design requires the use of an interrupt port on the RC and some fancy code work. I used 1 PWM on the VEX controller linked to 1 interrupt on the RC to send a number 0-255 to the RC with reasonable accuracy then had the RC recognize the number as a command(100 means drive forward for example). This also allowed me to do calculations on the VEX controller and ease the load on the RC.
__________________
2010 Newton Division & Championship Winner w/ 67 & 294
2009 CMP Champion - Newton Division
2008 CMP Champion - Archimedes Division
2007 Newton Division & Championship Winner
  #3   Spotlight this post!  
Unread 06-02-2007, 15:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: More than 6 RC digital input interrupts?

Digital input pins 3-6 are already "multiplexed" into a single interrupt. You will indeed have to combine signals externally to make them all cause one of the hardware interrupts to occur, but extending the part of the software that checks to see which pin actually caused the interrupt is straightforward.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Analog vs Digital Interrupts and Processor Overhead brianafischer Programming 2 21-01-2007 08:50
Auton digital input ten3brousone Programming 7 20-03-2005 22:23
counting digital input CharlieWilken Programming 9 22-03-2004 19:56
Robot Digital Input Mike Norton Technical Discussion 5 16-01-2003 14:31
2.5 is alive !!!! (input ! .. more input ! ) Lloyd Burns Programming 2 14-01-2003 19:15


All times are GMT -5. The time now is 04:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi