by profmason » Thu Nov 26, 2009 11:06 pm
by profmason
Thu Nov 26, 2009 11:06 pm
The code looks good. You updated the bioloid-io.c module to use the high resolution timer, added a new functions pwm_set and pwm_init to handle and set the servo and commented out the motor.c module. Folks will still need the rest of Jon and Davids Bioloid IO code from their repository.
I have been working on a generic IO board as well starting from the same code base. I appreciate you sussing out the settings for the 16bit timer. I had it on my list to sit down with the datasheet one of these days. I couldn't get close enough to 20ms with the low resolution timer.
Any problems with any of the other IO when you changed the timer? (I wouldn't expect it.) Any ideas on how to get the second servo working in this mode? Can you just use com1a1? Or is this out because of the high resolution timer? Maybe I will have to look at the datasheet after all, or go back to the 8 bit timer? I will give this a test over the weekend.
Thanks for this!
mmason
The code looks good. You updated the bioloid-io.c module to use the high resolution timer, added a new functions pwm_set and pwm_init to handle and set the servo and commented out the motor.c module. Folks will still need the rest of Jon and Davids Bioloid IO code from their repository.
I have been working on a generic IO board as well starting from the same code base. I appreciate you sussing out the settings for the 16bit timer. I had it on my list to sit down with the datasheet one of these days. I couldn't get close enough to 20ms with the low resolution timer.
Any problems with any of the other IO when you changed the timer? (I wouldn't expect it.) Any ideas on how to get the second servo working in this mode? Can you just use com1a1? Or is this out because of the high resolution timer? Maybe I will have to look at the datasheet after all, or go back to the 8 bit timer? I will give this a test over the weekend.
Thanks for this!
mmason