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 CCS Technical Support

PIC24FJ USB FUSES

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



Joined: 07 Nov 2012
Posts: 11

View user's profile Send private message

PIC24FJ USB FUSES
PostPosted: Fri Dec 14, 2012 6:06 am     Reply with quote

I'm starting a simple project using a PIC24FJ128GB106 with USB support and I'm a little lost on which fuses should I use and why. I'm going to use an external 20MHz crystal, so I suppose I need to divide it by 5.
I'm not sure if these are correct:

#FUSES NOWDT //No Watch Dog Timer
#FUSES ICSP2 //ICD uses PGC2/PGD2 pins
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOIOL1WAY //Allows multiple reconfigurations of peripheral pins
#FUSES NOCKSFSM //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES PR_PLL //Primary Oscillator with PLL
#FUSES PLL5 //Divide By 5(20MHz oscillator input)
#FUSES NOIESO //Internal External Switch Over mode disabled

#use delay(clock=20000000)
tae



Joined: 15 Jan 2010
Posts: 11

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 7:12 am     Reply with quote

That's right, just need to remember is to include PLL
Code:
#FUSES PLL96MHZ
Damaso



Joined: 07 Nov 2012
Posts: 11

View user's profile Send private message

PostPosted: Mon Dec 17, 2012 6:35 am     Reply with quote

With that additional fuse, does the code run at 20MHz? And does the USB module works correctly?
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