Need a program to generate 16 channel servo drive

i am posting a site which has a little bit related to my project the only thing is i need use adc and sensors instead of serial port of PC

I want help to write or edit the program for the following schematic

http://www.seattlerobotics.org/encoder/200106/16csscnt.htm
this is th site which has kind of what the program is xcept tht i need to use a different circuit