Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Internal Oscillator Recalibration

Status
Not open for further replies.

sahu

Advanced Member level 2
Joined
Oct 9, 2009
Messages
516
Helped
67
Reputation
128
Reaction score
61
Trophy points
1,308
Location
Uttar pradesh (INDIA)
Activity points
3,885
Internal Oscillator Recalibration PIC 16f676

Problems arise if by accident or otherwise, the program memory at address 0x3FF is erased or over written. Since the calibration value is unique to each individual PIC there is no way to know what it was, but it may possible to recover it by recalibrating against a known frequency ?
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,273
Trophy points
1,413
Location
Southwest, USA
Activity points
62,491
Re: Internal Oscillator Recalibration PIC 16f676

Problems arise if by accident or otherwise, the program memory at address 0x3FF is erased or over written. Since the calibration value is unique to each individual PIC there is no way to know what it was, but it may possible to recover it by recalibrating against a known frequency ?
Yes.

However, it is a nontrivial affair. The issue arises whenever a PIC 16C Series or any "C" variant, windowed devices, are erased with UV which erases the entire storage of the PIC. Therefore, if the OSC Calibration Value is not recorded before hand, well you've got a problem.

The following is an appnote detailing the recalibration of a PIC with an internal RC OSC:


AN250 Auto-calibration of the PIC12F6XX Internal RC Oscillator to ± 1%

A similar approach can be taken with the 16F Series, however it requires precision calibrated test equipment or a "calibrated" calibration rig.

So record your calibration values! I usually affix a label on the bottom side of the device with the value.
 

ard

Full Member level 5
Joined
May 3, 2009
Messages
252
Helped
52
Reputation
104
Reaction score
50
Trophy points
1,308
Location
Mumbai, India
Activity points
2,783
Re: Internal Oscillator Recalibration PIC 16f676

Or alternately, buy or build a Pickit2; it has a tool to re-generate Osccal values.

Regards,

Anand Dhuru
 

Nick C.

Full Member level 5
Joined
Dec 19, 2002
Messages
281
Helped
33
Reputation
66
Reaction score
25
Trophy points
1,308
Activity points
2,213
Re: Internal Oscillator Recalibration PIC 16f676

Or alternately, buy or build a Pickit2; it has a tool to re-generate Osccal values.
Well, well, well - you learn something new every day. Thanks! :grin:
 

ard

Full Member level 5
Joined
May 3, 2009
Messages
252
Helped
52
Reputation
104
Reaction score
50
Trophy points
1,308
Location
Mumbai, India
Activity points
2,783
Sure thing! I too have gone thru the routine of putting stickers under the chip before I got the Pickit2. No more!

Anand
 

ard

Full Member level 5
Joined
May 3, 2009
Messages
252
Helped
52
Reputation
104
Reaction score
50
Trophy points
1,308
Location
Mumbai, India
Activity points
2,783
Some time back, this issue was discussed on another forum I am a member of. Since not everyone uses Pickit2s, this technique will be handy for those who have lost their OSCCAL values. Although the code is in PBP, its a very simple technique that may be written in any language.

Regenerating OSCCAL

Hope this helps someone...

Regards,

Anand Dhuru
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top