im working with MPLAB 8.30, C18 code.
using pwm.h is fine, i can get things working good.
though calculating the proper period from the datasheet formula is a bit confusing.
i have a few different books, and tutorials and none of them give me a clear understanding of how to make sense out of getting the proper timing for a period. What weight does Tosc hold, is it one oscillation, or many?
im working with a continous servo, and i need to achieve 20ms or so delay with 1.3-1.8ms high time.
if someone has a tutorial of how to properly calculate this period to get proper values (since i cant seem to get them) that would be appriciated.
with the openPWM2( (some random value) ); i can get it to pulse, but with out the proper timing i will probably blow the servo motor.
thank you in advance for any help.
using pwm.h is fine, i can get things working good.
though calculating the proper period from the datasheet formula is a bit confusing.
i have a few different books, and tutorials and none of them give me a clear understanding of how to make sense out of getting the proper timing for a period. What weight does Tosc hold, is it one oscillation, or many?
im working with a continous servo, and i need to achieve 20ms or so delay with 1.3-1.8ms high time.
if someone has a tutorial of how to properly calculate this period to get proper values (since i cant seem to get them) that would be appriciated.
with the openPWM2( (some random value) ); i can get it to pulse, but with out the proper timing i will probably blow the servo motor.
thank you in advance for any help.