Quote Originally Posted by mister_e View Post
Yup that's the much accurate way if the PIC have the CCP module. Case not, Pulsin may work... but accuracy is pretty poor.

So you can still detect the rising edge, start a timer, wait 'till falling edge. You have now the High Pulse measure. From there you reset the Timer and wait the next rising edge. There you have the Low pulse measure.

Few maths later, you have the duty cycle.
http://www.picbasic.co.uk/forum/show...36&postcount=4

also look at this one
http://www.picbasic.co.uk/forum/show...se+measurement

HTH

Hi again and thank your answers ,

Dear mister_e ,

I give to a circuit example in my first message (jaycar kit) use a 16F84A ,
This kit is working good and without any problem .
What is your comment ? or have you another idea ?
I think ,they must use very simple programme !
16F84 not have ccp module .

If you can help me ,thank you
if you can not ,thank you again

regards