> It seems that the PIC sometimes starts up with unexepted values in some > registers. If your program don't use interrupts then add a RETFIE at offset > 0x0004 to let the program countinue even when a unexepted interrupt occures. > > Christian That's OK, but remember: the RETFIE itself is not a good interrupt handler: you must clear the interrupt flag too, or the CPU will start an endless loop. Best way is something like that: ORG 0x0004 CLRF INTCON ; now you know that all flags and interrupt enable bits are clear RETFIE Than I think it will work .... ps.: I don't think there's something wrong with the POR microcode of PIC's ... But everything is possible. ;-) Fabio Pereira -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads