Padu wrote : > 10 ms is for one timeslot only. So portc:0 sends its pulse in > timeslot 'A'. portc:1 sends its pulse in the next timeslot. > When it's the timeslot 'A' again, 20ms have passed by, > therefore the dutycycle is correct. As I stated in another > message, if the angles are dictated from a calculated number > by the PIC itself, the movement is very smooth (like a swiss > clock), but if the angles are sent from a PC using RS232, > then it gets rough... Note that 10ms (or even 1 ms) is a rather long time for a PIC. Usualy timers are best to "time" those intervals, not software delay loops. (I'm not sure if and, if so, how much timers was used in your code...) B.t.w, you mentioned 4 Mhz, but did you mention the PIC model ? Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist