A while back I also mentioned that there also ineffeiciencies in
pwm1_set_percent_dutycycle(byte in
percent), 
http://groups.google.com/group/jallib/browse_thread/thread/f63524350ba4b018/cecb81f6d1f555a2?lnk=gst&q=pwm+libs#
the percentage calculation should be ndendent of the pre-scaler
setting , I think you can just evalute PR2
rather than _pr2_4 /_pr2_4 / _pr2_16, this will reduce the amount of
alculations (DWORD multiplications and divisions are expensive)

Furthermore, maybe we should provide a static (const based) and a
dynamic (var based) version of the PWM initialization so the user can
decide to go for flexibility or code size optimization
--~--~---------~--~----~------------~-------~--~----~
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