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

looking for power_pwm excode or explanation.

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



Joined: 18 Jul 2005
Posts: 14

View user's profile Send private message

looking for power_pwm excode or explanation.
PostPosted: Mon Aug 15, 2005 7:44 am     Reply with quote

Hello all.

I am new to ccs and pic.
I am trying to use 18f4431 and trying to power_pwm
because
for me, it looks like that ccp has 2 independent outputs.

however, I could not find any example about power_pwm
and
the exp. of power_pwm looks like self-explanatory for the old user but it's not for me.

Could you help me to explain about power_pwm or
could you post any example code about power_pwm?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Aug 15, 2005 8:16 am     Reply with quote

I would check out Microchip's website. Look for Appnotes on using the pwm modules and also read the datasheet for the PIC.
Guest








Re: looking for power_pwm excode or explanation.
PostPosted: Mon Aug 15, 2005 8:41 am     Reply with quote

skyforme wrote:
Hello all.

I am new to ccs and pic.
I am trying to use 18f4431 and trying to power_pwm
because
for me, it looks like that ccp has 2 independent outputs.

however, I could not find any example about power_pwm
and
the exp. of power_pwm looks like self-explanatory for the old user but it's not for me.

Could you help me to explain about power_pwm or
could you post any example code about power_pwm?


Look at the PICDEM MC User's Manual (from the Microchip website) to learn about using the 18F4431.

If you are only looking for a PIC with 2 independent PWM outputs, then you don't need a 4431. Just look for a PIC that has CCP and ECCP. By operating the CCP in PWM mode, and the ECCP in single PWM mode, then you'll have the two independent PWMs you want.
skyforme



Joined: 18 Jul 2005
Posts: 14

View user's profile Send private message

PostPosted: Mon Aug 15, 2005 11:59 am     Reply with quote

Hello

Thank you for replies.
I need 6 pwm signals that is the reason why I chose 4431.
(ccp can control 2 pwms?)
In addition, I still have confusion about all the parameters and usage of set_power_pwm0_duty and related command - maybe new command of CCS.
There was no ex code and the explanation is so simple.

Could you help me about these command?
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