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

PWM(Enhanced) on 16F690 using CCS C compiler 4.038

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







PWM(Enhanced) on 16F690 using CCS C compiler 4.038
PostPosted: Wed Jul 08, 2009 2:56 am     Reply with quote

HOw can I use the all the 4 PWM channels to work in independently using enhanced pwm with pulse steering mode so that I can control the four channels with different duty cycle. Kindly provide a solution as soon as possible as I am in a dangerous situation of loosing my Job. I have to use one PWM for battery charging, another for load control, another 2 channels for the current control. Kindly provide a solution.
Ttelmah
Guest







PostPosted: Wed Jul 08, 2009 4:37 am     Reply with quote

You can't.
Get away from the idea of having 4 PWM channels. MicroChip, is unfortunately slightly less than clear in it's wording about this....
You have _one_ PWM channel, with up to four outputs.
Because there is only one PWM channel, you can develop only _one_ pulse width at a time. You can 'steer' this to the different pins, but while one pin is driven with a particular duty cycle, the others _will_ be idle (left either high, or low).

You need to select a chip that has four independant PWM duty cycle generators.

Best Wishes
YASINJI
Guest







PostPosted: Thu Jul 09, 2009 5:45 am     Reply with quote

can u kindly suggest a device with four independent duty cycle generators
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 09, 2009 1:47 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=37738
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jul 09, 2009 2:53 pm     Reply with quote

As a further comment, do not use v4.038! This is a very unstable release. Read the sticky v4 thread on top of this forum for more info, but it comes down to CCS having released a lot of alpha versions before the compiler became more or less usable around version 4.065.
Guest








PostPosted: Fri Jul 10, 2009 4:00 am     Reply with quote

YASINJI wrote:
can u kindly suggest a device with four independent duty cycle generators


Can anyone suggest a PIC microcontroller in 16F series in range of 2-3 $
with four independent duty cycle generator Please?
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 10:14 am     Reply with quote

Try using the Microchip Advanced Part Selector...

http://www.microchip.com/maps/microcontroller.aspx
_________________
Google and Forum Search are some of your best tools!!!!
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