Page 1 of 1

PIC18f2553 clock

Posted: Mon Mar 16, 2015 9:35 pm
by alanwms
Hello Ben:

Running PIC18f2553 with a 48mhz crystal. With a simple test -output on, delay 1 sec, output off - repeat.
I find that the 1 second delay is 3 seconds (I can change that up to 12 seconds by adjusting CPU System Clock Post Scaler.
The indication, to me, is that the configuration settings were incorrect. No matter what I do, I can't get the 1 second flash to be less than 3 seconds.
Can you give me some input? I have attempted to reference the variables in the PIC data, but can't.
Here is my list: (see attachment). :?

96Mhz PLL Prescaler Divide by 12 (48mhz input]
CPU System Clock Postscaler (osc1/osc2 Src: /1[96mhz PLL Src: /2]
Full Speed USB Clock source selection Clock src from osc1/osc2
Oscillator HS: HS+PLL, USB-HS

Re: PIC18f2553 clock

Posted: Tue Mar 17, 2015 3:53 pm
by Benj
Hello,

Is the clock speed project setting also set to 48000000? If it's still on 19660800 then this could explain why you are seeing delays longer than expected.

Your configuration settings look ok to me. Maybe just check that the low voltage program and extended CPU are both set to disabled.

Re: PIC18f2553 clock

Posted: Thu Mar 19, 2015 8:28 pm
by alanwms
The Low program was enabled - The Extended CPU was not relocatable, and I presume that this refers to Extended instruction set enable (Which was enabled).
I set both of these to disable.
LED stays on for > twice the delay value.