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 3 matches
CCS Forum Index
Author Message
  Topic: problem with pwm
kind2011

Replies: 7
Views: 6885

PostForum: General CCS C Discussion   Posted: Tue Dec 11, 2012 4:16 pm   Subject: problem with pwm
Thanks! there's a way to change the period of pwm without changing the
duty ?
  Topic: problem with pwm
kind2011

Replies: 7
Views: 6885

PostForum: General CCS C Discussion   Posted: Sun Dec 09, 2012 9:54 pm   Subject: problem with pwm
I forgot to set the duty,
this is the complete code and compilable:

#include <18F4550.h>
#device adc=10
#fuses HSPLL,WDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN, PUT
#use delay ...
  Topic: problem with pwm
kind2011

Replies: 7
Views: 6885

PostForum: General CCS C Discussion   Posted: Sun Dec 09, 2012 5:16 pm   Subject: problem with pwm
I have a simple code that I expect to generate a pwm with 11khz and 50% duty but isn't, it only works when I change the timer setup for:
setup_timer_2(T2_DIV_BY_16,244,1);
It generates a a ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group