>I do know PIC doesn't run when ICD is connected and the >debug option is off. It's probably because RB6 is kept >low by ICD during reseting. You do not need LVP mode when using the ICD1 as it generates the high voltage for you. I suspect it will control RB3 in case the PIC is set to LVP mode. However the original problem is that you must turn off the debug mode to have the PIC run without the ICD1 connected. If debug mode is on the internal code jumps to the debug code inside the PIC, and waits for a command from the ICD. As there is no ICD connected then you cannot get your code to run. I believe you should only need to change the configuration word to achieve this, without needing to re-program the whole chip, although this was what I was doing when using the ICD1. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.