PWMServo.txt The file PWMServo.bas is a slight modification of the PWMMotor.bas file included in the Dual PWM Application Note provided on the BasicX web site. It basically allows you to control two servos using the hardware PWM feature of the BasicX-24. You get about 6 bits of precision in controlling each servo. That isn't as much as I'd like, but considering this gives you dual-servo control with no extra hardware, and no software overhead at all, I'm happy with it. Note that the usual caveats with using Timer1 exists in this code as well (you can't use InputCapture, and a few other functions in the library that also use Timer1). :Please also read the afore-mentioned application note documentation before asking me or the group questions about it. For questions, please email me at jon@huv.com or post to the basicx egroups forum. Please note that this code has not seen anywhere near the care in coding as my Dallas 1-wire code, so don't expect much here -- this is more of a proof-of-concept that you can do it. Jon Hylands Jon@huv.com http://www.huv.com June 16, 2000