Atomski, Yes you are right in assuming that the statements will work in sequence. Infact you may lose some of the pulse information as it takes some time for the command to execute. I have used your method of looking at the high and then the low pulse width's for measuring temperature with TMP03 temperature sensors. These output a ratio for temperature change and the signal is continuous. In your case the information to be measured is not continuously the same as each pulse high and low time can possibly be different. I would suggest using the CCP module to do the timing measurements. And to answer the last question, the Pulsin command resolution is a function of the OSC speed. This information should be in your manual.

Dave Purola,