por Bardelli » 31 Dez 2008 08:53
Na verdade eu me referi ao Datasheet e foi exatamente ai que eu fiquei perdido.
Eu estou usando um cristal de 8Mhz. O datasheet me fala que eu tenho que configurar o PLLPRE, PLLDIV e o PLLPOST mas diretamente no compilador C30 não há essas opçoes., tem apenas o Primary Oscilator XT + PLL por isso eu estou sem saber o que fazer.
Meu Dspic é o seguinte: DSPIC33FJ64GP706. Se alguem pudesse me explicar isso eu agradeceria muito.
Texto original em ingles sobre o XT+PLL do datasheet:
For example, suppose a 10 MHz crystal is being used,
with “XT with PLL” being the selected oscillator mode.
If PLLPRE<4:0> = 0, then N1 = 2. This yields a VCO
input of 10/2 = 5 MHz, which is within the acceptable
range of 0.8-8 MHz. If PLLDIV<8:0> = 0x1E, then
M = 32. This yields a VCO output of 5 x 32 = 160 MHz,
which is within the 100-200 MHz range needed.
If PLLPOST<1:0> = 0, then N2 = 2. This provides a
Fosc of 160/2 = 80 MHz. The resultant device operating
speed is 80/2 = 40 MIPS.