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

16f684 PWM

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



Joined: 09 Dec 2006
Posts: 2

View user's profile Send private message

16f684 PWM
PostPosted: Sat Dec 09, 2006 8:52 pm     Reply with quote

I seem to be having problems migrating code from a 16F628A to a 16f684, everything ran good on the 628 but my pwm doesn't want to work on the 684... I saw some posts about ccs 3x version not compiling properly for the 684 but i'm not sure what to do....

long l_TempSpeed = 1023;

setup_ccp1(CCP_PWM);
setup_timer_2(T2_DIV_BY_1, 255, 1);

set_pwm1_duty(l_TempSpeed);

basically no pwm with this code, but worked fine on the 628...


any ideas?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Dec 09, 2006 9:23 pm     Reply with quote

Post your compiler version. This will be a number such as 3.191, or
3.236, or 3.249, etc. You can find it at the top of the .LST file, which
will be in your project directory.
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