> What does command 1 and 7 do? Anyone know? The reason I am interested, is my > programming software (homebrew) is acting funny. Doing the previous sequence > erases the program memory but not the data memory. In my experience the sequence described by microchip erases code + config memory, and in addition it erases data memory if (and only if) the code protection bit was set.