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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: PWM frequency incorrect
cell514

Replies: 8
Views: 8686

PostForum: General CCS C Discussion   Posted: Wed Sep 09, 2009 8:12 pm   Subject: PWM frequency incorrect
Compiler version: 4.088

I'm running a simulator; Proteus



Perhaps note that you are setting up ccp1, then setting the pulse width on ccp2....

Best Wishes

I know... okay, tomorrow I'm p ...
  Topic: PWM frequency incorrect
cell514

Replies: 8
Views: 8686

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2009 8:17 pm   Subject: PWM frequency incorrect
How about consulting the CCS C manual regarding set_pwm2_duty()? It knows about 10 bit pwm resolution...

hmm.. I tried already and it doesn't work. Also tried the L (typecast) and didn't work eithe ...
  Topic: PWM frequency incorrect
cell514

Replies: 8
Views: 8686

PostForum: General CCS C Discussion   Posted: Mon Sep 07, 2009 8:32 pm   Subject: PWM frequency incorrect
You were right thanks, it was a software problem; frequency is ok now (I were using ISIS 7 software).

However, now the duty cycle is incorrect. Pwm high value is (and stays at) 50us for T=200us. An ...
  Topic: PWM frequency incorrect
cell514

Replies: 8
Views: 8686

PostForum: General CCS C Discussion   Posted: Sat Sep 05, 2009 11:53 pm   Subject: PWM frequency incorrect
I read the following thread and used the formula shown;
http://www.ccsinfo.com/forum/viewtopic.php?t=17993

But still my coding doesn't work. I'm using a 20mhz crystal and I want to obtain a 5khz p ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group