CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Reading the calibration code 12F629

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Yomi
Guest







Reading the calibration code 12F629
PostPosted: Tue Nov 23, 2004 9:14 am     Reply with quote

Can someone tell me please how can I read the calibration value from a new 12F629 device?
I use the CCS : ICD-U40 latest version.
If I don't write to this address just download my program, does the ICD-U40 erase the calibration value?

Thanks.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 23, 2004 10:26 am     Reply with quote

It is the last program memory address. Most if not all programmers and ICD's protect this location for you. That is, they read the value, erase the chip and reprogram it back.
yomi
Guest







PostPosted: Wed Nov 24, 2004 6:06 am     Reply with quote

Mark,

Thanks for your reply.
Isn't there a way just to read the value (without changing it)?
Is this code necessary:

Code:
   #asm
      call  0x3FF //**Call will return CAL value to W reg
      movwf 0x90  //Move CAL value from W to OSCCAL reg
   #endasm
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Nov 24, 2004 7:13 am     Reply with quote

That is the code required to put the value in the OCCCAL reg. What is your goal?
Yomi
Guest







PostPosted: Fri Nov 26, 2004 3:52 am     Reply with quote

The goal is to keep the calibration frequency after I download my code, or after complete erase of the chip.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Nov 26, 2004 1:08 pm     Reply with quote

Quote:
Most if not all programmers and ICD's protect this location for you. That is, they read the value, erase the chip and reprogram it back.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group