> -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Alan B. Pearce > Sent: Thursday, August 09, 2001 12:27 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Building a Servo > > > >Based on this, I simply don't understand the F84 fixation. > > because from an earlier reply to one I suggested the 16F627/8 he > already has > a number of them. > > The way to do it without having the CCP is to use the INTR input to start > the timer on the rising edge of the waveform, change the edge > sensitivity to > falling edge, on the next interrupt save the timer count and set the edge > sensitivity back to rising edge. Initialise the timer ready to start > counting again on the next interrupt. The value you have saved is > the pulse > width. This is quite a good idea, and is slightly different from the approach I was planning to take (I was going to use the change on RB interrupt since I wasn't aware you could change the edge sensitivity on the INT pin). Thanks, TTYL -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu