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 CCS Technical Support

Search found 6 matches
CCS Forum Index
Author Message
  Topic: How to setup oscillator in dsPIC30f2011
megabytron

Replies: 9
Views: 19174

PostForum: General CCS C Discussion   Posted: Sun Nov 07, 2010 7:10 pm   Subject: How to setup oscillator in dsPIC30f2011
That's correct chuckero I use:


Sample Code for setting fuses for FRC Internal Oscillator mode
#fuses FRC, NOWDT
#use delay(clock=7370000) // Internal FRC clock of 7.37 Mhz is used

Ch ...
  Topic: How to setup oscillator in dsPIC30f2011
megabytron

Replies: 9
Views: 19174

PostForum: General CCS C Discussion   Posted: Sat Nov 06, 2010 11:19 am   Subject: How to setup oscillator in dsPIC30f2011
Chuckero,

Check the page 124 of the datasheet 30F2011 from Microchip.

If you use 4 MHz-10 MHz crystal on OSC1:OSC2, the oscillator mode will be XT so:

#include <30F2011.h>
#fuses XT, N ...
  Topic: About dspic33FJ128MC802
megabytron

Replies: 8
Views: 16282

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 8:41 pm   Subject: About dspic33FJ128MC802
Mr. FvM, you are right!

Now I compile in version 4.110, and is working!

my code is this:

setup_motor_pwm(1,MPWM_FREE_RUN | MPWM_SYNC_OVERRIDES, 50000);
set_motor_unit( 1,MPW ...
  Topic: About dspic33FJ128MC802
megabytron

Replies: 8
Views: 16282

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 4:56 pm   Subject: About dspic33FJ128MC802
My version is 4.088,

Now I'm trying with set_compare_time:

int16 OCR_2 = 0x1000;
int16 OCRS_2 = 0x5C4B;

set_compare_time(2, OCR_2, OCRS_2);
setup_compare(2, COMPARE_SINGLE_PULS ...
  Topic: About dspic33FJ128MC802
megabytron

Replies: 8
Views: 16282

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 2:57 pm   Subject: About dspic33FJ128MC802
That's the problem, I think for this I can use the setup_motor_pwm(), but this instruction is an "Undefined Identifier" when I compile, so I don't know how can I fix this?

Thanks FvM,

...
  Topic: About dspic33FJ128MC802
megabytron

Replies: 8
Views: 16282

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 2:26 pm   Subject: About dspic33FJ128MC802
Hello,

I'm starting with the dspic33FJ128MC802 but I can't use the PWM Crying or Very sad with this chip, I'm lost with this, I dont know if the 33FJ128MC802.h is complete or not?

Has anyone worked or is w ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group