Arya Kumar
Member level 4
Controller- PIC16f676
Debugger - PICKIT2
Generated hex file via Mikroc compiler
During code flash via PICKIT2 it says Invalid OSCCAL value.
What i learnt about OSCCAL value is:
internal RC oscillator is not as accurate as crystal. To compensate for the inherent inaccuracy, microchip uses a calibration scheme. The speed of the internal RC oscillator can be varied over a small range by changing the value of the OSCCAL register
So i feel i should not have changed my OSCCAL value.
I need following clarification:
OSCCAL value comes with the hex file i genearate , so to not change OSCCAL value should i alter hex file everytime at the last last address?
how to get back old OSCCAL value?
Debugger - PICKIT2
Generated hex file via Mikroc compiler
During code flash via PICKIT2 it says Invalid OSCCAL value.
What i learnt about OSCCAL value is:
internal RC oscillator is not as accurate as crystal. To compensate for the inherent inaccuracy, microchip uses a calibration scheme. The speed of the internal RC oscillator can be varied over a small range by changing the value of the OSCCAL register
So i feel i should not have changed my OSCCAL value.
I need following clarification:
OSCCAL value comes with the hex file i genearate , so to not change OSCCAL value should i alter hex file everytime at the last last address?
how to get back old OSCCAL value?