Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Mon Dec 13, 2010 4:03 pm |
|
|
I don't see the 'internal 16MHz clock. I presume you mean you want a 16MHz CPU clock?.
Looking at the oscillator diagram, you need to use the 8MHz master output from the oscillator block. This has to be selected to feed to the PLL (INTRC_PLL). Then the PLL has to be set to divide this by 2 to give 4MHz (PLL2). You then have to select the PLL output (PLLEN), so you have 48MHz feeding to the USB selector, and LS48MHZ, should then divide this by eight to give the required 6Mhz to the USB.
If you then want a 16MHz CPU clock, you would want CPUDIV3.
Setting these fuses, then compiling, and loading the code with MPLAB, shows the required fuses all set correctly that I can see.
Best Wishes |
|