Hi Pic addicts! Can anyone of you think about a piece of code for 12c508/9, to be able to detect and 'filter' a 1ms burst of 100khz (TTL levels), without any added hardware? Of course I can use an active filter and a rectifier-detector, or a tone decoder, but the challenge is to detect the burst only by software, filtering the present noise. I'm still evaluating to consider the count of transitions averaged over time, or perhaps some kind of digital-filter principle (IIR-FIR?). I've got some experience working with Pics (my serial output 16F84-based video frame grabber is working just fine), but I've read such a brilliant ideas around here that any suggestion will be truly appreciated. Have a nice weekend. Marcelo Fornaso from Argentina marcelo@syyyysameri.com (write 'sysameri')