Signal processing method, circuit and temperature sensor

By combining the timing module and the logic module in the circuit, it is judged whether the input signal exceeds the threshold time and outputs the corresponding signal, which solves the problem of signal time judgment and waveform clipping in the circuit, and realizes the functions of time judgment and waveform clipping.

CN118611658APending Publication Date: 2024-09-06WUXI MICRONANO CORE ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410161145.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to effectively judge the signal time in the circuit and tailor the signal waveform according to the judgment result with the existing technology.

Method used

A signal processing method and circuit are provided. Through the combination of timing module and logic module, it is judged whether the input signal exceeds the threshold time, and the first output signal and the second output signal are output according to the judgment result, so as to realize time judgment and waveform clipping.

Benefits of technology

It realizes time judgment and waveform clipping of input signals. It can not only distinguish signals whose input time is greater than or less than the threshold time, but also use the threshold time as the dividing line to cut signals greater than the threshold time into two segments to complete effective waveform processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611658A
    Figure CN118611658A
Patent Text Reader

Abstract

The invention relates to a signal processing method and circuit and a temperature sensor, and the method comprises the steps: starting timing in response to an input signal, and outputting a first output signal; if input of the input signal is ended under the condition that timing does not exceed threshold time, the first output signal is stopped from being output in response to level overturning of the input signal; if the input signal continues to be input under the condition that the timing exceeds the threshold time, when the timing reaches the threshold time, the first output signal is stopped from being output, and the second output signal is output; wherein the sum of the holding time of the first output signal and the holding time of the second output signal is equal to the holding time of the input signal, judging whether the input time of the input signal is greater than the threshold time or not, and determining whether to cut the waveform of the input signal or not according to the time judgment result, so that both time judgment and waveform cutting are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic circuits, and in particular to a signal processing method, a circuit and a temperature sensor. Background Art

[0002] The circuits in the integrated circuit are used to process logic signals. Since synchronous logic also performs reliably in large-scale digital circuits, it is usually designed using a standard synchronous circuit design process. The process of designing circuits based on synchronous logic includes using hardware description languages ​​(VHDL, Verilog, etc.) to describe the circuit structure and function, synthesizing it into a gate-level netlist, and performing layout and routing. In this way, large-scale synchronous digital circuit functions can be constructed. Synchronous circuit functions include time calibration and delay based on the synchronous clock and counter in the synchronous circuit.

[0003] However, there is currently no effective solution for how to determine the signal time based on the circuit and trim the signal waveform according to the determination result. Summary of the invention

[0004] Based on this, it is necessary to provide a signal processing method, circuit and temperature sensor that can both judge time and cut waveform for the above technical problems.

[0005] In a first aspect, the present application provides a signal processing method, the method comprising: in response to an input signal, starting timing, and outputting a first output signal;

[0006] If the input signal ends input when the timing does not exceed the threshold time, in response to the level flipping of the input signal, stop outputting the first output signal;

[0007] If the input signal continues to be input when the timing exceeds the threshold time, then when the timing reaches the threshold time, the first output signal is stopped from being output and the second output signal is output; wherein the sum of the maintenance time of the first output signal and the second output signal is equal to the maintenance time of the input signal.

[0008] In one embodiment, the first output signal is obtained by performing a logic operation on the input signal and the second output signal.

[0009] In one embodiment, the first output signal is obtained by inverting the second output signal and performing AND operation with the input signal.

[0010] In one embodiment, in response to an input signal, starting timing includes:

[0011] Input clock signal;

[0012] In response to the input signal, the time elapsed since the input signal is received is determined based on the number and clock cycle of the clock signal.

[0013] In a second aspect, the present application provides a signal processing circuit, comprising: a counting module and a logic module connected to each other; wherein:

[0014] The counting module is used to start timing in response to an input signal;

[0015] The logic module is used to output a first output signal; if the input signal ends input when the timing does not exceed a threshold time, then in response to a level flip of the input signal, the first output signal is stopped from being output; if the input signal continues to be input when the timing exceeds a threshold time, then when the timing reaches the threshold time, the first output signal is stopped from being output and a second output signal is output; wherein the sum of the maintenance time of the first output signal and the second output signal is equal to the maintenance time of the input signal.

