Hi Bart,
I tried to erase a 12F629 with IC-Prog and i couldn't, it seems to be smart enough to preserve it. You should be able to read something like 3474 on adress 3FF. If you dont have something that starts with 34 you have managed to erase it. That could have happened if you selected another device like 16F84 and pressed erase. To recover it you need to write a program and measure a frequency very accuratley. Not sure it's worth the trouble for a 2$ chip.
If you want to calibrate your pic, you should add the following code at the beginning of your program. It does the same as "DEFINE OSCCAL_1K 1" would in a PBP program.
/Ingvar
Code:
asm
call 03ffh
bsf STATUS, RP0
movwf OSCCAL
bcf STATUS, RP0
endasm
Bookmarks