View previous topic :: View next topic |
Author |
Message |
elogicca
Joined: 09 Dec 2006 Posts: 2
|
16f684 PWM |
Posted: Sat Dec 09, 2006 8:52 pm |
|
|
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
|
|
Posted: Sat Dec 09, 2006 9:23 pm |
|
|
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. |
|
|
|