homemade24
New Member
I just added
bsf STATUS, RP0 ;Bank 1
call 3FFh ;Get the cal value
movwf OSCCAL ;Calibrate
bcf STATUS, RP0 ;Bank 0
had to to get the code working right
If I'm thinking right (that's scary) depending were you put this in the code
the clock could only be recal @ programming or could be recal everytime the chip is powered up. if so which is the standard way of doing it. and is it a problem if you recal every time the chip is powered up
thanks
bsf STATUS, RP0 ;Bank 1
call 3FFh ;Get the cal value
movwf OSCCAL ;Calibrate
bcf STATUS, RP0 ;Bank 0
had to to get the code working right
If I'm thinking right (that's scary) depending were you put this in the code
the clock could only be recal @ programming or could be recal everytime the chip is powered up. if so which is the standard way of doing it. and is it a problem if you recal every time the chip is powered up
thanks