Todd Peterson wrote: > I have tried many different calibration values (FF, E0, CD), and > none of them seem to change the period of a pin I am toggling on an > output port and watching with a scope. A one ms signal is .8 ms > long. > > I am using a CCS compiler, and am beginning to think the problem > might lie within its delay routine, as I cannot see what else might > be wrong. However, the compiler's delay routines have worked well > before, and it is odd that changing the cal. constant wouldn't > change the pin toggle rate. > > Suggestions, anyone? Todd: Does the CCS compiler have explicit support for the 12C508? If not, and if it's just generating 16C5x code, it may be overwriting the OSCCAL value as part of its built-in PORTA initialization (on the 12C50x, register 5 holds the OSCCAL value; on the 16C5x, that register holds the PORTA value). Just a thought... -Andy === Andrew Warren - fastfwd@ix.netcom.com === === Fast Forward Engineering - Vista, California === === === === Custodian of the PICLIST Fund -- For more info, see: === === http://www.geocities.com/SiliconValley/2499/fund.html ===