First of all, thank you Savageio, it is always good to see new ways of
accomplishing the same task :)

Ok, sorry Joep. About the current servo lib:
-It uses 2 interrupts per pulse (one to start the pulse and one to end
the pulse). very efficient
-It uses only one timer, where as this code requires 1 timer + 2 CCP.

I don't quite understand the code since I haven't spent much time on
it, but it actually looks like there will be 3 interrupts, one for
timer1 and one for each ccp.

I quickly compiled this code and put it on 18f452, but it gives too
fast of a servo pulse.

Matt.

On Feb 27, 6:20 pm, Joep Suijs <[email protected]> wrote:
> 2010/2/27 mattschinkel <[email protected]>:> It seems that this code 
> will generate the same number of interrupts as
> > my servo lib. One interrupt at the beginning of each servo, and one
> > interrupt at the end of each servo pulse.
>
> > Joep, what is it that you see is more efficient?
>
> It is more efficient then the early libraries you worked on.  I did
> not look at them recently and that's why I did not say 'more
> efficient'.
>
> Joep

-- 
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