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