Servo and Clock or PWM
Posted: Mon Jun 09, 2014 9:00 pm
Hi,
I have successfully set up the servo component.
On another project I have successfully used the PWM component.
Trying the two together seems to stop either working properly.
I therefor though of using a clock to provide the PWM. This has the servo jumping all over the place, whichever clock I use.
Please suggest a strategy to enable me to use a servo and PWM (in some form).
It would also be useful to know what resources the servo component uses.
The chip used is a 16F887 using the internal clock.
Servo is on RD2.
The PWM was to be on RD1 but the attached code just looks at the clock effect.
I am using v6.0.7.0.
Thanks.
I have successfully set up the servo component.
On another project I have successfully used the PWM component.
Trying the two together seems to stop either working properly.
I therefor though of using a clock to provide the PWM. This has the servo jumping all over the place, whichever clock I use.
Please suggest a strategy to enable me to use a servo and PWM (in some form).
It would also be useful to know what resources the servo component uses.
The chip used is a 16F887 using the internal clock.
Servo is on RD2.
The PWM was to be on RD1 but the attached code just looks at the clock effect.
I am using v6.0.7.0.
Thanks.