'12C509- calibration value question'
Kennedy, William L
If the cal value has been erased, can it be re-programmed? Can this value
be seen by reading the chip?
On Tue, Jun 22, 1999 at 02:51:58PM -0400, Kennedy, William L wrote:
> If the cal value has been erased, can it be re-programmed?
If you know what it is, yes.
> Can this value
> be seen by reading the chip?
Yes, that's usually how you get to find out what it is (hopefully you did
it *before* erasure!)
I have seen some code somewhere to re-calibrate a chip.
Clyde Smith-Stubbs | HI-TECH Software
Email: htsoft.com | Phone Fax clyde
WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885
PGP: finger htsoft.com | AUS: +61 7 3355 8333 +61 7 3355 8334 clyde
HI-TECH C: compiling the real world.
|At 01:51 PM 6/22/99 , you wrote:
>If the cal value has been erased, can it be re-programmed? Can this value
>be seen by reading the chip?
You can read the value BEFORE erasing the chip. In fact, you MUST read it
so that you can restore this location before each programming of the device.
Most software will allow you to read this location. PicWriter also lets
you store it to a file for later retrieval (a minor point with single
calibration value chips like this...more of an issue with the 14000 which
has dozens of calibration locations).
If you erased the device before recording the calibration value, you have
1. Use a mid-range calibration value if accuracy is not at all important or
if you are not using the internal oscillation modes.
2. Use an iterative approach to zero-in on the correct value if accuracy is
not TOO important.
If accuracy IS IMPORTANT, you would not be using the internal OSC so the
calibration value is irrelevant, mid range would be fine.
The calibration value is actually an instruction 'movlw #xx', where 'xx'
is determined empirically. 0x80 is presumably the middle of the range.
With a proper calibration value, the internal oscillator can vary +- 20%.
With the wrong value it could vary by ?% (some have said +100% - 50%????).
FAX: (972) 494-5814
PO Box 462101
Garland, TX 75046-2101
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...