Roman Black wrote: > What about detecting the / edge with the capture int, > but don't bother time check/subtract etc. > When you capture a / edge, simply load one of the timers > to 50uS (between your 2 pulse widths) and when that timer > int occurs all you need to do is check the input, which > will give 0 for 25uS pulse and 1 for a 75uS pulse. > You don't need to do any period measurement and it's > very low in cycles. ;o) Noise sensitive, I suspect. Mike. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body