On Saturday 17 April 2004 21:49, Byron A Jeff wrote: > So now onto how to get it done. If you have a CCP > (Capture/Compare/PWM) module it's your bestest friend for such a > project. It'll measure the pulse widths for you, give you an > interrupt when it's done capturing, and has programmable polarity > and counting speed. It's literally set and forget. So, having had a couple of responses saying that CCP would be useful for this, I thought I'd better do a bit of research into CCP (given that I hadn't heard of it before). It certainly looks interesting, although from Microchip's website I can only see it available on some of the 18F* chips? Is that correct? If so, I might have to do without CCP and do it the more manual approach as I was hoping to do this on one of the small 8-pin 12F629 (or similar) chips. Thanks, Matt -- Matt N. Marsh Email: matt@mattmarsh.net Yahoo: marshmn Web: http://www.mattmarsh.net/ Jabber: mattmarsh@jabber.org MSN: matt@mattmarsh.net ICQ: 250467363 AIM: MattMarshUK -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.