Hi , I'm using dspic33fj256gp710 with a 10mhz crystal and mikroc dspic compiler. Now I want to have 40mhz using pll. How can I do this?
Thank you
Regards
David
pll and 10mhz crystal
Ok thank you for answer , but I have another question.womai wrote:Project --> Edit Project, and set the correct device flags (fuse bits). The names of the settings are a bit cryptic, but the programmer software shows them in more human readable format.
1) Where is pll flag? I can't find it on edit project...
2) In clock box , I must set 10mhz or 40mhz using a 10Mhz crystal?
I am not familiar with the dspic33fj256gp710 in particular (so far I have only worked with the dsPIC30F series), so I can't tell you which flag is the right one.
Are you sure it is using a x4 PLL? The dsPIC30F series has a x8 PLL (the x4 PLL is in the PIC18F series).
In any case, in the clock box you enter the actual frequency that the device is running at, not the crystal frequency. So in your case, 40 MHz (assuming 10 MHz crystal and x4 PLL) or 80 MHz (assuming 10 MHz crystal and x8 PLL).
Are you sure it is using a x4 PLL? The dsPIC30F series has a x8 PLL (the x4 PLL is in the PIC18F series).
In any case, in the clock box you enter the actual frequency that the device is running at, not the crystal frequency. So in your case, 40 MHz (assuming 10 MHz crystal and x4 PLL) or 80 MHz (assuming 10 MHz crystal and x8 PLL).