I think Olin is thinking motor from a servo, whereas I thought you meant=20 complete servo. If the latter, you should not need a flyback diode, as t= he=20 servo has it's own interface to covert the digital PWM signal to a=20 motor-drive signal. Cheers, -Neil. On Sunday 15 June 2003 10:19, Joel Middleton scribbled: > Yes I do not have a flyback diode. I am not sure how > to implement this with a servo, are they any examples > on the web that I can look at? > > --- Olin Lathrop wrote: > > > Well I found out that I am not > > > getting a nice square wave. The rising edge looks > > > > fine > > > > > but the falling edge is a slope. > > > > This depends on the external circuit. Something > > must be sourcing lots of > > current (almost certainly above spec) when the PIC > > tries to lower the pin, > > or the low side driver is blown. Did you forget a > > flyback diode? > > > > If the timing is otherwise right, then it's not a > > software problem. > > > > > snipped> > > ***************************************************************** > > > Embed Inc, embedded system specialists in Littleton > > Massachusetts > > (978) 742-9014, http://www.embedinc.com > > > > -- > > http://www.piclist.com hint: To leave the PICList > > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu