Hi, could you clever people out there give me some advice on counting the 'length' of pulses. The pulses come from a chopper wheel on a motor. Eventially I will alter the speed of the motor (PWM duty cycle) depending on the length of the pulse, but for now I just want to measure it. Is there any specific hardware on the 16F877? Is this what the capture port does? How does it work? I have read the manual but do not really understand it. I am using CCP1 to control the motor (PWM mode), can I use the other to 'capture' the length of pulse? Thankyou all for your help so far, and hopefully in the future Graham North _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body