I am just starting a new project requiring a closed loop PWM controlled motor, aswell as A2D conversion etc. I read the reply posted by Chunhee and went looking at Piclist.com for PWM code. I could not find any! I do not wish to offend anyone but I also find the site difficult to navigate. Could someone please give me a link as I have already wasted a lot of time. Thanks Graham North -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.