View previous topic :: View next topic |
Author |
Message |
scottc
Joined: 16 Aug 2010 Posts: 95
|
PIC18F26K20 Internal Oscillator and ICD-U64 Debugger |
Posted: Mon Nov 08, 2010 9:10 pm |
|
|
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
|
|
Posted: Tue Nov 09, 2010 5:07 am |
|
|
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
|
|
Posted: Tue Nov 09, 2010 11:10 am |
|
|
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. |
|
|
|