Re: 12F675 - another issue
If your application is not that much timing sensitive, get rid of the DEFINE OSCCAL line.
There's a thread in here showing how to recover the OSCCAL value.
Before ereasing the PIC, you may want to read the OSCCAL value, write it on a label, stick it on the top of your PIC and then set it manually your code.
Same goes for the Bandgap value
Quote:
^Note 1: The Bandgap Calibration bits are factory programmed and must be read and saved prior to erasing
the device as specified in the PIC12F629/675 Programming Specification. These bits are reflected
in an export of the configuration word. Microchip Development Tools maintain all calibration bits to
factory settings.
Re: 12F675 - another issue
Thank You !
...and if I need the DEFINE OSCCAL too ?
What it's the right answer ? NO ?
Re: 12F675 - another issue
Your screen shot only talk about the BandGap, not the OSCCAL. read the PIC and see what's written to 0x3ff, should be something like 3480. If there's a value there, you're up to go.
My feeling is that some less sensitive device programmer software will erase the BandGap value BECAUSE it is located in the CONFIG register... the same who set your configuration fuses... nothing you can really do. However the Bandgap is for BOD and POR you may set them the way you like. I would dare to say to click on YES which seems to say it actually read the existing one BEFORE doing anything 'bad'.