View previous topic :: View next topic |
Author |
Message |
Eric K
Joined: 27 Jul 2009 Posts: 3
|
Incomplete Help file? |
Posted: Mon Jul 27, 2009 8:41 pm |
|
|
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
|
|
Posted: Mon Jul 27, 2009 8:55 pm |
|
|
Look in this file:
Quote: | c:\Program Files\picc\ccsc.chm 3/20/09 9:54:46 AM 999935 |
|
|
|
Guest
|
|
Posted: Tue Jul 28, 2009 2:43 pm |
|
|
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
|
|
Posted: Tue Jul 28, 2009 2:45 pm |
|
|
Oops, forgot to sign in before posting. Above post is mine. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jul 28, 2009 2:46 pm |
|
|
Post your PIC and your compiler version. |
|
|
Eric K
Joined: 27 Jul 2009 Posts: 3
|
|
Posted: Tue Jul 28, 2009 3:06 pm |
|
|
The PIC is the dsPIC30f4011 and my compiler version is 4.095. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jul 28, 2009 3:20 pm |
|
|
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:
|
|
|
|