Page 1 of 1

Internal Quartz and PLL

Posted: Thu Jun 10, 2010 7:24 pm
by squall315
Hi Lubin, I already told you but i write it there to give the solution to everyone

If you want to use the internal quartz with a dspic33fj128gp802/804 (maybe you will have the same problem with others micro-controllers but i tested these two), the PLL value is not taken into account which prevents you from choosing the number of instructions you want.

The solution i found is to go into the main source file created when you compile and change _FOSCSEL( FNOSC_FRC & IESO_OFF & 0xFFFF ) by _FOSCSEL( FNOSC_FRCPLL & IESO_OFF & 0xFFFF ).

All the others registers to select the different prescalers are correct so you should have the right number of MIPS.