> Does the code for TMR1IF really need to be in the interrupt handler at > all? Unless it's really that time-critical (which seems unlikely with > that much processing), I'd just set a flag in the isr and let the main > loop handle it. Depends on application needs, of course. No need to handle it in the interrupt at all: TMR1IF can be used as the flag as long as the corresponding interrupt enable bit is not set. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body