Go to Post :( The Internet just ate my post. - Greg Marra [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 08-02-2005, 21:04
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Interrupts and Script Conundrums

2 Problems I am seeking wisdom on:

Utilizing interrupts 3 & 4. It appears that they are both accessed through PORTB. Can one use them independently of one another? I can't see how at the moment.

Scripted code. Using CMD_TURN, the state variable never gets to 'STOPPED', so rc remains at 0 and it loops endlessly. We are using code from the 1-22 version without alteration. Anyone deal with this yet successfully?

Hope the upcoming snow doesn't shut down our shop again!!!! You Canadians love the stuff!!

Jon from 236 in Old Lyme.
  #2   Spotlight this post!  
Unread 08-02-2005, 22:35
Robby's Avatar
Robby Robby is offline
Registered User
AKA: Kevin Beranek
FRC #0269 (Cooney Robotics)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 47
Robby has a spectacular aura aboutRobby has a spectacular aura about
Re: Interrupts and Script Conundrums

Quote:
Originally Posted by Jon236
2 Problems I am seeking wisdom on:

Utilizing interrupts 3 & 4. It appears that they are both accessed through PORTB. Can one use them independently of one another? I can't see how at the moment.
take a look at the interrupt code in InterruptHandlerLow() in user_routines_fast.c in Kevin Watson's code at http://kevin.org/frc/edu_interrupts.zip what you have to do is look at the difference between the last PORTB value and the current
  #3   Spotlight this post!  
Unread 08-02-2005, 23:01
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Interrupts and Script Conundrums

Quote:
Originally Posted by Robby
take a look at the interrupt code in InterruptHandlerLow() in user_routines_fast.c in Kevin Watson's code at http://kevin.org/frc/edu_interrupts.zip what you have to do is look at the difference between the last PORTB value and the current

Thanx!
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


All times are GMT -5. The time now is 19:18.

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