[0016] In one embodiment, the counting module includes: a frequency division circuit, the frequency division circuit includes a plurality of cascaded first trigger units, the reset end of each first trigger unit is connected in parallel to receive the input signal, the complement output end of each first trigger unit is connected to the data input end of the first trigger unit at this level, the complement output end of the first trigger unit of the previous level is connected to the clock input end of the first trigger unit of the next level, and the complement output end of the first trigger unit of the last level is connected to the input end of the logic module.

[0017] In one embodiment, the counting module further includes: a first inverter, an input end of the first inverter is connected to an output end of the frequency dividing circuit, and an output end of the first inverter is connected to the logic module.

[0018] In one embodiment, the logic module includes: a first logic unit and a second trigger unit, the clock input end of the second trigger unit is connected to the counting module, and the main output end of the second trigger unit is connected to the first logic unit; wherein,

[0019] The first logic unit is used to output the first output signal;

[0020] The second trigger unit is used to output the second output signal.

[0021] In one embodiment, the first logic unit includes a second inverter and an AND gate, the input end of the second inverter is connected to the second trigger unit, the output end of the second inverter is connected to the first input end of the AND gate, and the second input end of the AND gate is used to receive the input signal; wherein,

[0022] The AND gate is used to output the first output signal.

[0023] In one embodiment, the logic module further includes: a second logic unit, the input end of the second logic unit is used to receive the input signal, and the output end of the second logic unit is connected to the reset end of the second trigger unit; wherein,

[0024] The second logic unit is used for outputting a short pulse signal in response to the level inversion of the input signal.

[0025] In one embodiment, the second logic unit includes: a delay circuit, a third inverter and an OR gate, the delay circuit is used to receive the input signal, the output end of the delay circuit is connected to the input end of the third inverter, the output end of the third inverter is connected to the first input end of the OR gate, the second input end of the OR gate is used to receive the input signal, and the output end of the OR gate is connected to the reset end of the second trigger unit.

[0026] In a third aspect, the present application provides a temperature sensor, which includes a thermistor module, a power management module and a data processing module, and the data processing module is used to implement the signal processing method described in the first aspect above.

[0027] The above signal processing method, circuit and temperature sensor time the input signal and judge whether the input time of the input signal is greater than the threshold time. According to the time judgment result, it is determined whether to cut the waveform of the input signal, so as to obtain the first output signal and the second output signal, which realizes both time judgment and waveform cutting. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 is a flow chart of a signal processing method in one embodiment;

[0030] Figure 2 The effect of the signal processing method in one embodiment is shown as follows Figure 1 ;

[0031] Figure 3 The effect of the signal processing method in one embodiment is shown as follows Figure 2 ;

[0032] Figure 4 FIG. 1 is a schematic diagram of the structure of a signal processing circuit in an embodiment. Figure 1 ;

[0033] Figure 5 is a schematic structural diagram of a frequency division circuit in one embodiment;

[0034] Figure 6 FIG. 1 is a schematic diagram of the structure of a signal processing circuit in an embodiment. Figure 2 ;

[0035] Figure 7 FIG. 1 is a schematic diagram of the signal timing of a signal processing circuit in an embodiment. Figure 1 ;

[0036] Figure 8 FIG. 1 is a schematic diagram of the signal timing of a signal processing circuit in an embodiment. Figure 2 ;

[0037] Fig. 9 is a schematic diagram of the structure of a temperature sensor in one embodiment;

[0038] Fig.10 FIG. 4 is a schematic diagram of the structure of a temperature sensor in another embodiment.

[0039] Description of reference numerals:

[0040] 1. Signal processing circuit; 11. Counting module; 12. Logic module; 111. Frequency division circuit; 112. First inverter; 113. First trigger unit; 114. Capacitor; 121. Second trigger unit; 122. Second inverter; 123. AND gate; 124. Delay circuit; 125. Third inverter; 126. OR gate; 2. Temperature sensor; 21. Thermistor; 211. Thermistor; 212. Series voltage divider resistor; 22. Power management module; 23. Data processing module; 231. Amplitude threshold judgment unit; 24. Analog-to-digital converter; CK, clock input terminal; Rst, reset terminal; D, data input terminal of trigger; Q, main output terminal of trigger; Q', complement output terminal of trigger. DETAILED DESCRIPTION

[0041] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0043] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0044] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0045] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.

[0046] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0047] In one embodiment, Figure 1 As shown, a signal processing method is provided. In this embodiment, the method includes the following steps:

[0048] Step S101, in response to an input signal, start timing and output a first output signal;

[0049] Step S102, determining whether the input signal ends input when the timing does not exceed the threshold time. If the input signal ends input when the timing does not exceed the threshold time, executing step S103; if the input signal continues input when the timing exceeds the threshold time, executing step S104;

[0050] Step S103, in response to the level flipping of the input signal, stop outputting the first output signal;

[0051] Step S104, when the timing reaches the threshold time, stop outputting the first output signal and output the second output signal; wherein the sum of the maintenance time of the first output signal and the second output signal is equal to the maintenance time of the input signal.

[0052] The threshold time is used to determine the maintenance time of the input signal. If the timing does not exceed the threshold time, the input signal is not clipped and the first output signal is obtained; if the timing exceeds the threshold time, the input signal is clipped to obtain the first output signal and the second output signal.

[0053] Optionally, the input signal is a square wave, and the timing is started in response to the rising edge of the square wave. If the square wave width of the input signal is less than the threshold time, the input signal ends input when the timing does not exceed the threshold time; otherwise, the input signal continues input when the timing exceeds the threshold time.

[0054] The signal processing method provided in this embodiment times the input signal and determines whether the input time of the input signal is greater than the threshold time. According to the time judgment result, it is determined whether to cut the waveform of the input signal, thereby obtaining the first output signal and the second output signal.

[0055] In order to understand the principles and effects of signal processing methods, Figure 2 The effect of the signal processing method of this embodiment is shown as follows: Figure 1 , Figure 3 The effect of the signal processing method of this embodiment is shown as follows: Figure 2 .like Figure 2 As shown, the ordinate is the level and the abscissa is the time. Output A is the first output signal and output B is the second output signal. When the input signal ends input without exceeding the threshold time, the first output signal A is equal to the input signal, and the second output signal B is always at a logic low level. Figure 3 As shown, when the input signal continues to be input when the timing exceeds the threshold time, the input signal is cut into two output segments: the duration of the first output signal A starts from the rising edge of the input signal and ends after the threshold time; the duration of the second output signal B starts from the moment when the first output signal A stops being output and ends at the moment when the input signal stops being output. It can be seen that the signal processing method of this embodiment can not only distinguish input signals whose input time is greater than or less than the threshold time to realize the time judgment function, but also can use the threshold time as a dividing line to cut the input signal whose time is greater than the threshold time into two segments to complete the waveform cutting function.

[0056] It should be understood that although Figure 1The various steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0057] In one embodiment, the first output signal is obtained by performing a logic operation on the input signal and the second output signal. The logic operation includes at least one of the following: a logic AND operation, a logic OR operation, and a logic NOT operation. Exemplarily, the first output signal is obtained by performing a AND operation on the inverted second output signal and the input signal.

[0058] If the input signal ends input when the timing does not exceed the threshold time, the second output signal is not output, that is, the second output signal continues to be at a low level. After the second output signal is inverted, a high level is obtained. The high level signal and the input signal are ANDed to obtain the first output signal with the same level and holding time as the input signal.

[0059] If the input signal ends when the timing exceeds the threshold time, the second output signal is output, and the level of the second output signal is the same as the level of the input signal. After the second output signal is inverted, the level of the second output signal is opposite to the level of the input signal. After the second output signal and the input signal are ANDed, the sum of the holding time of the first output signal and the holding time of the second output signal is equal to the holding time of the input signal.

[0060] In one embodiment, in response to an input signal, starting timing includes: inputting a clock signal; in response to the input signal, determining the time elapsed since receiving the input signal based on the number of clock signals and the clock cycle; and determining the time elapsed since receiving the input signal based on the product of the number of clock signals counted and the clock cycle.

[0061] In one embodiment, based on the same inventive concept, a signal processing circuit for implementing the above-mentioned signal processing method is provided. Figure 4 is a schematic diagram of the structure of the signal processing circuit of this embodiment Figure 1 ,like Figure 4As shown, the signal processing circuit 1 includes: a counting module 11 and a logic module 12 connected to each other; wherein the counting module 11 is used to start timing in response to an input signal; the logic module 12 is used to output a first output signal; if the input signal ends input when the timing does not exceed a threshold time, then in response to a level flip of the input signal, the first output signal is stopped from being output; if the input signal continues to be input when the timing exceeds a threshold time, then when the timing reaches the threshold time, the first output signal is stopped from being output and a second output signal is output; wherein the sum of the holding time of the first output signal and the second output signal is equal to the holding time of the input signal.

[0062] The signal processing circuit 1 provided in this embodiment corresponds to the signal processing method provided above, and determines whether the input signal is greater than the threshold time through the timing module to realize the time judgment function. At the same time, through the logic module 12, the input signal greater than the threshold time is cut into two sections with the threshold time as the dividing line to realize the waveform cutting function.

[0063] In some embodiments, the counting module 11 includes: a frequency division circuit 111, the frequency division circuit 111 includes a plurality of cascaded first trigger units 113, the reset end of each first trigger unit 113 is connected in parallel to receive an input signal, the complement output end Q' of each first trigger unit 113 is connected to the data input end D of the first trigger unit 113 of the current stage, the complement output end of the first trigger unit 113 of the previous stage is connected to the clock input end of the first trigger unit 113 of the next stage, and the complement output end of the first trigger unit 113 of the last stage is connected to the input end of the logic module 12.

[0064] The clock input terminal of the first-stage first trigger unit 113 is used to receive the clock signal. According to the connection relationship of each first trigger unit 113, in this embodiment, the first flip of the output logic of the frequency division circuit 111 occurs after N clock cycles, where the clock cycle is the cycle of the clock signal, and N is the number of stages of the first trigger unit 113 in the frequency division circuit 111.

[0065] The first trigger unit 113 shown above can use a D flip-flop. The D flip-flop in the figure is only an optional method. In some embodiments, the D flip-flop can be obtained by combining other types of flip-flops and logic gates. For example, a "D flip-flop" is obtained by combining an RS flip-flop or a JK flip-flop with an inverter.

[0066] Exemplarily, when the input signal is not input to the signal processing circuit 1 , the frequency dividing circuit 111 is in a continuous reset state; after the input signal starts to be input, the frequency dividing circuit 111 operates in response to the input signal.

[0067] The counting module 11 further includes: a first inverter 112, the input end of the first inverter 112 is connected to the output end of the frequency dividing circuit 111, and the output end of the first inverter 112 is connected to the logic module 12. If the signal level output by the frequency dividing circuit 111 when it is reset is the same as the level required for the logic unit to work, the counting module 11 includes the frequency dividing circuit 111 and the first inverter 112. Through the first inverter, when the input signal is not input into the signal processing circuit 1, the signal level output by the counting module 11 does not trigger the operation of the logic unit.

[0068] Exemplarily, the signal level of the triggering logic unit is a high-level signal, and the signal level output by the frequency dividing circuit 111 when it is in a continuous reset state is also a high-level signal. Then, through the first inverter 112, when the frequency dividing circuit 111 is in a continuous reset state, the signal level output by the counting module 11 is a low-level signal, and the operation of the logic unit is not triggered, so that the input signal is not input into the signal processing circuit 1, and the signal processing circuit 1 does not generate an output signal.

[0069] The logic module 12 includes: a first logic unit and a second trigger unit 121, the clock input end of the second trigger unit 121 is connected to the counting module 11, and the main output end of the second trigger unit 121 is connected to the first logic unit; wherein the first logic unit is used to output a first output signal; and the second trigger unit 121 is used to output a second output signal.

[0070] The second trigger unit 121 in the logic module 12 may be a D trigger or other types of triggers.

[0071] Optionally, if the duration of the input signal is greater than the threshold time, the second trigger unit 121 operates in response to the signal output by the counting module 11 from the threshold time until the input signal stops inputting.

[0072] Optionally, the first logic unit includes a second inverter 122 and an AND gate 123, wherein the input end of the second inverter 122 is connected to the second trigger unit 121, the output end of the second inverter 122 is connected to the first input end of the AND gate 123, and the second input end of the AND gate 123 is used to receive an input signal; wherein the AND gate 123 is used to output a first output signal. At this time, the inverted second output signal and the input signal are ANDed to obtain the first output signal.

[0073] The logic module 12 also includes: a second logic unit, the input end of the second logic unit is used to receive an input signal, and the output end of the second logic unit is connected to the reset end of the second trigger unit 121; wherein the second logic unit is used to respond to the level flip of the input signal and output a short pulse signal.

[0074] The short pulse signal is a signal for resetting the second trigger unit 121. According to the reset requirement of the second trigger unit 121, the short pulse signal can be a short negative pulse signal or a short positive pulse signal. When the level of the input signal is reversed, the second logic unit outputs a short pulse signal to the second trigger unit 121, so that the second trigger unit 121

[0075] Optionally, the second logic unit includes: a delay circuit 124, a third inverter 125 and an OR gate 126, the delay circuit 124 is used to receive an input signal, the output end of the delay circuit 124 is connected to the input end of the third inverter 125, the output end of the third inverter 125 is connected to the first input end of the OR gate 126, the second input end of the OR gate 126 is used to receive the input signal, and the output end of the OR gate 126 is connected to the reset end of the second trigger unit 121. When the input signal is at a falling edge, the second logic unit composed of the delay circuit 124, the third inverter 125 and the OR gate 126 outputs a short negative pulse signal. The short negative pulse signal is used to reset the second trigger unit 121.

[0076] Figure 6 A schematic diagram of the structure of a signal processing circuit 1 is given. Figure 2 ,like Figure 6 As shown, the second trigger unit 121 in the signal processing circuit 1 is a D flip-flop. The CK terminal of the frequency dividing circuit 111 is used to receive a clock signal, and the Rst terminal of the frequency dividing circuit 111 is used to receive an input signal.

[0077] The signal processing circuit 1 further includes a capacitor 114. One end of the capacitor 114 is connected to the output end of the first inverter 112, and the other end of the capacitor 114 is grounded. The capacitor 114 is used to filter the signal output by the counting module 11 to prevent the CK end of the D flip-flop from being falsely triggered by glitches.

[0078] The working principle of the above signal processing circuit will be explained below based on two types of pulse signal situations.

[0079] Case 1: The duration of the input signal does not exceed the threshold time. Figure 7 A signal timing diagram of a signal processing circuit 1 is given. Figure 1 . Figure 7 This shows the case where the input signal ends before the threshold time, such as Figure 7 As shown, when the input signal is not input to the signal processing circuit 1, the reset terminal Rst of the frequency dividing circuit 111 is 0. At this time, the frequency dividing circuit 111 is in a continuous reset state and continuously outputs a high level.

[0080] When the input signal is input to the signal processing circuit 1, the reset terminal Rst of the frequency divider circuit 111 responds to the rising edge of the input signal, and cancels the reset state of the frequency divider circuit 111. The frequency divider circuit 111 in the working state outputs a high-level signal, and will flip after N clock cycles. Before the output of the frequency divider circuit 111 flips, the reset terminal Rst of the frequency divider circuit 111 responds to the falling edge of the input signal, Rst=0, and the frequency divider circuit 111 enters the continuous reset state again and outputs a high-level signal.

[0081] The high-level signal passes through the first inverter 112, and outputs a continuous low-level signal to the CK terminal of the D flip-flop, that is, the D flip-flop is never triggered, and outputs a low level, that is, the second output signal is not output. Although the second logic unit composed of the delay circuit 124, the third inverter 125 and the OR gate 126 generates a short negative pulse signal to the Rst terminal of the D flip-flop in response to the falling edge of the input signal. However, since the D flip-flop has not been triggered, regardless of whether the D flip-flop is reset, its output is always low, that is, the second output signal is never generated.

[0082] When the time width of the input square wave is less than the threshold time, the second output signal is always a low level signal. The first output signal obtained by inverting the second output signal and performing AND operation with the input signal is the same as the input signal.

[0083] Case 2: The input signal maintenance time exceeds the threshold time. Figure 8 A signal timing diagram of a signal processing circuit 1 is given. Figure 2 . Figure 8 It shows the situation where the input signal ends after the threshold time, such as Figure 8 As shown, when the input signal is not input to the signal processing circuit 1, the reset terminal Rst of the frequency dividing circuit 111 is 0. At this time, the frequency dividing circuit 111 is in a continuous reset state and continuously outputs a high level. After the input signal is input to the signal processing circuit 1, the reset terminal Rst of the frequency dividing circuit 111 responds to the rising edge of the input signal, cancels the reset state of the frequency dividing circuit 111, and the frequency dividing circuit 111 outputs a high level signal. The high level signal passes through the first inverter 112 and outputs a continuous low level signal to the CK terminal of the D flip-flop, that is, the D flip-flop is never triggered and outputs a low level, that is, the second output signal is not output.

[0084] The signal output by the frequency divider circuit 111 flips after N clock cycles, wherein the N clock cycles are the same as the duration of the threshold time, i.e., the frequency divider circuit 111 in the working state outputs a falling edge after the threshold time. After the falling edge passes through the first inverter 112, it is input to the CK terminal of the D flip-flop, triggering the D flip-flop. The D flip-flop starts to output a high-level signal, i.e., after the threshold time, the signal processing circuit 1 starts to output a second-level signal.

[0085] In response to the falling edge of the input signal, the reset terminal Rst of the frequency divider circuit 111 is 0, and the frequency divider circuit 111 is in a continuous reset state again. The high-level signal passes through the first inverter 112 and outputs a low-level signal to the D flip-flop. At the same time, the second logic unit composed of the delay circuit 124, the third inverter 125 and the OR gate 126 generates a short negative pulse signal to the Rst terminal of the D flip-flop in response to the falling edge of the input signal. The D flip-flop outputs a low-level signal in response to the negative pulse signal, that is, after the input signal ends, the signal processing circuit 1 stops outputting the second-level signal.

[0086] When the time width of the input square wave is greater than the threshold time, after the threshold time, the D flip-flop starts to output the second output signal until the input signal stops inputting. After the second output signal is inverted, it is ANDed with the input signal to obtain the first output signal. The first output signal is the same as the input signal within the threshold time.

[0087] It should be noted that in Figure 8 In the figure, the triggering and resetting of the D flip-flop are described as positive logic, that is, the CK terminal is triggered based on the rising edge, and the rnst terminal is reset based on the high level. But in fact, the triggering and resetting logic of the D flip-flop can be freely designed, for example, the triggering and resetting are described as negative logic. The output of the frequency dividing circuit 111 is described as outputting a high level in the reset state. In fact, the frequency dividing circuit 111 can also be designed to output a low level. In this case, the counting module 11 does not include the first inverter 112.

[0088] In this embodiment, the signal processing circuit 1 uses a synchronous clock signal to implement threshold time judgment in a large time range, and at the same time, it cuts the input signal based on an asynchronous circuit design, thereby implementing input time judgment and waveform cutting of the input signal.

[0089] In the related art, synchronous logic can be applied to large-scale integrated circuit design, but it has the disadvantages of high power consumption and slow speed. Asynchronous circuits rely on a large number of delay circuits to achieve correct signal processing timing. Although they have low power consumption and high speed, when the application scenario requires a large delay, it is necessary to achieve signal synchronization at the cost of a huge hardware area. In this embodiment, the signal processing circuit 1 combines the synchronous circuit and the asynchronous circuit, combining the advantages of low circuit power consumption in the synchronous circuit and the advantages of small hardware area in the asynchronous circuit, and realizing a circuit with large delay function characteristics at a small hardware cost and low power consumption.

[0090] In one embodiment, Fig. 9 A temperature sensor 2 is given. Fig. 9As shown, the temperature sensor 2 includes a thermistor module 21, a power management module 22 and a data processing module 23. The data processing module 23 is used to implement the signal processing method in any of the above method embodiments.

[0091] Optionally, the data processing module 23 includes the signal processing circuit 1 described above.

[0092] In one embodiment, Fig.10 Another temperature sensor 2 is given, such as Fig.10 As shown, the temperature sensor 2 includes a thermistor module 21 , a power management module 22 , a data processing module 23 and an analog-to-digital converter 24 .

[0093] The thermistor module 21 includes a thermistor 211 and a series voltage divider resistor 212. The power management module 22 includes a reference voltage source and a low-dropout linear regulator, and the reference voltage source outputs a signal to the low-dropout linear regulator for voltage stabilization. The data processing module 23 includes an amplitude threshold judgment unit 231 and a signal processing circuit 1. The amplitude threshold judgment unit 231 includes a counter and a digital comparator connected to each other.

