Aaron
            There is a book called Programmin and Customizing the PIC Microcontroller by Myke Predko.  It has exactly what you are looking for.

Scott

Aaron wrote:

  Can anyone help I am wanting to control a motor from my pic 16c84.  I want to be able to vary the speed of the motor. regard Aaron Bott