> picprg_cmdw_send (pr, 16, 0, stat); {do remaining cycles of NOP} Thanx, that was my error: I overlooked that the 16 data bits must still be clocked in *after* the programming delay. For code and data I used a different piece of code anywway because the clock must remain high, so the problem appeared only for eeprom. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body