Internal Quartz and PLL

Post Reply
squall315
Posts: 4
Joined: Thu Jun 10, 2010 7:18 pm

Internal Quartz and PLL

Post by squall315 » Thu Jun 10, 2010 7:24 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests