Ops... Error in code! It should read: #pragma update_RP = 0 // Switch off RPx update RP0=1; RP1=1; // Set bank EECON2=0x55; // Required sequence (Check data book) Sorry about that. Dag Bakken -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.