HI I am new to the PICLIST. I am now presently trying to implement a PID controller and a trajectory motion control. I have look up the Embedded Control Book,AN532, and it has a very good reference. But the problem is that there are so many interrupts and function. Does anyone know of a simpler way of writing the PID algorithm? Presently, I have a PIC which calculates the velocity and the position of the motor. But how am I going to get the info from the PIC? Especially when it is has a 8-bit output for the velocity and position. Another question is that can I use the same crystal for both my PIC? Thanks, with regards, ....."The journey of a thousand miles begins with a small step in the right direction."....... ---------------------------- Name : Koh Teik Siong Email : tsk196@soton.ac.uk Tel : +44 (01703) 766255 Address : Flat 4 Rm 19 Beechmount House Beechmount Rd Bassett Southampton SO16 3JD -----------------------------