Sound sensing with time-varying thresholds

By using time-varying threshold circuits and noise power estimators in ultrasonic ranging system to dynamically adjust the threshold voltage, the detection problem caused by the amplitude of the reflected signal is solved, and the accurate evaluation of the distance of the object is achieved. It is suitable for various types of ultrasonic ranging systems in ultrasonic ranging systems. type of application.

CN112888962BActive Publication Date: 2024-11-08TEXAS INSTRUMENTS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980064775.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-08-01
Filing Date
2019-08-01
Publication Date
2024-11-08
Estimated Expiration
2039-08-01

AI Technical Summary

Technical Problem

In ultrasonic ranging systems, the amplitude variation of the reflected signal makes it difficult to correctly detect the object distance, especially when the object is far away from the transducer, the signal amplitude is low, making it difficult to maintain a sufficient signal-to-noise ratio for accurate distance evaluation.

Method used

The time-varying threshold circuit is adopted, and the threshold voltage can be adjusted based on the noise power signal. The noise power signal is generated through the noise power estimator and the n-level comparator, and the threshold voltage is dynamically adjusted to adapt to signal changes, ensuring that the signal-to-noise ratio is at a high level, and realizing Effective detection of reflected signals.

Benefits of technology

By dynamically adjusting the threshold voltage, it can effectively detect reflected signals of larger amplitude and lower amplitude, maintain a high signal-to-noise ratio, ensure the accuracy of distance determination, and is suitable for a wide range of ultrasonic ranging applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112888962B_ABST
    Figure CN112888962B_ABST
Patent Text Reader

Abstract

An ultrasound sensing system (210) includes an amplifier (300) including an input and an output; and an n-level comparator (302) coupled to the output of the amplifier (300) to compare an adjustable threshold voltage with an output signal from the output of the amplifier (300). N is greater than or equal to 1. The system (210) also includes a noise power estimator (314) coupled to the output of the n-level comparator (302) to generate a noise power signal indicating the noise power of the input signal at the input of the amplifier (300). The system (210) further includes a time-varying threshold circuit (312) coupled to the noise power estimator (314) and the n-level comparator (302) to adjust the adjustable threshold voltage based on the noise power signal.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Ultrasonic ranging is used in a variety of applications. For example, in automotive applications, ultrasonic transducers are placed in the bumper of the car. The transducer transmits an ultrasonic signal. If such an object is indeed present, the transmitted ultrasonic signal is reflected back from the vicinity of the object, and these reflected signals are sensed by the transducer. The round trip time of the ultrasonic signal is measured so that the distance to the object can be determined. Summary of the invention

[0002] In one example, an ultrasound sensing system includes: an amplifier including an input and an output; and an n-level comparator coupled to the output of the amplifier to compare an adjustable threshold voltage with an output signal from the output of the amplifier. N is greater than or equal to 1. The system also includes a noise power estimator coupled to the output of the n-level comparator to generate a noise power signal indicating a noise power of an input signal at the input of the amplifier. The system further includes a time-varying threshold circuit coupled to the noise power estimator and the n-level comparator to adjust the adjustable threshold voltage based on the noise power signal.

[0003] In another example, an ultrasound sensing system includes an amplifier including an input and an output; and an analog-to-digital converter (ADC) coupled to the output of the amplifier to generate a digital output in response to an analog output signal from the output of the amplifier. The ADC is an n-bit converter. The system further includes a bit reduction circuit coupled to the ADC to reduce the number of bits of the digital output based on a time-varying threshold; a noise power estimator coupled to the ADC to generate a noise power signal indicating the noise power of the input signal at the input of the amplifier; and a time-varying threshold circuit coupled to the noise power estimator and the bit reduction circuit to adjust the time-varying threshold based on the noise power signal.

[0004] In yet another example, an ultrasound sensing system includes an amplifier including an input and an output; and an n-level comparator coupled to the output of the amplifier to compare an adjustable threshold voltage with an output signal from the output of the amplifier, where n is greater than or equal to 1. The system also includes a noise power estimator coupled to the output of the n-level comparator to generate a noise power signal indicating the noise power of the input signal at the input of the amplifier; a time-varying threshold circuit coupled to the noise power estimator and the n-level comparator to adjust the adjustable threshold voltage based on the noise power signal; a correlator circuit that correlates the output of the n-level comparator with a template signal and generates a correlator output signal in response thereto. The system further includes an envelope detector coupled to the correlator circuit to generate an envelope signal in response to the correlator output signal; and a comparator coupled to the envelope detector to compare the envelope signal with a threshold map signal defining a time-varying threshold. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 In the described example, a car is illustrated having an ultrasonic sensor for measuring the distance to an object.

[0006] Figure 2 is a block diagram of an ultrasonic transducer and corresponding circuitry in the described examples.

[0007] Figure 3 A portion of a circuit system that may be used with an ultrasound transducer in the described examples is shown.

[0008] Figure 4 An example n-level comparator is illustrated.

[0009] Figure 5 An example correlator is illustrated.

[0010] Figure 6 An envelope detector in an example is shown.

[0011] Figure 7 An example noise power estimator is shown.

[0012] Figure 8 A voltage threshold generator is shown in the described example.

[0013] Fig. 9 The time course of one or more threshold voltages in the described examples is illustrated.

[0014] Fig.10 The time course of the variable gain of the programmable gain amplifier in the described example is illustrated.

[0015] Fig.11Another example portion of a circuit system that may be used with an ultrasound transducer is shown.

[0016] Fig.12 Example bit reduction circuits in various implementations are described. DETAILED DESCRIPTION

[0017] As described above, the reflected ultrasonic signal is detected by the ultrasonic transducer and used to measure the round trip time and thus determine the distance to the object (which reflected the ultrasonic signal). If the object is farther away from the transducer, the amplitude of the reflected ultrasonic transducer will be lower. For nearby objects, the amplitude of the reflected ultrasonic signal will be greater than the amplitude of the reflected ultrasonic signal for objects that are farther away. Due to the variation in the amplitude of the detected signal, it is difficult to correctly detect the reflected ultrasonic signal.

[0018] The described embodiments are directed to a circuit that receives a signal from a transducer, such as an ultrasonic transducer, and applies a time-varying threshold to quantize a correlator input. The threshold level varies over time and is initialized to a level based on an evaluation of noise in the circuit. The noise may be relatively constant over time, so the noise amplitude and noise power generally do not vary over time after the transducer generates an ultrasonic signal. The circuit includes a noise power estimator that generates a signal indicating the power level of noise (e.g., thermal noise, amplifier noise, etc.) in the circuit, and a threshold voltage used by a comparator varies based on the signal indicating the noise power and based on the time after the generation of the ultrasonic signal generated by the transducer. After the transducer generates an ultrasonic signal, the threshold voltage generally decreases over time and is reinitialized to a higher level in response to each generation of the ultrasonic signal.

[0019] Thus, for larger amplitude reflected signals detected by the transducer, the threshold is higher, and for lower amplitude reflected signals detected by the transducer, the threshold is lower. Setting the threshold voltage higher for larger amplitude reflected signals and lower for lower amplitude reflected signals generally maintains the signal-to-noise ratio at a high enough level to make adequate distance determination assessments.

[0020] As described above, one application for ultrasonic ranging systems is in automobiles, but other applications using ultrasound-based ranging systems are possible. Figure 1 A vehicle 100 is illustrated. The vehicle includes one or more ultrasonic transducers in one or both of the front and rear bumpers. Figure 1In the example of , four ultrasonic transducers 105 are shown. In other examples, the number of transducers in each bumper may not be four. For simplicity, ultrasonic transducers are referred to herein as transducers. In some examples, ultrasonic transducers are used as transducers 105. However, in other examples, transducer 105 may include other types of transducers (in addition to or in place of ultrasonic transducers). Each ultrasonic transducer emits a sound wave of a specific frequency and then detects the reflection of the sound wave after the sound wave bounces off an object (e.g., object 120) and returns to the transducer. Sound travels through the air at a speed of approximately 344 meters per second (1129 feet per second). The elapsed time from the first emission of sound by the transducer to the detection of the reflected sound wave at the transducer can be measured by a circuit system coupled to the transducer. The total round-trip distance is the product of the speed of sound and the measurement time. The distance between the transducer and the object (e.g., Figure 1 The distance between D1) in is then given by:

[0021]

[0022] A wide range of frequencies can be used as the sound waves (also referred to herein as "sound signals") generated by transducer 105. In some examples, the sound waves have one or more frequencies that are higher than what humans can typically hear. For example, the sound waves can have a frequency higher than 20,000 Hz, but frequencies lower than 20,000 Hz are also possible. In one example, the frequency is 50 KHz, and the emitted sound waves include multiple pulses (e.g., 15-20 pulses) of a 50 KHz signal.

[0023] In some embodiments, the transducers 105 transmit the same frequency (e.g., 50 KHz), but they transmit in a sequential manner, so one transducer 105 transmits a sound signal and waits for a predetermined reflection period before the next transducer 105 is allowed to transmit its sound signal. In other embodiments, each transducer 105 implements a different signal signature. For example, 50 KHz can be modulated in a unique manner (e.g., using frequency modulation) for use by each transducer. Therefore, all transducers 105 can transmit their sound signals at the same time. Each transmitted sound signal is uniquely encoded for a specific transducer 105, so the reflected sound signal is also unique and easily distinguished by the circuit system connected to each transducer.

[0024] Figure 2A plurality of transducers 105 are illustrated. Each transducer 105 is coupled to a respective corresponding circuit 200 that operates the transducer. The circuit 200 includes a driver 202. The driver 202 generates an electrical signal 225 that is converted by the transducer 105 into an acoustic signal 230. The driver 202 asserts a control signal 203 to a timer 204. In response to such assertion of the control signal 203, the timer 204 initiates its time measurement, for example by counting pulses of a periodic clock signal (CLK). Each transducer 105 may also receive an acoustic signal 240 (e.g., an acoustic signal reflected by the object 120) and convert the received acoustic signal 240 into an electrical signal 244. The ultrasonic detection circuit 210 receives and processes the electrical signal 244 (which indicates the reflected acoustic signal 240). The ultrasonic detection circuit 210 processes the electrical signal 244 to determine when the transducer 105 has received the reflected acoustic signal. In response to determining that the transducer 105 has received the reflected sound signal, the ultrasonic detection circuit 210 generates a control signal 211 to the timer 204. In response to such generation of the control signal 211, the timer 204 stops its time measurement (e.g., stops counting pulses of the periodic clock signal). Therefore, the count value (COUNT) of the timer 204 indicates: (a) the time elapsed between the emission of the sound signal 230 by the transducer 105 and the reception of the reflected sound signal 240 from the transducer; and (b) similarly, the distance to the object.

[0025] As described above, the amplitude of the reflected sound signal 240 (and therefore the amplitude of the equivalent electrical signal 244) is a function of the distance D1 to the object 120. As the distance to the object 120 increases, the amplitude of the sound signal 240 (electrical signal 244) generally decreases. In the described example, the ultrasonic detection circuit 210 implements a variable threshold to detect the occurrence of the reflected sound signal. The threshold is set to be relatively high immediately after the sound signal 230 is transmitted from the transducer 105. After the sound signal 230 is transmitted, a gradually lowering threshold is implemented in the ultrasonic detection circuit 210 as time increases. After the transducer 105 generates the next sound signal 230, the process repeats, and the threshold is again set high and then lowered over time.

[0026] Figure 3 An example implementation of an ultrasound detection circuit 210 is shown. Figure 3 The ultrasonic detection circuit 210 in the embodiment includes a programmable gain amplifier 300, an n-level comparator 302, a correlator 304, an envelope detector 306, a comparator 308, a threshold map 310, a time-varying threshold circuit 312, a noise power estimator 314, and a time-varying gain control 316. The programmable gain amplifier 300 amplifies the incoming signal 244 and provides the amplified signal 301 to the n-level comparator 302.

[0027] The n-level comparator 202 compares the amplified signal 301 with n-1 voltage thresholds. For example, in the case of a 3-level comparator (ie, n=3), the comparator 302 compares the amplified signal 301 with 2 different voltage thresholds. Figure 4 An example 3-level comparator is shown in which the amplified signal 301 is compared to a threshold voltage VREF1 and a voltage threshold VREF2. The threshold voltages VREF1 and VREF2 are provided by a time varying threshold circuit 312 (described below). Figure 4 The 3-level comparator in the example includes two comparators 402 and 412. Each comparator has a positive input (+) and a negative input (-). The amplified signal 301 is provided to the positive inputs of the two comparators. VREF1 is provided to the negative input of comparator 402, and VREF2 is provided to the negative input of comparator 412.

[0028] Comparator 402 generates an output 403 that indicates whether amplified signal 301 is greater than or less than VREF1. Figure 4 In the example of , the output 403 from the comparator 402 will be: a logic high if the amplified signal 301 is greater than VREF1; or a logic low if the amplified signal 301 is less than VREF1. Similarly, the comparator 412 generates an output 413, which indicates whether the amplified signal 301 is greater than or less than VREF2. The output 413 from the comparator 412 will be: a logic high if the amplified signal 301 is greater than VREF2; or a logic low if the amplified signal 301 is less than VREF2.

[0029] Each output 403, 413 is latched by a respective D flip-flop 420 as a corresponding D flip-flop output signal Q1 and Q0. The D flip-flops 420 and 425 are clocked by a clock signal (not necessarily Figure 2The amplified signal 301 is repeatedly clocked by the same clock as described above (the same clock as described above), thereby generating a sequence of Q1, Q0 output signal pairs. Each Q1, Q0 output signal pair encodes the relative size of the amplified signal as VREF1 and VREF2 at the time of the effective clock edge. If VREF1 is greater than VREF2 (or VREF1 is a positive voltage and VREF2 is a negative voltage with the same absolute value as VREF1), then Q1, Q0 indicate whether the amplified signal 301 is: greater than VREF1; between VREF1 and VREF2; or less than VREF2. If the amplified signal 301 is greater than VREF1, then both Q1 and Q0 will be logic high (Q1, Q0 = '11'). If the amplified signal 301 is between VREF1 and VREF2, then: Q1 will be logic low; and Q0 will be logic high (Q1, Q0 = '10'). If the amplified signal 301 is less than VREF2, then both Q1 and Q0 will be logic low (Q1, Q0 = '00').

[0030] Reference again Figure 3 , output 303 from the n-level comparator ( Figure 4 ) are provided to a correlator 304. The correlator 304 correlates the output of the n-level comparator with one or more templates 305. Each template 305 is a digitized version of the input signal 225 generated by the driver 202 and provided to the transducer 105 for conversion into a transmitted sound signal 230.

[0031] Figure 5 An example correlator 304 is shown. In this example, the correlator 304 includes a series of delay buffers 500 through which the comparator output 303 flows, and a series of corresponding delay buffers 520 through which the template 305 flows. Each delay buffer 500, 520 can implement the same amount of time delay as the other delay buffers. The outputs of the corresponding delay buffers 500, 520 are then multiplied together as shown by multipliers 510, and the outputs of the multipliers 510 are then added together by adders 525 to produce a correlator output 307. The correlator output 307 at a given time instant is a multi-bit digital signal that indicates how closely the received sound signal 240 matches the expected sound signal based on the transmitted sound signal 230 at that particular time instant.

[0032] Reference again Figure 3 , the correlator output 307 is provided to an envelope detector 306. The envelope detector 306 generates an output envelope signal 309 that generally tracks the envelope (eg, peak value) of the correlator output 307. Figure 6An example implementation of the envelope detector 306 is shown. The envelope detector example includes a Hilbert filter 602 and an absolute value circuit 604. For a real input signal xr, the Hilbert filter generates a complex analytic signal xr+j*xi, where xi is the signal xr with a 90 degree phase shift. The absolute value of the complex analytic signal |xr+xi| is defined as It is the envelope of the signal xr.

[0033] Reference again Figure 3 , the comparator 308 compares the output envelope signal 309 (from the envelope detector 306) with the threshold map 310 to generate the control signal 211 described above. The threshold map defines a time-varying threshold that indicates a valid object when the signal envelope is above the threshold. The threshold is typically set above the expected noise or false echo at a given distance. For example, the threshold map can be defined to avoid false echoes caused by the ground or small objects.

[0034] In the depicted example, in response to the initial transmission of the outgoing sound signal 230, the threshold voltage 313 (eg, Figure 4 Example 3 of the level comparator (VREF1 and VREF2) is initially set to a relatively high level and then reduced over time to address the problem of the received sound signal amplitude decreasing over time. The threshold voltage 313 is determined based on the following factors: (a) the noise power of the circuit; and (b) time. If the baseline noise power is high, the threshold voltage 313 will be set to a higher threshold voltage than the baseline noise power is low. Therefore, the noise power estimator 314 estimates the amplitude of the noise power in the circuit. Figure 7 An example implementation of the noise power estimator 314 is shown. Figure 7In an example of , the noise power estimator includes a squaring circuit 700 coupled to an averaging filter 705. In the example 3-level comparator of the n-level comparator 302, as described above, where the output bits are 11, 01, and 00: (a) 11 corresponds to +1; (b) 00 corresponds to -1; and (c) 01 corresponds to 0. Therefore, squaring +1 should yield 1, while squaring 01 should yield 0, and squaring 00 should yield 1. Therefore, the output of the squaring circuit 700 should be: a logic high ("1") when the comparator output 303 is 11 or 00; or a logic low ("0") when the comparator output 303 is 01. The squaring circuit 700 can be implemented as a collection of logic gates. In other embodiments, the squaring circuit 700 is implemented as a multiplier. The output 702 of the squaring circuit 700 is then filtered by an averaging filter 705 (e.g., an infinite impulse response (IIR) filter or a finite impulse response (FIR) filter). The output of the averaging filter 705 is a signal specifying the noise power 315. The averaging filter 705 is coupled to a square root circuit 902 which determines the square root of the noise power output of the averaging filter 805. The square root of the noise power is the standard deviation of the noise power.

[0035] In some cases, the noise power is measured before each burst when no echo is expected in the received signal. Alternatively, the noise power may be measured after each burst when no echo is expected. The noise power may be tracked over time to exclude erroneous values ​​that may be caused by unexpected echoes in the received signal from other neighboring ultrasound sources.

[0036] Figure 8An example portion of a time-varying threshold circuit 312 is shown. In this example, the time-varying threshold circuit 312 includes a resistor divider network including resistors R1, R2, R3, R4, ... Rn; switches SW1, SW2, SW3, SW4, ... SWn; a control circuit 802; and a timer 810. The resistors R1-Rn are connected in series between VDD and ground, and they provide a varying voltage between VDD and ground from the nodes of the interconnected resistor pairs. The switches SW1-SWn are connected to each inter-resistor node and provide the node voltage to the n-level comparator 302 when closed. A separate resistor divider network may be included to generate each voltage threshold. In response to a signal 315 from a noise power estimator 314, the control circuit 302 generates a control signal 804 to close one of the switches SW1-SWn to generate an appropriate voltage threshold. The timer 810 receives a control signal 203 from the driver 202. The control signal 203 indicates the time of the burst of the sound signal 230 transmitted via the transducer 105. The timer 810 counts the pulses of the clock signal (CLK) and outputs the count value (COUNT) to the control circuit 802. In some examples, the timer 810 is an incremental counter that outputs a count value starting from 0 in response to the assertion of the control signal 203. In response to receiving an initial count value of 0 from the timer 810, the control circuit 802 asserts the control signal 804 to close one of the switches SW1-SWn (the remaining switches remain open). The switch initially closed by the control circuit 802 corresponds to a resistor divider voltage that is higher than the noise level measured for the circuit, but less than the amplitude of the amplified signal 301 (which can be determined a priori for different distances D1, and therefore determined at different times). For example, at short distances, VREF1 can be set to twice the noise standard deviation (the square root of the noise power). Therefore, most of the noise will be converted to zero at the comparator output, while most of the echo signal will be converted to 1 or -1. In some examples, as time progresses after the assertion of the control signal 804, the control circuit 802 asserts the control signal 804 to open and close different switches, thereby selecting different (and lower) voltages from the resistor divider as the threshold voltage provided to the n-level comparator 302. For example, at longer distances, VREF1 can be set to 0.25 times (one quarter) the noise standard deviation (the square root of the noise power). At this level, even if the echo signal amplitude is masked by noise, each signal can still be converted to a comparator output in addition to the noise. Then, although the signal-to-noise ratio is lower than the short-distance case, the signal can still be recovered by the correlator.

[0037] Fig. 9An exemplary downward progression of the threshold voltage over time is illustrated starting from time T0 when control signal 203 is asserted. Initially, the threshold voltage is set at level TH0 until time T1 is reached (eg, when the count value of timer 810 reaches a predetermined value).

[0038] In some embodiments, as described above, a threshold voltage 313 is generated for use by the n-level comparator 302 based on an estimate of the noise power in the circuit and time. However, in some embodiments, the gain of the programmable gain amplifier 300 is dynamically changed by the time-varying gain control 316. As described above, as the distance D1 increases (and therefore as the time after the transmission of the initial sound signal 230 increases), the received reflected sound signal 240 has a gradually decreasing amplitude. In response to the assertion of the control signal 203, the time-varying gain control 316 asserts a control signal to the programmable gain amplifier 300 to initially set its gain to a lower level. This is because, if the reflected sound signal 240 is received shortly after the outgoing sound signal 230 is transmitted, the amplitude of the reflected sound signal 240 (received by the programmable gain amplifier 300) will be relatively high. However, as time progresses after the transmission of the outgoing sound signal 230: (a) any incoming reflected sound signal 240 will have a gradually decreasing amplitude; and (b) therefore, the time-varying gain control 316 (which may be implemented as Figure 8 A timer (described above) asserts a control signal to programmable gain amplifier 300, causing its gain to increase.

[0039] Fig.10 An exemplary increase in the gain of programmable gain amplifier 300 over time is illustrated, from a relatively low gain setting (GAIN0 at time T0) to a higher gain setting (GAIN2 at time T2).

[0040] The gain change of the programmable gain amplifier 300 also changes the amplitude of the estimated noise power. In some embodiments, the time-varying gain control 316 generates a signal 317 to the time-varying threshold circuit 312 to indicate the gain setting of the programmable gain amplifier 300. The time-varying threshold circuit 312 uses the signal 317 to dynamically set the threshold voltage 313 of the n-level comparator. In one example, the time-varying threshold circuit 312 implements a lookup table for generating the threshold voltage 313 based on the following: the gain setting indicated by the signal 317 from the time-varying gain control 316; and the signal 315 from the noise power estimator 314. The time-varying threshold is determined for a fixed amplifier gain. As the amplifier gain changes over time, the threshold is adjusted accordingly. For example, if V1 is the original threshold voltage setting at a given time t1 and gain A1, then if the gain at the time t1 is changed to A2, the threshold voltage becomes V1*A2 / A1.

[0041] Fig.11 Shows something like Figure 3 The embodiment of the ultrasonic detection circuit 890 of FIG. 30 is shown, but with an analog-to-digital converter (ADC) 891 and a bit reduction circuit 892 instead of the n-level comparator 302. The ADC 892 can be of any size (e.g., a 3-bit, 4-bit, etc. ADC converter). The bit reduction circuit 892 reduces the number of bits of the output from the ADC 892 for correlation with the template 305 by the correlator 304. Fig.12 Implemented as shown Fig.11 Noise power estimator 893 in.

[0042] In this example, the gain of the programmable gain amplifier 300 and the ADC reference signal are set to predefined values ​​based on the expected noise level. If the ADC output bits only show switching of 1s and 0s in their least significant 1 or 2 bits, the gain of the programmable gain amplifier 700 is increased to the point where many of the least significant bits (e.g., at least the least significant four bits) from the ADC 894 are switching.

[0043] Fig.12 An example implementation of a bit reduction circuit 892 including a multiplier 910 and a rounding function 912 is shown. The bit reduction circuit 892 reduces the number of output bits from the ADC 894, for example, from 8 bits to 12 bits to a lower bit, by a time-varying threshold generated by the time-varying threshold circuit 312 as described above. For example, if the ADC output is a 3-bit output that allows 7 different levels, and if the correlator 304 is capable of three different levels, then as shown in FIG. 13, the bit reduction circuit 892 down-converts the 7-level ADC output to three different levels.

[0044] As described above, based on the expected noise level, the gain of the programmable gain amplifier 300 and the reference signal of the ADC are set to predefined values. For an example using a relatively small number of comparator levels (e.g., a 3-level comparator), the percentage of 1s in the comparator output (denoted as R1) is determined. VREF2 can be set to a voltage of opposite polarity to VREF1, or the reference voltage can be adjusted independently. VREF1 is then adjusted so that R1 is in the range of 20% to 40%. After VREF1 stabilizes, R1 is recorded. Similarly, the percentage of 0s in the comparator output (denoted as R2) is determined and R2 is recorded when VREF1 stabilizes. The mean and standard deviation values ​​(square root of noise power) are calculated by a noise power estimator (e.g., implemented as a microcontroller or discrete circuit) and are related to VREF1 / VREF2 and R1 / R2 through a "Q" function, as noise generally follows a Gaussian distribution.

[0045]

[0046]

[0047]

[0048] The Qinv(z) function is the inverse of the Q(z) function and can be implemented as a lookup table. The formulas for calculating the mean (μ) and standard deviation (σ) of the noise power are:

[0049]

[0050]

[0051] In this specification, the term "coupled" refers to an indirect or direct wired or wireless connection. Thus, if a first device is coupled to a second device, the connection may be through a direct connection or through an indirect connection via other devices and connections. "Based on" means "based at least in part on." Thus, if X is based on Y, then X may be a function of Y and any other factors.

[0052] Modifications may be made in the described embodiments and in other embodiments as well, within the scope of the claims.

Claims

1. An ultrasonic sensing system, comprising: a variable gain amplifier comprising an input and an output; an n-level comparator coupled to the output of the variable gain amplifier to compare an adjustable threshold voltage to an output signal from the output of the variable gain amplifier, wherein n is greater than or equal to 1; a noise power estimator coupled to the output of the n-level comparator to generate a noise power signal indicative of a noise power of an input signal at the input of the variable gain amplifier; a time-varying gain control coupled to the variable gain amplifier; as well as a time-varying threshold circuit coupled to the noise power estimator, the time-varying gain control, and the n-level comparator to adjust the adjustable threshold voltage based on the noise power signal and based on a signal from the time-varying gain control indicating a time-varying gain configuration of the variable gain amplifier, wherein the adjustable threshold voltage decreases over a period of time after receiving the input signal. 2 . The ultrasound sensing system of claim 1 , wherein the n-level comparator comprises a 3-level comparator, and the adjustable threshold voltage comprises a first adjustable threshold voltage and a second adjustable threshold voltage.

3. The ultrasonic sensing system of claim 2, wherein the 3-level comparator comprises: a first comparator that compares the output signal with the first adjustable threshold voltage; and a second comparator that compares the output signal with the second adjustable threshold voltage. 4 . The ultrasound sensing system of claim 2 , wherein the time-varying threshold circuit is coupled to adjust both the first adjustable threshold voltage and the second adjustable threshold voltage based on the noise power signal.

5. The ultrasound sensing system of claim 1, wherein the noise power estimator is coupled to generate the noise power signal within a predetermined time period in response to transmission of a burst of ultrasound pulses.

6. The ultrasound sensing system of claim 1, further comprising a correlator circuit that correlates an output from the n-level comparator with a template signal.

7. The ultrasound sensing system of claim 1, further comprising a transducer coupled to the input of the variable gain amplifier to transmit ultrasound signals and receive reflected ultrasound signals to be amplified by the variable gain amplifier.

8. An ultrasonic sensing system, comprising: a variable gain amplifier comprising an input and an output; an analog-to-digital converter (ADC) coupled to the output of the variable gain amplifier to generate a digital output in response to an analog output signal from the output of the variable gain amplifier, wherein the ADC is an n-bit converter; a bit reduction circuit coupled to the ADC to reduce the number of bits of the digital output based on a time varying threshold; a noise power estimator coupled to the ADC to generate a noise power signal indicative of a noise power of an input signal at the input of the variable gain amplifier; a time-varying gain control coupled to the variable gain amplifier; as well as a time-varying threshold circuit coupled to the noise power estimator, the time-varying gain control, and the bit reduction circuit to adjust the time-varying threshold based on the noise power signal and based on a signal from the time-varying gain control indicating a time-varying gain configuration of the variable gain amplifier, wherein the time-varying threshold decreases over a period of time after receiving the input signal.

9. The ultrasound sensing system of claim 8, wherein the noise power estimator is coupled to generate the noise power signal as a standard deviation of the noise power.

10. The ultrasound sensing system of claim 8, wherein the noise power estimator is coupled to generate the noise power signal within a predetermined time period in response to transmission of a burst of ultrasound pulses.

11. The ultrasound sensing system of claim 8, further comprising a transducer coupled to the input of the variable gain amplifier to transmit ultrasound signals and receive reflected ultrasound signals to be amplified by the variable gain amplifier.

12. The ultrasound sensing system of claim 11, further comprising: A correlator is coupled to the bit reduction circuit to correlate an output from the bit reduction circuit with a template signal, wherein the template signal is a digitized version of a transducer signal generated for the transducer.

13. The ultrasound sensing system of claim 12, further comprising a timer that counts pulses of a clock signal between: a time when the transducer signal is generated for the transducer; and a time when the reflected ultrasound signal is detected.

14. The ultrasonic sensing system according to claim 8, wherein: The bit reduction circuit includes a multiplier.

15. An ultrasonic sensing system, comprising: a variable gain amplifier comprising an input and an output; an n-level comparator coupled to the output of the variable gain amplifier to compare an adjustable threshold voltage to an output signal from the output of the variable gain amplifier, wherein n is greater than or equal to 1; a noise power estimator coupled to the output of the n-level comparator to generate a noise power signal indicative of a noise power of an input signal at the input of the variable gain amplifier; a time-varying gain control coupled to the variable gain amplifier; a time-varying threshold circuit coupled to the noise power estimator, the time-varying gain control, and the n-level comparator to adjust the adjustable threshold voltage based on the noise power signal and a signal from the time-varying gain control indicating a time-varying gain configuration of the variable gain amplifier, wherein the adjustable threshold voltage decreases over a period of time after receiving the input signal; a correlator circuit that correlates said output of said n-level comparator with a template signal and generates a correlator output signal in response thereto; an envelope detector coupled to the correlator circuit to generate an envelope signal in response to the correlator output signal; as well as A comparator is coupled to the envelope detector to compare the envelope signal to a threshold map signal defining a time varying threshold. 16 . The ultrasound sensing system of claim 15 , wherein the n-level comparator comprises a 3-level comparator, and the adjustable threshold voltage comprises a first adjustable threshold voltage and a second adjustable threshold voltage.

17. The ultrasound sensing system of claim 16, wherein the time-varying threshold circuit is coupled to adjust both the first adjustable threshold voltage and the second adjustable threshold voltage based on the noise power signal.

18. The ultrasound sensing system of claim 15, further comprising a transducer coupled to the input of the variable gain amplifier to transmit ultrasound signals and receive reflected ultrasound signals to be amplified by the variable gain amplifier.