John Walshe wrote: > > Hi Roman, > > Unfortunately I'm not checking a pulse train - just a single pulse which > is coming from a device triggered also by the PIC. I will be able to > trigger several times in order to get an average. Also it is the length of > time the pulse is high that is of interest. > > If it were a pulse train I would definitely do as you suggested. Why not trigger deliberately with different periods between, like one instruction different each time, and you can see the point where the count changes. Again you will be able to get whatever resolution you need. -Roman -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics