> I am having trouble getting the code to run correctly. The program has a > bit-bashed serial routine that sends data just after powerup. I can get > the code running when I am in Debug mode with ICD2 but when I switch to > Programmer, the device no longer transmits data out the allocated pin. have you already been through all the obvious stuff like watchdog timer, lvp etc also consider power supply decoupling, the ICD2 debug connector seems to have sufficiant capactiance on the target power supply rail to sometimes make a cuircuit with inadequate decoupling work. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist