Setup Of Device State

Some PIC devices come with an oscillator calibration constant which is pre-programmed into the device’s program memory. Code is automatically placed in the runtime startup code to load this calibration value (see Oscillator Calibration Constants).

If the software stack is being used by the program, the stack pointer (FSR1) is also initialized by the runtime startup code (see Object Size Limits).