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

PIC18F26K20 Internal Oscillator and ICD-U64 Debugger

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



Joined: 16 Aug 2010
Posts: 95

View user's profile Send private message

PIC18F26K20 Internal Oscillator and ICD-U64 Debugger
PostPosted: Mon Nov 08, 2010 9:10 pm     Reply with quote

Hi, testing out a PIC18F26K20 With 4.110 compiler. Running into to some
wierdness with the clock speed reported by the debugger.

Using an external crystal of 10Mhz and enabling the 4x internall PLL the
debugger reports connected at 40Mhz, Works good.
Code:

#use delay(crystal=10Mhz, clock=40Mhz, ) //10MHZ Crystal 4XPLL Enabled

Using the internal oscillator and config for either 8mhz, or 16mhz internal
clock the cpu clock speed gets reported to be running at 1Mhz.
Code:

#use delay (INTERNAL = 8MHZ)
#use delay (INTERNAL = 16MHZ)

Will ICD-U64 use the right cpu speed when the internal oscillator is
enabled on the PIC, or is it normal for it to default to 1MHZ clock speed.

Thanks Scott.
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Tue Nov 09, 2010 5:07 am     Reply with quote

I have seen this before when using the internal osc. It might be that the freq is measured by the U64 debugger before the internal osc has come up.
Anyway apart from the spurious reporting of the freq it worked well.
Sergeant82d



Joined: 01 Nov 2009
Posts: 55
Location: Central Oklahoma

View user's profile Send private message

PostPosted: Tue Nov 09, 2010 11:10 am     Reply with quote

I have run into a similar problem with the 18F87K22; I have not figured out a solution, though I saw a hint I'm going to look into later this week here:

http://www.ccsinfo.com/forum/viewtopic.php?t=43727

Good luck! There are many bugs in the compiler for these newer chips, it will take a while for them to all get sorted out.
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