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
PIC18f2553 clock
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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.
I set both of these to disable.
LED stays on for > twice the delay value.
- Attachments
-
- Config2.jpg
- (206.17 KiB) Downloaded 1439 times