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

Oscillator Calibratiom problem

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



Joined: 06 Mar 2007
Posts: 92
Location: Pune,India

View user's profile Send private message AIM Address Yahoo Messenger

Oscillator Calibratiom problem
PostPosted: Wed Mar 14, 2007 9:39 pm     Reply with quote

Dear sir,
here i am using 16f684 with MPLAB 7.5 V & CCS PCM C Compiler, Version 3.249, 34534.


So, My problem is how to assign OSCILLATOR CALIBRATION Freq. to 16f684.
In 12f629 i assign like this,
#byte osccal = 0x90
......
.....

#asm
call 0x03ff
movwf osccal
#endasm
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 14, 2007 10:05 pm     Reply with quote

The 16F684 doesn't have an OSCCAL register, so there is no factory
calibration value at the end of program memory.

It does have an OSCTUNE register, but you don't need to use it.
The internal oscillator is tuned at the Microchip factory. I assume
it's done by laser trimming.
deepakomanna



Joined: 06 Mar 2007
Posts: 92
Location: Pune,India

View user's profile Send private message AIM Address Yahoo Messenger

thanks
PostPosted: Wed Mar 14, 2007 11:28 pm     Reply with quote

Dear sir,
Thank you very for ur help,now i will go to write my remaining source code.

Thank You,
With Best Regards,
Deepak.
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