Go to Post In the encyclopedia of FIRST under the term Encyclopedia it says - See Joe Ross. - rees2001 [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



Interrupts for Dummies

By: Daniel
New: 05-02-2004 14:16
Updated: 05-02-2004 14:16
Total downloads: 1442 times


The intent of this document is to demystify in reasonable detail how digital input interrupts work with enough explanations that a programmer can confidently implement interrupt service routines and use interrupts in their robots.

The intent of this document is to demystify in reasonable detail how digital input interrupts work with enough explanations that a programmer can confidently implement interrupt service routines and use interrupts in their robots.

Attached Files

  • pdf Interrupts for Dummies

    1076008567interrupts_for_dummies.pdf

    downloaddownload file

    uploaded: 05-02-2004 14:16
    filetype: pdf
    filesize: 122.28kb
    downloads: 1440



Recent Downloaders

  • Guest

Discussion

view entire thread

Reply

02-03-2004 17:17

jacob_dilles


Unread Re: White Paper Discuss: Interrupts for Dummies

this is an EXCLENT white paper. thanks for taking the time to put it together!



31-12-2004 21:20

phrontist


Unread 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.



10-01-2005 00:09

prograid


Unread 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



10-01-2005 09:07

Mark McLeod


Unread 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).



29-01-2005 03:24

karch


Unread Re: White Paper Discuss: Interrupts for Dummies

this is really useful, thanks!



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 00:14.

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