CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

I Can't enable PLLEN on PIC18F87J50 [solved]

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

I Can't enable PLLEN on PIC18F87J50 [solved]
PostPosted: Thu Apr 14, 2011 9:00 am     Reply with quote

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? Question
_________________
Electric Blue
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

I Can't enable PLLEN on PIC18F87J50
PostPosted: Thu Apr 14, 2011 11:49 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group