CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

clock problem on dsPIC33FJ128MC710A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ming16670



Joined: 02 Dec 2011
Posts: 1

View user's profile Send private message

clock problem on dsPIC33FJ128MC710A
PostPosted: Mon Dec 05, 2011 4:22 am     Reply with quote

Hello everybody,
I am having my first experience with dsPIc. So, I am developing a board with dSPIC33FJ128MC710A and a 8 Mhz crystal. I would like to run the mcu at 40 MIPS, but the code I wrote doesn't work!
Here is the test code that doesn't work:

Code:

#include <33FJ128MC710.h>
#fuses PR_PLL,NODEBUG,NOWDT,NOPROTECT,NOIESO
#use delay(clock = 80M, crystal = 8M)

void main() {
   do {
   output_high(PIN_G15);
    delay_ms(3000);
 output_low(PIN_G15);
   delay_ms(3000);

   } while (TRUE);         
}

What is wrong? Can anybody help me about this trouble?... Or better... can anybody send me a working test code by which the mcu can run at 40 MIPS?

Than you everybody!
Marqueses



Joined: 30 Nov 2011
Posts: 6

View user's profile Send private message

PostPosted: Thu Dec 15, 2011 3:54 am     Reply with quote

Hello,

i´m having the same problem, but with the dspic33fj128mc802. I´m trying to make it run at 40MHz with the PLL, but it doesn´t work.

In your code, maybe fail because you don´t put HS in the fuses. If it works, please put your code to see how is it.

Thanks.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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