There are a couple of links that might be helpful, in particular the first one below has other links about PWM and PID control.
 
http://204.233.101.40/robots/mogotut/PID.htm - has some information about PID and PWM. Be sure to look at the other links on the page.
 
http://204.233.101.40/robots/mogotut/simplemotor.htm - explains how to do very basic locked anti-phase PWM on a motor using a PIC 16C73A and PicBasic Pro.
 
Dan
----- Original Message -----
From: Anthony Clay
To: PICLIST@MITVMA.MIT.EDU
Sent: Sunday, January 16, 2000 4:42 PM
Subject: PCM Motor Control

Hello,
 
I am Anthony Clay.  I am still developing the PICFlyer R/C system.  I am currently adding extra features.  One of them is an onboard DC motor controller.  Has anyone seen any examples on accomplishing this using the PWM ports.  My first thought is to simply use a MOSFET connected as a switch.  But how would I go about incorporating features such as dynamic braking.  Does anyone know of a website that discusses the fundamentals of electric motor controllers?