>The book that I am using does not >show movwf affecting >the status bits;however, after glancing at the data sheet I now "movwf" doesn't affect the STATUS, the book is correct. My statement concerned "movf" which does affect the STATUS register. After looking at your code, though, that error wouldn't cause the problems you described, however. > I have abandoned the use of timer for now and used the Delay >Generator @ the Piclist >web site to generate code for a 10 second. The code produce by the >generator also causes >MPLAB to stop after a random number of cycles. How "random"? Before, you mentioned that it would stop after 50-62ms. Since you disabled the timer interrupt (I assume), do you have any other interrupts occurring? Run the program through the MPLAB simulator and check the PCL... make sure it isn't vectoring off somewhere undefined. The only advice I can give without actually working through your code is to keep chopping out small sections until the program works (what's left of it, anyway), then try putting them back in one at a time to identify the problem. --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics