Mike wrote.. > can pwm code on a 16c84 be written to do it in the background? i mean if i wa nna set my servo to run forward and my code to continue on its cheking of sensor inputs while that servo runs forward is > > i would think so but im not sure, im used to my first love, 68hc11 :) > I haven't done this myself yet but I can't see why a PWM of lowish freq and not too high a resolution couldn't be run from the timer overflow interrupt. This really really depends on what else is going on and as I just said what the specs for you're PWM are. I have always used a PIC with a PWM port such as 16C74 or 16F877 as my applications have had the PIC heavily involved with other activities and I have needed PWM of 10 bits resolution at 20kHz, too much for software alone to handle. I recall someone was running multiple servos off one PIC. Check the archives. _____________________________ Lance Allen Technical Officer Uni of Auckland Psych Dept New Zealand www.psych.auckland.ac.nz _____________________________