Reset, Restore, or Modify ???
Hi,
First ... restoring ( when genuine value is lost) an Osccal value is not so simple.
The simplest way is to use the Pickit2 ( from µChip ) that has this feature already automated ( see the price, and talk after ... LoL )
Now Reset ... I suppose it is to write the genuine value to its location ...
0x3430 means RETLW 30 ( value is $30 )
DEFINE OSCCAL is just to tell the Pic to read the Osccal value ( does not write anything )
so, you could use
************************************************** ***************************
END
'************************************************* ****************************
@ ORG 3FFh
@ RETLW 30h
at the end of your program.
Note the two last lines must be placed AFTER the END !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks