Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Have to enter wrong frequency in settings [solved]
#3
Hi Donheli,

If i guess correctly, you did not change the N1, N2 & M values for the PLL configuration (CLKDIV and PLLFBD registers)
So if it's the case, you're wrong with the Fosc calculation.

With :

Fin (crystal) = 7.375MHz
N1(default) = 2
N2(default) = 4
M(default) = 50

You will get :
Fref = Fin / N1 = 3.6875MHz (OK, 0.8MHz < Fref < 8MHz)
Fvo = (Fin * M) / N1 = 184.375MHz (OK, 100MHz < Fvco < 200MHz)
Fosc = (Fin * M) / (N1 * N2) = 46.09375MHz (OK, 12.5MHz < Fosc < 80MHz)
Fcy = Fosc / 2 = 23.046875MHz

so try with :
.equ FCY, 23046875

Hope it helps
Skymixer
Reply


Messages In This Thread
RE: Have to enter wrong frequency in settings - by Skymixer - 2011-04-13, 22:56:27

Forum Jump:


Users browsing this thread: 1 Guest(s)