Hi all, Found the problem. It appears I had a loose connection on the IC socket I was using. It was an intermitent problem whereby if an IC pin was in the socket a large amount of pressure was needed to make the connection. Strangely, if there was not pin in the socket the connection was fine. Hence getting 5v from the socket with no pin in place but 0.5v if it is (presumably voltage coming through to VDD pin through the PIC- ouch!). I found eventually that pressing hard down onto the top of the PIC sorted it, but I'm off to buy a ZIP socket now to sort it out once and for all. That particular PIC is resigned to R+D now, what with VDD sourcing voltage(!) and being pushed around. The second problem I encountered was that I had set the code protect bit during programming (how stupid am I?). This meant I read 0000 for all the program data segments. I assumed there would be some kind of warning from the program if you tried to read a code protected chip. Oh well. So all sorted at last! Ben -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body