This application note describes a core-independent method of measuring distance using an 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, Atmel, core, independent, cip, ccl, custom, configurable, logic, timer, ultrasonic, transceiver, distance, measurement, AVR, 417, 814, 816, 817, ATtiny417, ATtiny814, ATtiny816, ATtiny817