Mike Singer wrote: > 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. I'm not saying that it isn't, but how would this method be any more noise sensitive than using the capture/compare module? It seems to me, that with oversampling, this would be far less susceptable to noise than using the capture feature. michael brown "In the land of the blind, he who has one eye is king" -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body