View previous topic :: View next topic |
Author |
Message |
skyforme
Joined: 18 Jul 2005 Posts: 14
|
looking for power_pwm excode or explanation. |
Posted: Mon Aug 15, 2005 7:44 am |
|
|
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
|
|
Posted: Mon Aug 15, 2005 8:16 am |
|
|
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. |
Posted: Mon Aug 15, 2005 8:41 am |
|
|
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
|
|
Posted: Mon Aug 15, 2005 11:59 am |
|
|
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? |
|
|
|