Note that the "value" at the calibration address is an "MOVLW xx" instruction. The programming software could be able to identify the value as a valid MOVLW instruction and if not issue the actual error message. If the processor got errased or if it is not readable I guess that the programming software will not se a valid MOVLW instruction. Another thing with these is that on reset the PCL isn't "cleared", it is loaded with the last address of the Flash memory of the actual PIC10 modell. So when the processor reaches the first word (h'000') of the *user* application, W-reg has already been loaded with the OSCCAL value so a simple MOVWF OSCCAL as the very first instruction of the user code will load the factory stored calibration value into the internal osciallator. Jan-Erik. On 2010-10-04 23:23, Barry Gershenfeld wrote: > .. "Invalid OSCCAL Value detected" What exactly is this telling me, othe= r >> than the obvious that it found something it didnt expect. >> > > Presumably if it can't read the chip, it may still try to interpret the > value it got back anyway, which won't make any sense to it. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .