Hi, Dave Madden says: > so once CP is set, the part is no longer programmable. (If you're > listening, Microchip, you should add a serial-mode command to do a > bulk erase.) I've found that using the parallel algorithm for bulk erase works in serial mode too. Here is a C code fragment that does this (use your imagination for the functional behaviour of command(), out_word() and delay() :-) command(LDCONF); out_word(0x3FFF); for ( i=0; i<7; ++i ) command(INCADD); command(1); command(7); command(BEGPRG); delay(PRGDLY); command(1); command(7); Hope that helps. David