E_Blue
Joined: 13 Apr 2011 Posts: 417
|
I Can't enable PLLEN on PIC18F87J50 [solved] |
Posted: Thu Apr 14, 2011 9:00 am |
|
|
The main OSC is an 8MHz crystal, and I'm debugging with an ICD3 debugger.
Code: | #include <18F67J50.h>
#fuses HS,PLL2,CPUDIV2,NOIESO,NOFCMEN,STVREN,CCP2E7,NOWDT,NOPROTECT
#use delay(clock=48M)
#BYTE OSCTUNE = 0xF9B
#BIT PLLEN=OSCTUNE.6
void Main (void)
{
OSCTUNE=0x40;
while(1)
{
output_toggle(PowerLed);
delay_ms(500);
}
}
|
Did I forgot something? _________________ Electric Blue |
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
I Can't enable PLLEN on PIC18F87J50 |
Posted: Thu Apr 14, 2011 11:49 am |
|
|
Solved, the fuse must be H4_SW instead HS.
H4_SW generates confusion, at least for me, because nowhere does not say anything about the PLL.
Anyway thanks! _________________ Electric Blue |
|