1 Attachment(s)
Re: It's been a long time!!!
you have not really provided any clue at all to what you problem is
but looking at the data sheet osc description I doubt that
DEFINE OSC 48
is correct
they way I see it it needs to be
DEFINE OSC 24
the x3 pll is followed by a /2 stage and the 48mhz only goes to the usb module
Re: It's been a long time!!!
Is that "n" a typo? You have 2 like that.
Robert
1 Attachment(s)
Re: It's been a long time!!!
Thanks for the replies.
The problem is, I can't even get an LED to blink. Does not come on at all, much less blink.
Just trying to figure out the basics with this chip.
According to this chart, using the internal OSC with 3x PLL and no clock divider, it should be at 48MHz if I am understanding it correctly.
CONFIG FOSC=INTOSCIO
CONFIG PLLSEL=PLL3X
CONFIG CPUDIV=NOCLKDIV
Attachment 7677
Also, nPWRTEN, and nLPBOR are valid parameters in the PIC18F24K50.PBPINC file.
Re: It's been a long time!!!
ok looks like 48mhz clock is more likely to be correct , the table makes no mention of the /4 option as depicted in the osc diagram fig 3.1 ,and a 0 divide option seems more probable
what are you using to pgm the chip , its not holding mclr low or something easy like that . pwr ok ? led works ?
Re: It's been a long time!!!
OSCCON = %01110010
might by worth a try
Re: It's been a long time!!!
Try reversing the order:
OSCCON must always precede OSCTUNE
Been there done that.
Norm
Re: It's been a long time!!!
Quote:
Originally Posted by
Normnet
Try reversing the order:
OSCCON must always precede OSCTUNE
Been there done that.
Norm
Have you had a chance to try the above?
This issue also came up on another forum.
Norm
Re: It's been a long time!!!
I tried swapping the two lines and it did not make a difference. But, I have come to the conclusion I either have a faulty chip/board or the bootloader is not actually sending the program to the chip.