Hi,
Just check if corresponding interrupt flags are set ... before clearing them !
that's all !
Alain
Hi,
Just check if corresponding interrupt flags are set ... before clearing them !
that's all !
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
LOL so simple ! thank you.
-something like:
but.. if I have 10 interrupts enabled and the last interrupt checking ('If' statement) was the triggered, will I always have to check the previous 9 each??, sounds like it will.Code:... ON INTERRUPT GOTO IntHandler ... ... IntHandler: If PIR1.0=1 then PIR1.0=0 'Clear flag ..do my thing... RESUME EndIF If INTCON.0=1 then INTCON.0=0 'Clear flag ..do my thing... RESUME EndIF
PD: ENABLE & DISABLE are optional, am I ok?
"Beethoven had his critics too, see if you can name 3 of them"
Yess ... so simple
You see anther way to check which has triggered ???
it's a Pic specifics !!!
heuuuuu, disable before the interrupt stubb !!! or it will be fun ...
Ioannis ( hello ...) is right ... BUT if your device shows ~> 2K prog space min. ( say ~> 100 SRAM Bytes ...). The 12F683 is the minimum size to allow something "usable" ...
Alain
Last edited by Acetronics2; - 21st April 2008 at 13:19.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hi Alain. He stated that the device is F628, so it might fit the budget! But on the other hand, On Interrupts, depending on the length of the PBP program might consume RAM too.
Ioannis
Bookmarks