![]() |
White Paper Discuss: Interrupts for Dummies
Thread created automatically to discuss a document in the White Papers.
Interrupts for Dummies by Daniel |
Re: White Paper Discuss: Interrupts for Dummies
this is an EXCLENT white paper. thanks for taking the time to put it together!
|
Re: White Paper Discuss: Interrupts for Dummies
Quote:
|
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 |
Re: White Paper Discuss: Interrupts for Dummies
Quote:
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). |
Re: White Paper Discuss: Interrupts for Dummies
this is really useful, thanks! :D
|
| All times are GMT -5. The time now is 14:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi