Threshold generation circuit, chip and device

By using the threshold generation circuit to generate multiple comparison thresholds in ultrasonic ranging technology, the problem of large memory space occupancy in the prior art is solved, reducing chip cost and improving detection accuracy.

CN116743124BActive Publication Date: 2024-12-06SHANGHAI LINGFAN MICROELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310779853.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-06
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

The existing ultrasonic ranging technology requires pre-stored a large number of dynamic thresholds and time mapping relationships, resulting in large memory space occupancy and increasing chip cost.

Method used

By setting the threshold generation circuit, multiple comparison thresholds associated with each reference threshold are generated according to each reference threshold, and these comparison thresholds are generated and sent using the timing circuit and the control circuit, reducing the memory storage space requirement.

Benefits of technology

It effectively saves memory storage space, reduces chip costs, and improves the accuracy of echo signal judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116743124B_ABST
    Figure CN116743124B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic technology, and in particular to a threshold generating circuit, chip and device. The threshold generating circuit includes a storage unit for storing multiple reference thresholds; a timing circuit for timing; a control circuit for acquiring the reference threshold in the storage unit according to the timing information of the timing circuit and sending the acquired reference threshold to the threshold generating circuit; the threshold generating circuit for generating a comparison threshold associated with the current reference threshold each time a reference threshold is received; the control circuit is also used to send the generated comparison threshold to the switch circuit; the switch circuit is used to receive the switch signal sent by the control circuit, and control the on and off of the switch according to the switch signal to send different threshold signals to the comparator. By setting the threshold generating circuit to generate multiple comparison thresholds associated with each reference threshold according to the reference threshold, the storage space of the memory can be effectively saved and the chip cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a threshold generating circuit, a chip and a device. Background Art

[0002] At present, it is a common distance measurement method to calculate the distance between the target and the device itself by emitting ultrasonic waves and detecting the time of receiving the echo. Whether the echo is an ultrasonic echo is generally determined by detecting the amplitude of the echo. A threshold is set in the comparator. If the echo amplitude is greater than the threshold, it is an ultrasonic wave. It is known that the amplitude of the ultrasonic echo changes with the change of the distance of the target, that is, the closer the target is, the stronger the ultrasonic echo signal is, and the farther the obstacle is, the weaker the ultrasonic echo signal is. Therefore, the industry generally adopts a dynamic threshold method, and the threshold needs to be continuously reduced as time goes on. The usual practice is to store a large number of threshold and time mapping relationships in the register in advance, and each threshold has its own corresponding time. After emitting the ultrasonic wave, the corresponding threshold is selected according to the time of receiving the callback for comparison and judgment. However, this requires a large amount of register space, which occupies valuable chip space and increases the cost of the chip. Summary of the invention

[0003] The embodiments of the present invention provide a threshold generation circuit, a chip and a device. By setting the threshold generation circuit to generate multiple comparison thresholds associated with each reference threshold, the storage space of the memory can be effectively saved and the chip cost can be reduced.

[0004] In a first aspect, an embodiment of the present invention provides a threshold generating circuit, comprising:

[0005] A storage unit, used for storing a plurality of reference thresholds;

[0006] Timing circuit, used for timing;

[0007] a control circuit, configured to obtain the reference threshold in the storage unit according to the timing information of the timing circuit and send the obtained reference threshold to the threshold generation circuit;

[0008] The threshold generation circuit is used to generate a comparison threshold associated with the current reference threshold each time a reference threshold is received; the control circuit is also used to send the generated comparison threshold to the switch circuit;

[0009] The switch circuit is used to receive the switch signal sent by the control circuit, and control the on and off of the switch according to the switch signal to send different threshold signals to the comparator.

[0010] In one embodiment, the control circuit is further used to: send the acquired reference threshold to the comparator through the switch circuit, so that the comparator performs a numerical comparison based on the reference threshold after receiving the reference threshold.

[0011] In one embodiment, the controller obtains a reference threshold value associated with the timing information in the storage unit according to the timing circuit, and sends the obtained reference threshold value to the threshold generation circuit.

[0012] In one embodiment, the threshold generation circuit is provided with a plurality of output ports, and the output ports are used to output a plurality of the comparison thresholds.

[0013] In one embodiment, the switch circuit includes a plurality of switches, each switch is disposed between the output port and the comparator, and the switch circuit controls the switch to open or close based on a switch signal of the control circuit to send the comparison threshold to the comparator.

[0014] In one embodiment, the switch circuit includes a data selector, and the data selector is electrically connected to the output port of the threshold generation circuit;

[0015] The data selector is used to send the comparison threshold output by the output port to the comparator in sequence based on the switch signal of the control circuit.

[0016] In one embodiment, the threshold generating circuit includes a high potential end and a low potential end; the controller inputs the reference threshold to the high potential end of the threshold generating circuit.

[0017] In one embodiment, the control circuit obtains reference thresholds corresponding to two different moments in the storage unit according to the timing information and sends the two obtained reference thresholds to the threshold generation circuit; wherein the reference threshold corresponding to the earlier moment is the first reference threshold, and the reference threshold corresponding to the later moment is the second reference threshold, the control circuit inputs the first reference threshold to the high potential end of the threshold generation circuit, and the control circuit inputs the second reference threshold to the low potential end of the threshold generation circuit.

[0018] In one embodiment, the threshold generation circuit includes a plurality of resistors connected in series, and the output port is provided between at least one adjacent resistor.

[0019] In one embodiment, the threshold generating circuit includes at least one variable resistor, the control circuit controls the change of its resistance, and the threshold generating circuit outputs the comparison threshold value related to the resistance value of the variable resistor.

[0020] In one embodiment, the frequency with which the control circuit acquires the reference threshold increases with time.

[0021] In a second aspect, an embodiment of the present invention provides an ultrasonic sensor chip, comprising:

[0022] An ultrasonic driving module, a signal processing module, a comparator and a threshold generating circuit provided in the first aspect;

[0023] The ultrasonic driving module is used to send an excitation signal;

[0024] The signal processing module is used to filter the echo signal and then input it into the comparator;

[0025] The threshold generating circuit is used to send a reference threshold or a comparison threshold to the comparator;

[0026] The comparator is used to compare the reference threshold or the comparison threshold with the echo signal.

[0027] In a third aspect, an embodiment of the present invention provides an ultrasonic radar device, including:

[0028] An ultrasonic transducer, a microprocessor, and the ultrasonic sensor chip provided in the first aspect;

[0029] The ultrasonic transducer is used to receive an excitation signal and transmit and receive ultrasonic waves;

[0030] The microprocessor is used to start or shut down the ultrasonic sensor chip and send a trigger signal to the ultrasonic sensor chip;

[0031] The ultrasonic sensor chip is used to receive the trigger signal of the microprocessor, send an excitation signal to the ultrasonic transducer and process the ultrasonic echo.

[0032] In an embodiment of the present invention, the threshold generation circuit includes a storage unit for storing multiple reference thresholds; a timing circuit for timing; a control circuit for acquiring the reference threshold in the storage unit according to the timing information of the timing circuit and sending the acquired reference threshold to the threshold generation circuit; the threshold generation circuit for generating a comparison threshold associated with the current reference threshold each time a reference threshold is received; the control circuit is also used to send the generated comparison threshold to the switch circuit; the switch circuit is used to receive the switch signal sent by the control circuit, and control the on and off of the switch according to the switch signal to send different threshold signals to the comparator. By setting the threshold generation circuit to generate multiple comparison thresholds associated with each reference threshold, the storage space of the memory can be effectively saved and the chip cost can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A schematic diagram of the structure of a threshold value generating circuit provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a curve showing the relationship between a comparison threshold and time provided in an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of a curve showing the relationship between a threshold and time provided in an embodiment of the present invention;

[0037] Figure 4 A schematic diagram of the structure of a threshold value generating circuit provided by an embodiment of the present invention;

[0038] Figure 5 A schematic diagram of the structure of another threshold value generating circuit provided by an embodiment of the present invention;

[0039] FIG6(A) is a schematic diagram of the structure of another threshold value generating circuit provided in an embodiment of the present invention;

[0040] FIG6(B) is a schematic diagram of the structure of another threshold value generating circuit provided in an embodiment of the present invention;

[0041] Figure 7 A schematic diagram of another curve of the relationship between threshold and time provided in an embodiment of the present invention;

[0042] Figure 8 A schematic structural diagram of an ultrasonic radar device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to better understand the technical solution of this specification, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0044] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0045] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0046] In order to solve the problem that the current use of ultrasonic ranging requires pre-storing a large number of mapping relationships between dynamic thresholds and time, resulting in a large amount of memory space being occupied, an embodiment of the present invention provides a threshold generation circuit, which generates a comparison threshold associated with each reference threshold based on a reference threshold, thereby effectively reducing the space occupied by the memory.

[0047] Figure 1 Schematic diagram of a threshold value generating circuit provided by an embodiment of the present invention. Figure 1 As shown, the circuit includes a timing circuit 101 , a storage unit 102 , a control circuit 103 , a threshold generation circuit 104 , a switch circuit 105 and a comparator 106 .

[0048] The control circuit 103 is connected to the storage unit 102 and the timing circuit 101 respectively. The storage unit 102 is used to store multiple reference thresholds, and the timing circuit 101 is used for timing. The control circuit 103 can obtain timing information in the timing circuit, and obtain the reference threshold in the storage unit 102. The control circuit 103 is also connected to the threshold generation circuit 104, the switch circuit 105 and the comparator 106. The threshold generation circuit 104 is connected to the comparator 106 through the switch circuit. After the control circuit 103 obtains the reference threshold, it sends the reference threshold to one input end of the comparator 106, and the other input end of the comparator 106 receives the echo signal. After receiving the reference threshold, the comparator uses the reference threshold as the threshold standard for numerical comparison. If it is determined that the amplitude of the echo signal is greater than the reference threshold, it is determined that the echo signal is an ultrasonic echo.

[0049] There are two ways for the controller to obtain the timing information of the timing circuit: one is that the timing circuit is a timer, and the controller controls the timer to start timing. After the timing ends, the controller reads the data in the storage unit; this cycle repeats, the first time the reference threshold of the first address in the storage unit is read, and the second time the reference threshold of the second address is read... until the specified time ends, the next round of thresholds is output; the other way is that the timing circuit keeps timing, and the controller reads the timing information. When the timing information read is the first timing information, the reference threshold of the first address in the storage unit is read, and when the timing information is the second timing information, the reference threshold of the second address in the storage unit is read... until the specified time ends, the next round of thresholds is output.

[0050] The ultrasonic echo signal will weaken as the distance from the target object increases. Therefore, after the ultrasonic wave is emitted, the longer the echo signal is received, the weaker the ultrasonic echo signal is. In order to make an accurate judgment, the threshold standard of the comparator 106 needs to be reduced accordingly. After the control circuit 103 obtains the reference threshold, in addition to sending it to the comparator 106, the reference threshold is also sent to the threshold generation circuit 104. The threshold generation circuit 104 generates multiple comparison thresholds based on the received reference threshold. The values ​​of the comparison thresholds are different and all are less than the reference threshold. The control circuit 103 sends the above-mentioned comparison thresholds in descending order according to the timing information obtained from the timing circuit 101 to the comparator 106. After each new comparison threshold is received by the comparator 106, the newly received comparison threshold is used as the threshold standard for numerical judgment, so as to achieve the purpose of gradually reducing the threshold standard.

[0051] In one embodiment, after the ultrasonic wave is emitted, the control circuit 103 may obtain timing information in the timing circuit 101. When it is detected that the timing information meets the conditions for obtaining the reference threshold, the control circuit 103 may execute the process of obtaining the reference threshold and sending the reference to the comparator 106 and the threshold generation circuit 104. The threshold generation circuit 104 may generate multiple comparison thresholds associated with the reference threshold based on the reference threshold. Subsequently, the control circuit 103 may sequentially send the comparison thresholds to the comparator 106 according to the time information. When all the comparison thresholds are sent, when it is detected again that the timing information meets the conditions for obtaining the reference threshold, the control circuit 103 may obtain the next reference threshold from the storage unit 102. Each reference threshold in the storage unit 102 has corresponding timing information. After obtaining the timing information, the control circuit 103 may determine whether the current timing information meets the conditions for obtaining the reference threshold. If it does, the reference threshold associated with the current timing information is obtained from the storage unit 102. Generally, the number of comparison thresholds generated by the threshold generation circuit according to a reference threshold is fixed, so the control circuit 103 reads a reference threshold from the storage unit 102 at fixed intervals. In this way, under the condition that the storage unit 102 only stores a small number of reference thresholds, the control circuit 103 can control the threshold generation circuit 104 to generate multiple comparison thresholds, and periodically send the comparison thresholds to the comparator 106. The comparator 106 can more accurately determine whether the echo is an ultrasonic echo by continuously changing the threshold standard, and will not occupy too much storage space of the storage unit 102.

[0052] In one embodiment, in an actual ultrasonic detection scenario, the reading intervals of every two reference thresholds are not necessarily the same. After the ultrasonic wave is emitted, the longer the time from the emission of the ultrasonic wave, the greater the possibility of encountering an obstacle (i.e., the greater the probability of receiving an ultrasonic echo), and the comparator 106 has higher requirements on the accuracy of the threshold standard. Therefore, the frequency of the control circuit obtaining the reference threshold will increase with time, and the reading interval of the reference threshold will gradually decrease, further improving the accuracy of the judgment of the comparator 106.

[0053] In one embodiment, the switch circuit 105 includes a plurality of switches, such as Figure 1 As shown, there are a total of N+1 switches S0-Sn. When the control circuit 103 determines that the timing information meets the condition for obtaining the reference threshold, it reads the reference threshold associated with the current timing information from the storage unit 102, which is recorded as V th1 , the current time is recorded as t0. The control circuit 103 sends a switch signal to the switch circuit, instructing the switch circuit 105 to close S0 and open other switches, V th1 The comparator 106 is inputted through S0, and the comparator 106 is V th1 In addition, the control circuit 103 sets V th1 The threshold value is sent to the threshold generation circuit 104 to generate multiple comparison thresholds. After a preset time, the current time is t1, and the control circuit 103 instructs the switch circuit 105 to close the switch S1, disconnect other switches, and input the comparison threshold value V1 with the largest value into one end of the comparator 106. After each preset time, the control circuit 103 will instruct the switch circuit 105 to turn on the corresponding switch, and output the comparison threshold values ​​in descending order to one end of the comparator 106 for value judgment. Until t n At this moment, the control circuit 103 instructs the switch circuit 105 to close the switch Sn and open the other switches, and to set the comparison threshold value V n The threshold value of the comparator 106 is V at time t0. th1 , V1 at time t1, V1 at time t2, ..., t n The time is V n ,like Figure 2 As shown, its value changes to a curve with a downward trend. The timing circuit 101 continues timing, and the current time is t n+1 The control circuit 103 determines that the current timing information meets the conditions for obtaining the reference threshold value, and obtains the second reference threshold value V from the storage unit 102. th2 . Repeat the above V th1 To V n After that, the control circuit 103 obtains the third reference threshold V th3The same process is repeated until t (n-1)(n+1) At this moment, the control circuit 103 obtains the last reference threshold value V stored in the storage unit 102. thn , directly V thn The value of the threshold value of the comparator 106 can be changed as follows: Figure 3 As shown in FIG. 1 , it is a gently decreasing curve. In this way, a threshold curve can be fitted more accurately using a simple circuit.

[0054] In the embodiment of the present invention, from time t0 to time t (n-1)(n+1) At this moment, the comparator 106 receives a total of n 2 The storage unit 102 only needs to store V th1 To V thn The mapping relationship between a total of n reference thresholds and time greatly reduces the number of values ​​that the storage unit 102 needs to store, effectively saving storage space.

[0055] In one embodiment, the threshold generation circuit 104 includes a plurality of fixed value resistors connected in series, such as Figure 4 As shown, R1 to R n+1 There are n+1 fixed value resistors in total, and an output port is set between every two adjacent fixed value resistors. Each output port is connected to one end of the comparator 106 through a switch. The threshold generation circuit 104 includes a high potential end and a low potential end. After receiving any reference threshold, the reference threshold (voltage value) is input to the high potential end, and the low potential end is grounded. Figure 4 For example, the upper side of R1 is the high potential end, R n+1 The lower end is the low potential end. When S1 is closed and other switches are open, the voltage between R1 and R2 will be output as the comparison threshold to one end of the comparator 106. According to the resistor series voltage division principle, the voltage output between R1 and R2 is the largest, and the voltage output between Rn and Rn+1 is the smallest. The control circuit 103 sends different switch signals to the switch circuit 105, instructing the switch circuit 105 to close S1, S2, ..., Sn in sequence, so that the comparison threshold can be output to one end of the comparator 106 in descending order. With V th1 For example, the threshold value generating circuit 104 sets the value V th1 The voltage is input to R1, V1 will be output between R1 and R2, V2 will be output between R2 and R3, and V will be output between Rn and Rn+1. n .

[0056] In one embodiment, the threshold value generating circuit 104 can also be implemented by at least one variable resistor, the control circuit 103 can control the resistance value of the variable resistor, the threshold value generating circuit 104 inputs the reference threshold value into one end of the variable resistor, and the other end of the variable resistor can output different comparison threshold values ​​through the output port. Specifically, the variable resistor is connected in series with a fixed value resistor (or two variable resistors are connected in series), an output port is set between the two resistors, the other end of the variable resistor is connected to the reference threshold value, and the other end of the fixed value resistor is grounded. When the resistance value of the variable resistor changes, the voltage value of the output port will also change. By replacing multiple fixed value resistors with variable resistors, the control circuit 103 can obtain different comparison threshold values ​​by changing the resistance value of the variable resistor, which can effectively simplify the circuit structure and facilitate control.

[0057] In one embodiment, the switch circuit 105 may include a data selector, such as Figure 5 As shown, the data selector 107 is electrically connected to the output port of the threshold generation circuit 104, and the comparison threshold generated by the threshold generation circuit 104 is used as the input of the data selector 107. The comparison threshold is selectively and sequentially output to the comparator 106 according to the switch signal sent by the control circuit 103. The initial state of the switch circuit 105 is the disconnected state. The control circuit 103 reads the reference threshold and outputs it to the switch circuit 105, and controls the switch circuit 105 to close the switch S0; after the data selector 107 outputs the comparison threshold, the control circuit 103 controls the switch circuit to close the switch S1. In the embodiment of the present invention, replacing a large number of switches with a data selector can greatly reduce the design cost and design difficulty, and can more accurately output the required data according to the received data, thereby preventing the instability that may occur when using multiple switches.

[0058] In one embodiment, the structure of the threshold generation circuit is fixed, but the change of the threshold over time is not a smooth change, and a steep slope may appear, which may lead to a large error. th1 、V th2 ,

[0059] V th3 …input into the threshold generation circuit, the same output terminal will produce different voltage drop ratios. In places where the comparison threshold changes more gently, the error of this method is not large. When the comparison threshold changes more steeply, a larger error will be generated. Under normal circumstances, according to V th1 The generated comparison thresholds should all be greater than V th2 , but considering the above error, according to V th1 The generated comparison threshold V n May be less than V th2. In view of the above situation, the control circuit 103 can obtain two reference thresholds in the storage unit 102 each time, and in addition to the first reference threshold associated with the current timing information, it also obtains the second reference threshold associated with the next timing information. Among them, the first reference threshold associated with the current timing information is sent to the comparator. The control circuit 103 inputs both reference thresholds into the threshold generation circuit 104, wherein the first reference threshold is input to the high potential end of the threshold generation circuit 104, and the second reference threshold is input to the low potential end of the threshold generation circuit 104. As shown in Figure 6 (A), the control circuit 103 is respectively connected to the two ends of the threshold generation circuit 104, and inputs a reference threshold respectively. Specifically, as shown in Figure 6 (B), the control circuit 103 inputs the first reference threshold V corresponding to the current timing information th(i) Input one end (i.e., the high potential end) of multiple series-connected fixed-value resistors, and set the second reference threshold V corresponding to the next timing information th(i+1) Input the other end (i.e., the low potential end) of multiple series-connected fixed-value resistors. According to the series voltage division of the fixed-value resistors, all generated comparison thresholds will be located at V th(i) and V th(i+1) Between th(i) and V th(i+1) The corresponding comparison threshold curve will be more stable. The final numerical curve can be shown as Figure 7 As shown, the solid line curve indicated by arrow 701 is an ideal state, and all values ​​sent to the comparator 106 are stored by the storage unit 102, not just the reference threshold value; the dotted line curve indicated by arrow 702 corresponds to the situation that the storage unit 102 only stores the reference threshold value and the control circuit 103 obtains one reference threshold value each time and inputs it into the threshold value generation circuit 104, and the comparison threshold value obtained is slightly different from the ideal situation; the dot-dash line curve indicated by arrow 703 corresponds to the situation that the storage unit 102 only stores the reference threshold value and the control circuit 103 obtains two reference threshold values ​​each time and inputs them into the threshold value generation circuit 104, and the comparison threshold value obtained is very close to the ideal situation. By inputting the reference threshold values ​​at two moments before and after, it is possible to prevent a large error from being generated when the threshold value changes steeply, further improve the accuracy of the comparison threshold value generation, and fit the actual threshold curve better.

[0060] In the embodiment of the present invention, by setting a threshold generating circuit to generate multiple comparison thresholds associated with each reference threshold, the comparator can make numerical judgments based on more threshold standards, and a large number of varying comparison threshold fitting curves make the detection results more accurate. In addition, since the comparison threshold is a voltage value generated in real time based on the reference threshold, the storage unit only needs to store a small number of reference thresholds, which effectively saves storage space of the memory and reduces chip costs.

[0061] The embodiment of the present invention also provides an ultrasonic sensor chip, which includes: an ultrasonic drive module, a signal processing module, a comparator and the above-mentioned threshold generation circuit. Among them, the ultrasonic drive module is used to send an excitation signal; the signal processing module is used to filter the echo signal and then input it to the comparator; the threshold generation circuit is used to periodically send a reference threshold or a comparison threshold to the comparator; the comparator is used to compare the reference threshold or the comparison threshold with the echo signal to determine whether the echo received in the current environment is the echo of the ultrasonic wave emitted by this ultrasonic sensor chip. Since the above-mentioned threshold generation circuit is installed, the ultrasonic sensor chip can more accurately determine whether the received echo is an ultrasonic echo.

[0062] The embodiment of the present invention further provides an ultrasonic radar device, such as Figure 8 As shown, the device includes: an ultrasonic transducer 801, a microprocessor 802 and the ultrasonic sensor chip 803. The ultrasonic transducer 801 also includes an ultrasonic transmitting sensor and an ultrasonic receiving sensor for transmitting and receiving ultrasonic waves; the microprocessor 802 is used to start or shut down the ultrasonic sensor chip and send a trigger signal to the ultrasonic sensor chip; the ultrasonic sensor chip 803 is used to receive the trigger signal of the microprocessor, send an excitation signal to the ultrasonic transducer and process the ultrasonic echo, and determine whether the ultrasonic echo is a mechanical wave returned by the ultrasonic wave contacting the target object. By loading the ultrasonic sensor chip 803, the ultrasonic radar device can obtain more accurate results when detecting ultrasonic waves.

[0063] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0064] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0065] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0066] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0067] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A threshold generating circuit, characterized in that: include: A storage unit, used for storing a plurality of reference thresholds; Timing circuit, used for timing; a control circuit, configured to acquire a reference threshold value associated with the timing information in the storage unit according to the timing information of the timing circuit and send the acquired reference threshold value to the threshold generation circuit; The threshold generation circuit is used to generate a comparison threshold associated with the current reference threshold each time a reference threshold is received; the control circuit is also used to send the generated comparison threshold to the switch circuit; The switch circuit is used to receive the switch signal sent by the control circuit, and control the on and off of the switch according to the switch signal to send different threshold signals to the comparator; The threshold value generating circuit generates the comparison threshold value by voltage division according to the received reference threshold value.

2. The circuit according to claim 1, characterized in that The control circuit is further configured to: send the acquired reference threshold to the comparator through the switch circuit, so that after receiving the reference threshold, the comparator performs a numerical comparison based on the reference threshold as a standard.

3. The circuit according to claim 1, characterized in that The threshold generation circuit is provided with a plurality of output ports, and the output ports are used to output the plurality of comparison thresholds.

4. The circuit according to claim 3, characterized in that The switch circuit includes a plurality of switches, each of which is disposed between the output port and the comparator. The switch circuit controls the switch to be opened or closed based on a switch signal of the control circuit to send the comparison threshold to the comparator.

5. The circuit according to claim 3, characterized in that The switch circuit includes a data selector, and the data selector is electrically connected to the output port of the threshold generation circuit; The data selector is used to send the comparison threshold output by the output port to the comparator in sequence based on the switch signal of the control circuit.

6. The circuit according to claim 1, characterized in that The threshold value generating circuit includes a high potential terminal and a low potential terminal; the control circuit inputs the reference threshold value to the high potential terminal of the threshold value generating circuit.

7. The circuit according to claim 6, characterized in that The control circuit obtains reference thresholds corresponding to two different moments in the storage unit according to the timing information and sends the two reference thresholds to the threshold generation circuit; wherein the reference threshold corresponding to the earlier moment is the first reference threshold, and the reference threshold corresponding to the later moment is the second reference threshold, the control circuit inputs the first reference threshold to the high potential end of the threshold generation circuit, and the control circuit inputs the second reference threshold to the low potential end of the threshold generation circuit.

8. The circuit according to claim 3, characterized in that The threshold generation circuit includes a plurality of resistors connected in series, and the output port is arranged between at least one adjacent resistor.

9. The circuit according to claim 1, characterized in that The threshold value generating circuit includes at least one variable resistor, the control circuit controls the change of its resistance, and the threshold value generating circuit outputs the comparison threshold value related to the resistance value of the variable resistor.

10. The circuit according to claim 1, characterized in that The frequency at which the control circuit acquires the reference threshold increases with time.

11. An ultrasonic sensor chip, characterized in that: include: An ultrasonic driving module, a signal processing module, a comparator, and a threshold generating circuit as claimed in any one of claims 1 to 10; The ultrasonic driving module is used to send an excitation signal; The signal processing module is used to filter the echo signal and then input it into the comparator; The threshold generating circuit is used to send a reference threshold or a comparison threshold to the comparator; The comparator is used to compare the reference threshold or the comparison threshold with the echo signal.

12. An ultrasonic radar device, characterized in that: include: An ultrasonic transducer, a microprocessor, and an ultrasonic sensor chip as claimed in claim 11; The ultrasonic transducer is used to receive an excitation signal and transmit and receive ultrasonic waves; The microprocessor is used to start or shut down the ultrasonic sensor chip and send a trigger signal to the ultrasonic sensor chip; The ultrasonic sensor chip is used to receive the trigger signal of the microprocessor, send an excitation signal to the ultrasonic transducer and process the ultrasonic echo.