This application note describes a core-independent method of measuring distance using an Atmel® AVR® device and an ultrasonic transceiver. The implementation is centered around the AVR Configurable Custom Logic module, takes advantage of timer/counter PWM generation, and uses timer/counter waveform generation for synchronized masking signals used for the transmit and receive lines of the ultrasonic transducer. The analog comparator (AC) and digital to analog converter (DAC) are used to handle reception of the attenuated reflected signal. Timer capture is used to measure the ultrasonic burst's "time of flight" in order to measure proximity to a barrier.
DS00002548, Microchip, core, independent, cip, ccl, custom, configurable, logic, timer, ultrasonic, transceiver, distance, measurement, AVR, tinyAVR, megaAVR, 0-series, 1-series