It made use of the signal automatic gain control (AGC) and complex logical control to realize the precise measurement of the ultrasonic signal, and made use of the logical analytical method to realize double frequency and 160 MHz frequency of the counter.