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

18F2431 Pwm

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



Joined: 10 Sep 2003
Posts: 35

View user's profile Send private message

18F2431 Pwm
PostPosted: Tue May 22, 2007 1:45 pm     Reply with quote

On the datasheet of the 18F2331/ 18F2431 i can see PWM0 up to PWM5.
But i cannot use: set_pwm3_duty() More than 2 is not possible, the device has 6 pwm outputs or do i misunderstand something?

Mark.
Ttelmah
Guest







PostPosted: Tue May 22, 2007 1:57 pm     Reply with quote

Look at the functions 'set_power_pwmX_duty'.
The power PWM generators, have different setup requirements, from the normal PWM generators, and use different setup commands. The chip has tw normal CCP/PWM modules, and then on top of this, four power PWM generators (only 3 on the 2x31 chips).
You don't say what compiler version?. On the current versions, the power functions work, but on some older versions, there were problems with these.

Best Wishes
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