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
Posted: Fri Dec 14, 2012 7:12 am
That's right, just need to remember is to include PLL
Code:
#FUSES PLL96MHZ
Damaso
Joined: 07 Nov 2012 Posts: 11
Posted: Mon Dec 17, 2012 6:35 am
With that additional fuse, does the code run at 20MHz? And does the USB module works correctly?
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