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

a way to use 4 pwm ch's on 16F684?

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



Joined: 14 Apr 2004
Posts: 5

View user's profile Send private message

a way to use 4 pwm ch's on 16F684?
PostPosted: Sat Dec 17, 2005 6:33 am     Reply with quote

Hi,

Is there a way to use the 4 ( or more than 1) channels of 16F684 individually? I mean can we use 4 different duty_cycles for each ch?
Has any body deal with it or saw any info about it?

Be well, all.
Ttelmah
Guest







PostPosted: Sat Dec 17, 2005 3:38 pm     Reply with quote

There are not four PWM channels on the 684.
What it offers, is 'full bridge' mode, and in this, four output pins are available, _but only two can be used at a time_, with just one PWM timer source. There is just one set of PWM timing registers. These modes are supported by CCS. It only has one CCP.
I'm afraid if you want four (or even two) properly seperate PWM times, you need to look at another chip...

Best Wishes
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Mon Dec 19, 2005 10:02 am     Reply with quote

What kind of duty cycle are you looking for? A timer interrupt could be used to realize 4 PWM outputs. It depends on how critical the timing must be. If you want ms on / off times, then a 16f84 on a 20 mhz crystal and using timer0 interrupt ought to get you some nice PWM outputs....
cagacug



Joined: 14 Apr 2004
Posts: 5

View user's profile Send private message

PostPosted: Mon Dec 19, 2005 10:44 am     Reply with quote

Thanks.
I already written software version, but if the hardware ones can be used it will good of course Smile
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