PIC18f2553 clock

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
alanwms
Posts: 67
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 4 times
Been thanked: 17 times
Contact:

PIC18f2553 clock

Post 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
Attachments
Config.jpg
Config.jpg (176.61 KiB) Viewed 3776 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC18f2553 clock

Post 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.

alanwms
Posts: 67
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 4 times
Been thanked: 17 times
Contact:

Re: PIC18f2553 clock

Post 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.
Attachments
Config2.jpg
(206.17 KiB) Downloaded 1439 times

Post Reply