[0094] The power management module 22 is used to receive external power, and the output end of the power management module 22 is respectively connected to the data processing module 23, the power supply end of the analog-to-digital converter 24, and the first end of the series voltage-dividing resistor 212. The input end of the analog-to-digital converter 24 is respectively connected to the second end of the series voltage-dividing resistor 212 and the first end of the thermistor 211. The second end of the thermistor 211 is grounded. The output end of the analog-to-digital converter 24 is connected to the data processing module 23, and the data processing module 23 is used to output the processed signal.

[0095] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", 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 application. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.

[0096] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0097] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A signal processing method, characterized in that: include: In response to an input signal, starting timing and outputting a first output signal; If the input signal ends input when the timing does not exceed the threshold time, in response to the level flipping of the input signal, stop outputting the first output signal; If the input signal continues to be input when the timing exceeds the threshold time, then when the timing reaches the threshold time, the first output signal is stopped and the second output signal is output; wherein the sum of the maintenance time of the first output signal and the second output signal is equal to the maintenance time of the input signal.

2. The signal processing method according to claim 1, characterized in that: The first output signal is obtained by performing a logic operation on the input signal and the second output signal.

3. The signal processing method according to claim 1 or 2, characterized in that: The first output signal is obtained by inverting the second output signal and performing AND operation with the input signal.

4. The signal processing method according to claim 1, characterized in that: In response to an input signal, timing is started, including: Input clock signal; In response to the input signal, the time elapsed since the input signal is received is determined based on the number and clock cycle of the clock signal.

5. A signal processing circuit, characterized in that: include: Interconnected counting modules and logic modules; wherein, The counting module is used to start timing in response to an input signal; The logic module is used to output a first output signal; if the input signal ends input when the timing does not exceed a threshold time, then in response to a level flip of the input signal, the first output signal is stopped from being output; if the input signal continues to be input when the timing exceeds a threshold time, then when the timing reaches the threshold time, the first output signal is stopped from being output and a second output signal is output; wherein the sum of the maintenance time of the first output signal and the second output signal is equal to the maintenance time of the input signal.

6. The signal processing circuit according to claim 5, characterized in that: The counting module includes: a frequency division circuit, which includes a plurality of cascaded first trigger units, the reset end of each first trigger unit is connected in parallel to receive the input signal, the complement output end of each first trigger unit is connected to the data input end of the first trigger unit at this level, the complement output end of the first trigger unit at the previous level is connected to the clock input end of the first trigger unit at the next level, and the complement output end of the first trigger unit at the last level is connected to the input end of the logic module.

7. The signal processing circuit according to claim 6, characterized in that: The counting module further includes: a first inverter, an input end of the first inverter is connected to an output end of the frequency dividing circuit, and an output end of the first inverter is connected to the logic module.

8. The signal processing circuit according to claim 5, characterized in that: The logic module includes: a first logic unit and a second trigger unit, the clock input end of the second trigger unit is connected to the counting module, and the main output end of the second trigger unit is connected to the first logic unit; wherein, The first logic unit is used to output the first output signal; The second trigger unit is used to output the second output signal.

9. The signal processing circuit according to claim 8, characterized in that: The first logic unit includes a second inverter and an AND gate, the input end of the second inverter is connected to the second trigger unit, the output end of the second inverter is connected to the first input end of the AND gate, and the second input end of the AND gate is used to receive the input signal; wherein, The AND gate is used to output the first output signal.

10. The signal processing circuit according to claim 8, characterized in that: The logic module further includes: a second logic unit, the input end of the second logic unit is used to receive the input signal, and the output end of the second logic unit is connected to the reset end of the second trigger unit; wherein, The second logic unit is used for outputting a short pulse signal in response to the level inversion of the input signal.

11. The signal processing circuit according to claim 10, characterized in that: The second logic unit includes: a delay circuit, a third inverter and an OR gate, the delay circuit is used to receive the input signal, the output end of the delay circuit is connected to the input end of the third inverter, the output end of the third inverter is connected to the first input end of the OR gate, the second input end of the OR gate is used to receive the input signal, and the output end of the OR gate is connected to the reset end of the second trigger unit.

12. A temperature sensor, characterized in that: The temperature sensor comprises a thermistor module, a power management module and a data processing module, and the data processing module is used to implement the signal processing method according to any one of claims 1 to 4.