Hi, I'm using a PIC18f252 with an ultrasonic transducer to receive signal of 40kHz. The thing is that I want to calculate the time from the moment the first data arrive until the second data arrive. How can I do that? Basically, I need to know the time difference between the arrival of those two data? I've looked and research on the timer but it's usually used as timer for the number of pulses or something. I'm having a hard time to understand it. Thanks in advance. _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist