|
|
View previous topic :: View next topic |
Author |
Message |
ormiga Guest
|
PCD: XT_PLL8 problem |
Posted: Thu Jan 22, 2009 9:15 pm |
|
|
Hi all,
I'm trying to use the XT_PLL8 with a 10Hz crystal but the target (DSPIC30F4013) don't work. When i use #FUSES XT and delay clock = 10000000 it works fine.
c.v. = 4.057
Code: | #include <30F4013.h>
#device ICD=TRUE
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES XT_PLL8 //XT Crystal Oscillator mode with 16X PLL
#FUSES PR //Promiary Oscillator
#FUSES NOCKSFSM //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES DEBUG //Debug mode for use with ICD
#FUSES BROWNOUT //Reset when brownout detected
#FUSES BORV27 //Brownout reset at 2.7V
#FUSES LPOL_HIGH //Low-Side Transistors Polarity is Active-High (PWM 0,2,4 and 6)
//PWM module low side output pins have active high output polar
#FUSES HPOL_HIGH //High-Side Transistors Polarity is Active-High (PWM 1,3,5 and 7)
//PWM module high side output pins have active high output polarity
#FUSES NOPWMPIN //PWM outputs drive active state upon Reset
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOWRT //Program memory not write protected
#FUSES DEBUG //Debug mode for use with ICD
#use delay(clock=80000000)
#use rs232(baud=9600,parity=N,xmit=PIN_F3,rcv=PIN_F2,bits=8,stream=pc)
//#use rs232(baud=9600,parity=N,xmit=PIN_B0,rcv=PIN_B0,bits=8)
|
Can anyone help me?
Thanks in advance |
|
|
Tre42 Guest
|
Maybe same problem? |
Posted: Thu Jan 22, 2009 11:50 pm |
|
|
I noticed that on the 30F6012A yesterday when I tried to compile with the XT x 16 PLL fuse, MPLAB said that the fuse is incorrect and wouldn't load it. I finally just gave in and used the XT setting |
|
|
ormiga Guest
|
|
Posted: Fri Jan 23, 2009 7:02 am |
|
|
I can compile the code, but my application don't work. |
|
|
Tre42 Guest
|
Compiler Update |
Posted: Mon Jan 26, 2009 2:48 pm |
|
|
Problem was fixed by updating to a newer version of the compiler. Apparently I had been using a relatively old version and when I saw the list of changes it made me cringe with all of the PCD updates. |
|
|
diogoc
Joined: 12 Feb 2008 Posts: 19
|
|
Posted: Thu Mar 05, 2009 6:24 am |
|
|
hi,
what version you use now? I use v4.084 and still have problems with oscillator configuration |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|