Go to Post If you see Navy ships in port, you're going to be fine. If you see ships pulling out, or no ships at all, go East. Fast. - Matt Howard [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-03-2004, 17:17
CD47-Bot CD47-Bot is offline
Registered User
FRC #0047 (Chief Delphi)
 
Join Date: Dec 2002
Location: Pontiac, MI
Posts: 1,616
CD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond repute
White Paper Discuss: Interrupts for Dummies

Thread created automatically to discuss a document in the White Papers.

Interrupts for Dummies by Daniel
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2004, 17:17
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: White Paper Discuss: Interrupts for Dummies

this is an EXCLENT white paper. thanks for taking the time to put it together!
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
Reply With Quote
  #3   Spotlight this post!  
Unread 31-12-2004, 21:20
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Thumbs up Re: White Paper Discuss: Interrupts for Dummies

Quote:
Originally Posted by jacob_dilles
this is an EXCLENT white paper. thanks for taking the time to put it together!
Arguably the best whitepaper on CD. This has really cleared up a lot of blurry areas for me that arose when reading the official docs.
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2005, 00:09
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: White Paper Discuss: Interrupts for Dummies

Do you need to disable the interrupts if you want to access the variables changed by the interrupt service routine or is disabling only necessary when the variables are changed?
Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2005, 09:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,823
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: White Paper Discuss: Interrupts for Dummies

Quote:
Originally Posted by prograid
Do you need to disable the interrupts if you want to access the variables changed by the interrupt service routine or is disabling only necessary when the variables are changed?
Thanks
If it's a one shot use like x = encoder count;
You don't have to disable the interrupts.

Caution: If you need to reference the variable several times like:
if (encoder count == 10)
x += encoder count
The value of encoder count the second time won't necessarily be the same as the first reference. Make it a habit to move any interrupt variable to a working variable if you plan on using it repeatedly (in a calculation too).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2005, 03:24
karch karch is offline
In Zip Tie Heaven
AKA: Brian Liu
FRC #1510 (Westview Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Portland
Posts: 16
karch is on a distinguished road
Send a message via AIM to karch
Re: White Paper Discuss: Interrupts for Dummies

this is really useful, thanks!
Reply With Quote
Reply


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
White Paper Discuss: Drive Train Basics CD47-Bot Extra Discussion 6 06-09-2012 11:42
White Paper Discuss: Dual-motor, dual-speed gearbox CD47-Bot Extra Discussion 8 05-04-2004 19:24
White Paper Discuss: Controller Circuit- Infrared Emitters CD47-Bot Extra Discussion 1 13-02-2004 17:48
White Paper Discuss: 2 speed, Shift-on-the-fly TechnoKat Gearbox CD47-Bot Extra Discussion 35 23-01-2004 20:16
White Paper Discuss: Pocket PC 2002 Scoring Program CD47-Bot Extra Discussion 3 16-01-2003 09:45


All times are GMT -5. The time now is 17:33.

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