My question is about general/recommended practices for interrupt coding. I am using the dsPIC30F2010 and using INT0, INT1, and TMR1 interrupts. INT0 and 1 are external interrupts based on sensor input (IR switch) I am using timer 1 interrupt on period match for a delay. My config allows for nested interrupts. Is it generally ok to have about 30 lines of code inside the interrupt routine? On INT0 I am decrementing a register several times with a delay which uses TMR1 interrupt between each decrement. Should I be calling another routine from the isr to do this? Any advice welcome! -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist