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

How does the ICD know oscillator frequency?

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



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

How does the ICD know oscillator frequency?
PostPosted: Fri Sep 24, 2004 3:17 am     Reply with quote

Hi all,
Does anyone know how the ICD + IDE works out the oscillator frequency of the target?

Will
Guest








PostPosted: Tue Sep 28, 2004 6:48 am     Reply with quote

It does not. When you load the data it's taken from the .H file.
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Tue Sep 28, 2004 1:39 pm     Reply with quote

It appears to get it from hardware. If you change the delay statement in the .h it still reads the actual clock rate from the PIC (I am using a U40).

It knows for instance when you enable the PLL x4 in the PIC18 and more importantly if it’s actually active. I have problems a while ago with a new crystal being too strong to lock the PLL, the ICD correctly knew the PIC’s operating speed was just x1 and not x4 the crystal speed!
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