??? 02/13/10 03:26 Modified: 02/13/10 03:32 Read: times |
#173117 - Improved version uploaded Responding to: ???'s previous message |
Don't know if anyone still cares about this thread, but i fixed a few issues with the servo controller and re-uploaded it
Notes: Changed from 4.3us/increment to 8.6us/increment (one of my servos runs from 0.7ms..2.7ms, maybe others do as well?) timing is now: 0: 0.7ms 37: 1.0ms 100: 1.5ms 163: 2.0ms 250: 2.7ms optimized timer reload table generation fixed a bug where i was checking the update flag using jbc rather than jnb (causing timer reload table to be regenerated during every 20ms gap) Fixed a bug where low-order three bits were uninitialized (introduced about 3us randomization each time an update occurred) The primary symptom of the above bugs was rough operation when a servo's position was rapidly updated. The new code is considerably smoother. Note: code is dependent on an 11.0592mhz crystal, and an 8051 with xtl/12 timer increment. |