Check out http://professionals.com/~cmcmanis//robotics/servo.html ---------- > From: S. Baglatzis > To: PICLIST@MITVMA.MIT.EDU > Subject: Use of PIC for RC-Elektronic Speed Controller > Date: Sunday, March 15, 1998 5:46 AM > > I want to build an electronic speed controller with pic 16c84 . > The PIC has to generate A PWM and to measure an impuls coming from > receiver. > The PWM should be 3 KHz and the Puls is 1ms to 2 ms long every 20 ms. > I use TMR0 for PWM. How can I measure the puls with minor error so i can > calculate > the right PWM. > > > Has someone software to realize the PWM and measure the puls coming > from receiver ? > > > Stephanos Baglatzis from Germany > SBAGLATZIS@mail.online-club.de