Author |
Message |
Topic: PLL 40 mhz with 18f452 |
povulon
Replies: 11
Views: 25419
|
Forum: General CCS C Discussion Posted: Sun Nov 25, 2018 1:37 am Subject: PLL 40 mhz with 18f452 |
I must admit I was assuming from the long timescale involved in the thread,
that the board would have been powered down at least once since starting
trying...
Key point being made here is that th ... |
Topic: PLL 40 mhz with 18f452 |
povulon
Replies: 11
Views: 25419
|
Forum: General CCS C Discussion Posted: Fri Nov 23, 2018 5:45 am Subject: PLL 40 mhz with 18f452 |
You have a 10MHz crystal?.
Most likely thing is your programmer is not setting the fuses.
Depends on what you are using to program, but in CCSLoad, you need the tickbox in 'options', 'config bits', ... |
Topic: PLL 40 mhz with 18f452 |
povulon
Replies: 11
Views: 25419
|
Forum: General CCS C Discussion Posted: Fri Nov 23, 2018 3:19 am Subject: PLL 40 mhz with 18f452 |
#include <18F452.h>
#fuses H4, NOLVP, NOWDT, NOPROTECT
//Add other fuses you need
#USE DELAY (CLOCK=40MHz)
void main(void)
{
//with a suitable 10MHz crystal, c ... |
Topic: PLL 40 mhz with 18f452 |
povulon
Replies: 11
Views: 25419
|
Forum: General CCS C Discussion Posted: Wed Jan 10, 2018 2:40 pm Subject: PLL 40 mhz with 18f452 |
Hi
I have a 18f452 20 mhz pic.
I want to run it at 40 mhz osc by using 10 mhz crystal.
How I write this program in ccs c ?
Please help me. |
|