If you also have other interrupt sources then clearing the GIE-bit will of course disable them too. Clearing TMR2IE will disable that interrupt only. If you're using DT-INTS then you can use @ INT_DISABLE TMR2_INT.
/Henrik.
If you also have other interrupt sources then clearing the GIE-bit will of course disable them too. Clearing TMR2IE will disable that interrupt only. If you're using DT-INTS then you can use @ INT_DISABLE TMR2_INT.
/Henrik.
Henrick,
Clearing TMR2IE is working .. just tried it. I only have one interrupt source so clearing GIE would probably also work. I'm not using DT_INT, not needed with the 16F1823 family.
Great!
So you're writing the interrupt service routine all in ASM then? Well that's is indeed the best way but also the hardest - at least for me, because I suck at it :-(
/Henrik.
Bookmarks