- Jun 17, 2019
- Reaction score
- AG User Name
- AG Join Date
- Feb 17, 2013
When I was testing various chips, this was invaluable to restoring the oscal value.
Is there a way to do this manually?It's not necessary for Mayumi - that uses the external clock setting. If you were using the MM3 code then you do need to make sure to restore the cal value if your programmer doesn't do it automatically (this is why some people thought that MM3 was unreliable).
If you know what the correct OSCCAL value is, then you can just put it in the last location in memory as a RETLW instruction (0x34xx where xx is the value) - if you don't, then you either need to tweak the value until it works or use a programmer that can work it out (some the microchip tools have a function for this).Is there a way to do this manually?