how to measure pulse width via AVR?

Thread Starter

eric_s88

Joined Apr 20, 2011
158
Hi everyone!

I have an ultrasonic device that is used to measure distance and detect objects. It works almost same as SRF05.

the problem is that I want to measure the pulse width - that is generated on echo pin- in uS ...

but I dont know how to do this, I know it is possible by uController timers..
but I dont know its instructions..

I work with atmega16 and codevision compiler..


thank you
 
Top