Glen wrote: > i have a 12c508jw & have tried to read the osscal value prior to > programming it. i can't find the osscal code when i read the pic > when using picprog. it just shows all F's If you erased it, then this is what I would expect. Read it before erasing it. If it's too late, then bad luck. Either buy another one, or ask around for the procedure to re-create it using a test jig. > since i'll have to install a calibration constant at the beginning of > the program (because its a 12c508jw) is this the correct way? No. It should go at the last code location as described in the data sheets. The instruction should be the "movlw" there, and the "movwf" should be at 0x00. -- James Cameron (quozl@us.netrek.org) Linux, Firewalls, OpenVMS, Software Engineering, CGI, HTTP, X, C, FORTH, COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers, Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control, Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband. "Specialisation is for insects." -- Robert Heinlein.