dsPIC33 and 80Mhz Clock

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

dsPIC33 and 80Mhz Clock

#1 Post by JimKueneman » 19 Nov 2009 06:28

Can someone explain how to get an 80Mhz clock (40Mhz Tcy) with these parts? If you look at the datasheet it shows the output of the PLL to be a max of 80Mhz and the max output of the VCO to be 200Mhz. But if you look at how to calculate N2

N2 = 2*(PLLPOST + 1)

But PLLPOST only can be set down to 2 so N2 has a minimum value of 6.

So going from the PLL output back to the VCO it is 80Mhz*6 which is 480Mhz so it is outside the 200Mhz range of the VCO?

But on the next page it says that the default start up is

N1 = 2;
N2 = 4;
M = 50;

I don't understand this..... what I am I missing?

Thanks,
Jim

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

#2 Post by JimKueneman » 19 Nov 2009 06:32

Also my scope does not agree well with any math that I try.

Jim

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

#3 Post by JimKueneman » 19 Nov 2009 07:16

I get it. The binary value compensates for the equation.

Post Reply

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