pll and 10mhz crystal

General discussion on mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
doppiad
Posts: 11
Joined: 14 May 2009 20:25

pll and 10mhz crystal

#1 Post by doppiad » 06 Oct 2009 20:05

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

womai
Posts: 239
Joined: 16 Apr 2008 07:45

#2 Post by womai » 06 Oct 2009 21:03

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.

doppiad
Posts: 11
Joined: 14 May 2009 20:25

#3 Post by doppiad » 06 Oct 2009 21:42

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.
Ok thank you for answer , but I have another question.

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?

womai
Posts: 239
Joined: 16 Apr 2008 07:45

#4 Post by womai » 07 Oct 2009 01:42

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).

doppiad
Posts: 11
Joined: 14 May 2009 20:25

#5 Post by doppiad » 07 Oct 2009 19:16

Thank you. I set flag manually on compiler to perform 40mips.

Thanks again :D

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 General”