I have recently purchased a bunch of PIC18LF2520 micros as a replacement for PIC18LF252 that are currently being used in my applications. 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. The oscillator appears to be running ok on the micro and MCLR is high. I am using MPLAB v7.5, Hi Tech C compiler V9.5 PL2 and ICD2 debugger. Having spent a long time on the phone with the local Microchip field tech, I am no further ahead. Has anyone had a similar issue and know how to resolve it. Could there be a bug in MPLAB V7.5 that is not allocating the config bits correctly ? Thanks Regards David -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist