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

ECCP

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







ECCP
PostPosted: Thu Sep 14, 2006 5:45 am     Reply with quote

Dear Sir,

Anyone give an example for using ordinary PWM (single output from p1A ) when the microcontroller( PIC16f690) is equiped with ECCP.

following code does not work.
//////////////////////////////////////////////////
long value;
value=500;

set_tris_c(0x00);
setup_timer_2(T2_DIV_BY_16,253,1);
setup_ccp1(CCP_PWM);
set_pwm1_duty(value);
while(1);
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