$OSCCAL – Activates or deactivates OSCCAL processor feature

Language reference ›› Directives ››
Parent Previous Next

osccal-directive = $OSCCAL directive-toggle .


Define the startup initialization behavior for the processor's oscillator calibration feature.


For processors that have an Oscillator Calibration feature, tells the compiler to generate code at reset to get calibration value in the W register and to set-up the OSCCAL register.


Cannot be used after startup code generation (in program main block).


Default is OFF.


{$OSCCAL ON}