On Thu, Feb 26, 1998 at 05:26:33PM -0600, Calvin wrote: > Does anybody know if the internal oscilator calibration for a 12C5XX can be > restablished (rewritten) from inside a program, and not just at StartUp? Sure - the oscillator calibration is a writable register - the stored value is just a movlw instruction in the last word of the ROM. On reset the chip starts executing from 1FF or wherever, loading the value in W, wraps around to zero where you need a movwf to store into the OSCCAL register. In your program code you can store whatever you like into OSCCAL at any time. -- Clyde Smith-Stubbs | HI-TECH Software Email: clyde@htsoft.com | Phone Fax WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885 PGP: finger clyde@htsoft.com | AUS: +61 7 3354 2411 +61 7 3354 2422 --------------------------------------------------------------------------- ANSI C for the PIC! Now shipping! See www.htsoft.com for more info.