Jim, my __CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON & _IOFSCS_8MHZ statement is also indented 1 place. The forum sometimes ingores spaces in pasted text.