Exact match. Not showing close matches.
PICList
Thread
'[SX] SX/B interrupt disable'
2006\10\18@095351
by
Rsadeikan/a
|
|
I have attached a program that can be used as a starting point. My question, after reading through the SX/B help file I did not notice a command or an instruction that disables the interrupt after an option = $xx has been implemented. So, for example, in my program, how would I disable the interrupt while the pulsin subroutine runs, and then how would I turn the interrupt back on.
thanks
Ray
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150091
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Ray,
If you using OPTION=$88 to enable interrupts then OPTION=$C8 will disable interrupts.
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150091#m150098
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\10\18@105054 by Sparks-R-Funn/a
|
|
Ray,
Do you have Gunther's book? As others can testify, it is a very handy reference. On page 225 of the second edition he makes clear that bit 6 of the Option register is the "main switch" to turn interrupts on or off. (0 = Enabled, 1 = Disabled) For your code, this is the Option bit that you need to change.
To turn interrupts on use:
OPTION = %10001000
To turn interrupts off use:
OPTION = %11001000
Those are the same as the hex values given by Bean. I wanted to explain a little how they were obtained. Obviously the other bits in the Option register have meaning as well, so be sure to check those out if they are of interest.
- Sparks
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150091#m150106
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2006
, 2007 only
- Today
- New search...