Hi Matt,

There are 2 interrupts, one for each CCP:
- When TMR1 reaches the value of CCPR1 (every 2500 us), an interrupt
occurs and TMR1 is reset to 0. Servo on.
- When TMR1 reaches the value of CCPR2, the servo is turned off. TMR1
will continue counting normally.

On my hardware, the servo pulse is exactly 50 Hz. With the servo's I
have, the range of values is 1000-2000, and this is what I read on the
internet as well. Maybe some servo's will have a wider range.

You must take care that the upper limit of your servovalue (you
mention 2500), does not reach or cross the 2500 value of CCPR1!

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to