I am using CCS, I need to enter a loop, do the loop until the interrupt. Exit the loop, do whatever, then restart the loop. What is the best way to exit the loop in the middle of the loop, regardless of the status of that loop? SETUP_TIMER_0(100) //start timer 0 at 100 PART_1 DOTHIS COUNT_10 GOTO PART_2 PART_2 DOTHAT COUNT_10 GOTO PART_1 INT_ON_TIMER_0 //interrupt on overflow ? //Must exit PART_1 and PART_2 //in order to restart from beginning of PART_1 PART_3 DOWHATEVER GOTO PART_1 Gordon Varney www.iamnee.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads