Hi. I havn't checked everything, but in this code... > ORG 0x0000 > goto Main ;go to start of main code > >Main: >; -------------------------------- >; SET ANALOG/DIGITAL INPUTS PORT A >; -------------------------------- > movlw 7 > movwf CMCON ;CMCON=7 set comparators off ...the "goto" just jumps to the next instruction and do not jump over the interrupt vector address (h'0008'). And I can not see any specific code to disable all interrupt sources. Have you checked the no interrupt can happen ? Jan-Erik. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body