>a long (70mS) task I suggest doing it OUTSIDE the >int routine, so the int routine just sets a bit, then >in your main non-int code you detect that bit and >start the 70mS task. That way the timer int keeps >perfect time while the task is being performed. >:o) >-Roman Since the timing and measurement seem to be critical I would modify that to say grab the sample off the A/D first and then flag the outside routines to run, and then exit the interrupt. Barry -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.