View previous topic :: View next topic |
Author |
Message |
picprogrammer
Joined: 10 Sep 2003 Posts: 35
|
18F2431 Pwm |
Posted: Tue May 22, 2007 1:45 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Tue May 22, 2007 1:57 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|