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

Incomplete Help file?

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



Joined: 27 Jul 2009
Posts: 3

View user's profile Send private message

Incomplete Help file?
PostPosted: Mon Jul 27, 2009 8:41 pm     Reply with quote

I just recently started using CCS and PCWHD, so I may be missing something obvious, but the help file seems incomplete. I'm trying to find some information about the set_power_pwm0_duty() built-in function. It's referenced in the "Motor Control PWM" help article and is mentioned a few times on these forums. It seems like there should be a couple X_power_pwm_X() functions listed in the help file, yet I see none.

Is there any place I can get some more info about these functions?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 27, 2009 8:55 pm     Reply with quote

Look in this file:
Quote:
c:\Program Files\picc\ccsc.chm 3/20/09 9:54:46 AM 999935
Guest








PostPosted: Tue Jul 28, 2009 2:43 pm     Reply with quote

Thanks! That has the info I need for using the functions, however these functions don't seem to be in my compiler. I used this example code from the help file:
Code:
setup_power_pwm(PWM_CLOCK_DIV_4 | PWM_FREE_RUN | PWM_DEAD_CLOCK_DIV_4,1,10000,1000,0,1,0);

This gave me the following error "Undefined identifier -- setup_power_pwm". The help file doesn't mention any needed include files for this function. Does anybody know how I can actually use these functions?
Eric K



Joined: 27 Jul 2009
Posts: 3

View user's profile Send private message

PostPosted: Tue Jul 28, 2009 2:45 pm     Reply with quote

Oops, forgot to sign in before posting. Above post is mine.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 28, 2009 2:46 pm     Reply with quote

Post your PIC and your compiler version.
Eric K



Joined: 27 Jul 2009
Posts: 3

View user's profile Send private message

PostPosted: Tue Jul 28, 2009 3:06 pm     Reply with quote

The PIC is the dsPIC30f4011 and my compiler version is 4.095.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 28, 2009 3:20 pm     Reply with quote

Is that function listed in the .h file for the PIC ? (I don't have PCD,
now that I know what PIC you're using).

The PCD manual lists special motor control PWM functions, such
as setup_motor_pwm(). I believe those are the ones you should
be using. Look in this section of the PCD manual:
Quote:
Motor Control PWM
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