Go to Post "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." - Albert Einstein - Edward Debler [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 01-02-2008, 00:37
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: Multiple Interrupts

Quote:
Originally Posted by Gamer930 View Post
I have been trying to get Interrupts 2 and 3 working that would be on pins 1 and 2 of the Digital Inputs. I have the code and I seem to get in an infinite loop on the left gear tooth sensor. . . The interrupt keeps going and makes both the right and left gear boxes go full 254 forward.

Right GTS doesn't work at all. (yes we have tested the GTS after we fixed the resistors problem and it works fine)

Can someone see where I messed up??? Copied the code from Kevin Watson's Encoder Code.
I can't really make out what's going on, but I did see that you were calling printf() in your interrupt service routine, which can cause problems. A much better quick-and-dirty way to signal the outside world is to just send a single character using Write_Serial_Port_One(), which executes much faster. It's as simple as this:

Write_Serial_Port_One('*');

Fix this one problem and let us know if it works.

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


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
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
Interrupts JSonntag Programming 1 14-01-2006 12:43
timers/interrupts Anton Programming 1 17-02-2005 08:42
Interrupts CyberWolf_22 Control System 3 12-01-2004 21:46


All times are GMT -5. The time now is 23:45.

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