Yettie,
Your right, I'm going about it in the wrong way. I am trying to count the pulses at the DATAPLS pin, NOT to measure the time it's high.

You have indeed enlightened me, I'll keep working at it.

Thank you very much !