Capacitance detection circuit, capacitance detection system and electronic device
By using the capacitance control delay circuit and the digital control delay circuit in the capacitance detection circuit to control the delay time based on the reference clock signal, and combining the digital phase detector and processing circuit to lock the phase difference of the clock signal, the problem of capacitance detection accuracy being affected by noise is solved. High-precision capacitance detection is achieved.
Patent Information
- Application Number
- CN202010296813.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-04-15
AI Technical Summary
Existing capacitance detection technology is affected by circuit noise, resulting in reduced detection accuracy.
A capacitance detection circuit is designed. The delay time is controlled based on the same reference clock signal through the capacitance control delay circuit and the digital control delay circuit, and a clock signal related to the capacitance value of the capacitor to be measured is generated. A digital phase detector and processing circuit are used. Lock the phase difference of the clock signal to determine the capacitance value and reduce the impact of noise.
It is realized that different clock delays can be generated according to different capacitance values without time domain charging and discharging, which improves the accuracy of capacitance detection and reduces the impact of circuit noise on the detection process.
Smart Images

Figure CN111398689B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of capacitance detection, and more specifically, to a capacitance detection circuit, a capacitance detection system, and an electronic device. Background Art
[0002] Capacitive touch devices are widely used in electronic devices. For example, they can be used as input devices to provide input information, such as position, movement, force, and duration information. The core part of the capacitive touch device is the capacitance detection circuit. In the related technology of capacitance detection, capacitance detection based on time domain is a mainstream detection method. The specific implementation is to charge the capacitor to be tested, convert the charge of the capacitor to be tested into voltage, or convert the change in the charge charged by the capacitor to be tested into voltage, and further process the voltage to determine the capacitance value of the capacitor to be tested. For example, the voltage is converted into a digital signal after sampling by an analog to digital converter (ADC), and then capacitance detection can be performed according to the digital signal. The above method for capacitance detection will be affected by circuit noise, reducing the detection accuracy of capacitance detection. Summary of the invention
[0003] The embodiments of the present application provide a capacitance detection circuit, a capacitance detection system, and an electronic device, which can reduce the influence of circuit noise on capacitance detection, thereby improving the detection accuracy of capacitance detection.
[0004] In a first aspect, a capacitance detection circuit is provided, connected to a capacitor to be tested, comprising:
[0005] A capacitance-controlled delay circuit, configured to generate a first clock signal according to a reference clock signal and a capacitance value of the capacitor to be measured, wherein the first clock signal has a first delay time relative to the reference clock signal, and the first delay time is positively correlated with the capacitance value of the capacitor to be measured;
[0006] A delay locked loop (DLL) circuit, comprising: a digital phase detector and a digitally controlled delay circuit, wherein the digital phase detector comprises a first input terminal, a second input terminal and an output terminal, the first input terminal of the digital phase detector is connected to the output terminal of the capacitor controlled delay circuit, and the second input terminal of the digital phase detector is connected to the output terminal of the digitally controlled delay circuit;
[0007] The digital phase detector is used to receive the first clock signal and the second clock signal output by the digitally controlled delay circuit, and output a first digital signal according to the phase of the first clock signal and the second clock signal, and the output end of the digital phase detector is used to output the first digital signal;
[0008] The digitally controlled delay circuit is used to control the delay time of the output second clock signal according to the reference clock signal and the first digital signal, and output the second clock signal to the second input terminal of the digital phase detector, wherein the second clock signal has a second delay time relative to the reference clock signal;
[0009] Wherein, when the DLL circuit is locked, the difference between the first delay time and the second delay time is N cycles of the reference clock signal, where N is an integer, and the first digital signal output by the digital phase detector when the DLL circuit is locked is used to determine the capacitance value of the capacitor to be measured.
[0010] In some optional implementations, when the DLL circuit is locked, the first delay time and the second delay time are equal.
[0011] In some optional implementations, the DLL circuit further includes:
[0012] A processing circuit is connected to the digital phase detector and the digitally controlled delay circuit, and is used to receive the first digital signal output by the digital phase detector, process the first digital signal, and output the processed first digital signal to the input end of the digitally controlled delay circuit, wherein the processed first digital signal is used to control the delay time of the second clock signal, and the processing includes at least one of the following: integration processing, signal amplification or reduction processing, and filtering processing.
[0013] In some optional implementations, the digitally controlled delay circuit includes:
[0014] A digital-to-analog converter DAC, comprising an input end and an output end, wherein the input end is connected to the output end of the processing circuit, the DAC is used to convert a first digital signal processed by the processing circuit into a first analog signal, and the output end is used to output the first analog signal;
[0015] An analog controlled delay line comprises a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the analog controlled delay line is connected to the output terminal of the DAC and is used to receive the first analog signal, the second input terminal of the analog controlled delay line is used to input the reference clock signal, the analog controlled delay line is used to control the delay time of the second clock signal according to the first analog signal and the reference clock signal, and the output terminal of the analog controlled delay line is used to output the second clock signal.
[0016] In some optional implementations, the analog controlled delay line includes a plurality of delay units connected in series, each delay unit includes a first end and a second end, the first end of each delay unit is used to input the reference clock signal, the second end of each delay unit is used to input the first analog signal, the first analog signal is used to control the delay time corresponding to each delay unit, and the second delay time is the total delay time of the plurality of delay units.
[0017] In some optional implementations, the first analog signal is an analog voltage, and the analog controlled delay line is a voltage-controlled delay line VCDL.
[0018] In some optional implementations, the capacitance detection circuit further includes:
[0019] a processing unit, configured to determine whether the capacitance value of the capacitor to be tested has changed relative to a base capacitance according to the processed first digital signal output by the processing circuit when the DLL is locked, wherein the base capacitance is a capacitance value of the capacitor to be tested when it is not touched or approached by an external object.
[0020] In some optional implementations, the capacitor to be tested is a mutual capacitance capacitor or a self-capacitance capacitor.
[0021] In a second aspect, a capacitance detection system is provided, comprising: a capacitor to be tested; and
[0022] As in the capacitance detection circuit in the first aspect or any optional implementation of the first aspect, the capacitance detection circuit is connected to the capacitor to be measured, and the capacitance detection circuit is used to detect the capacitance value of the capacitor to be measured.
[0023] In a third aspect, an electronic device is provided, comprising the capacitance detection system in the second aspect or any optional implementation of the second aspect.
[0024] Based on the above technical solution, by configuring the capacitor-controlled delay circuit and the digitally controlled delay circuit to control the delay time based on the same reference clock signal, the delay time of the second clock signal output by the digitally controlled delay circuit can be related to the delay time of the first clock signal output by the capacitor-controlled delay circuit, and the delay time of the second clock signal is controlled according to the first digital signal output by the digital phase detector, that is, the delay time of the first digital signal is related to the delay time of the first clock signal, and the delay time of the first clock signal is related to the capacitance value of the capacitor to be measured. Therefore, the first digital signal is related to the capacitance value of the capacitor to be measured, and the capacitance value of the capacitor to be measured can be determined according to the first digital signal.
[0025] Therefore, the present application performs capacitance detection based on the principle that different capacitance values can produce different clock delays. It does not require a time domain charging and discharging process for the capacitor to be tested, which is beneficial to reducing the impact of circuit noise on the capacitance detection process, thereby improving the accuracy of capacitance detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic structural diagram of a capacitance detection device according to an embodiment of the present application.
[0027] Figure 2 is a schematic structural diagram of a digitally controlled delay circuit according to an embodiment of the present application.
[0028] Figure 3 is a schematic circuit diagram of a voltage-controlled delay line according to an embodiment of the present application.
[0029] Figure 4 is a schematic block diagram of a capacitance detection system according to an embodiment of the present application.
[0030] Figure 5 is a schematic block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be understood as being limited to the embodiments described herein; on the contrary, these embodiments are provided so that the present application will be comprehensive and complete, and the concept of the exemplary embodiments will be fully conveyed to those skilled in the art.
[0032] In addition, the described features and structures may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that, without one or more of the specific details, or by adopting other structures, components, etc., the technical scheme of the present application may also be put into practice. In other cases, known structures or operations are not shown or described in detail to avoid blurring the present invention.
[0033] Further, the following terms are exemplary and are not intended to be limiting in any way. After reading this application, those skilled in the art will recognize that these terms are applicable to technologies, methods, physical elements, and systems (whether currently known or not), including extensions thereof that are inferred or inferred by those skilled in the art after reading this application.
[0034] Figure 1is a schematic block diagram of a capacitance detection circuit 10 according to an embodiment of the present application, wherein the capacitance detection circuit 10 is connected to a capacitor 20 to be tested, such as Figure 1 As shown, the capacitance detection circuit 10 includes:
[0035] A capacitance control delay circuit 11, configured to generate a first clock signal CLK1 according to a reference clock signal CLK_REF and a capacitance value of the capacitor to be measured 20, wherein the first clock signal CLK1 has a first delay time relative to the reference clock signal CLK_REF, and the first delay time is positively correlated with the capacitance value of the capacitor to be measured 20;
[0036] The delay locked loop DLL circuit 12 comprises: a digital phase detector 121 and a digitally controlled delay circuit 123, wherein the digital phase detector comprises a first input terminal, a second input terminal and an output terminal, the first input terminal of the digital phase detector 121 is connected to the output terminal of the capacitor controlled delay circuit 11, and the second input terminal of the digital phase detector 121 is connected to the output terminal of the digitally controlled delay circuit 123;
[0037] The digital phase detector 121 is used to receive the first clock signal CLK1 and the second clock signal CLK2 output by the digitally controlled delay circuit 121, and output a first digital signal D1 according to a phase shift between the first clock signal CLK1 and the second clock signal CLK2, and the output end of the digital phase detector 121 is used to output the first digital signal D1;
[0038] The digitally controlled delay circuit 123 is used to control the delay time of the second clock signal CLK2 according to the reference clock signal CLK1 and the first digital signal D1, and input the second clock signal CLK2 to the second input terminal of the digital phase detector 121, and the second clock signal CLK2 has a second delay time relative to the reference clock signal CLK_REF;
[0039] When the DLL circuit 12 is locked, the difference between the first delay time and the second delay time is N cycles of the reference clock signal, where N is an integer. When the DLL circuit 12 is locked, the first digital signal D1 output by the digital phase detector 121 is used to determine the capacitance value of the capacitor 20 to be tested.
[0040] In an embodiment of the present application, the reference clock signal CLK_REF may be generated by a reference clock source with low noise. The implementation of the reference clock source may refer to the relevant implementation of the prior art, and the present application does not limit this.
[0041] In the embodiment of the present application, the capacitance control delay circuit 11 is a delay circuit controlled by the capacitance value of the capacitor 20 to be measured, that is, the change in the capacitance value of the capacitor 20 to be measured can change the delay time of the clock signal output by the capacitance control delay circuit 11. Specifically, the capacitance control delay circuit 11 can generate a first clock signal CLK1 according to the capacitance value of the capacitor 20 to be measured, and the first clock signal CLK1 has a first delay time relative to the reference clock signal CLK_REF input by the capacitance control delay circuit 11, and the first delay time is positively correlated with the capacitance value of the capacitor 20 to be measured, that is, the larger the capacitance value of the capacitor 20 to be measured, the larger the delay time of the first clock signal CLK1 relative to the reference clock signal CLK_REF, that is, the delay time of the first clock signal CLK1 can reflect the capacitance value of the capacitor 20 to be measured.
[0042] The DLL circuit 12 can control the delay time of the output second clock signal CLK2 according to the reference clock signal CLK_REF so that the clock phases of the second clock signal CLK2 and the first clock signal CLK1 are aligned. When the DLL circuit 12 is locked, or the phases are aligned, the second clock signal CLK2 has a second delay time relative to the reference clock signal CLK_REF, and the difference between the first delay time and the second delay time is N cycles of the reference clock signal CLK_REF, where N is an integer, typically, N is zero.
[0043] Specifically, the DLL circuit 12 includes a digital phase detector 121 and a digitally controlled delay circuit 123. The digital phase detector 121 outputs a first digital signal D1 by detecting the phase relationship between the first clock signal CLK1 output by the capacitor-controlled delay circuit 11 and the second clock signal CLK2 output by the digitally controlled delay circuit 123. For example, if the first clock signal CLK1 is ahead of the second clock signal CLK2 in phase, the first digital phase detector 121 can output 1, or if the first clock signal CLK1 is delayed in phase than the second clock signal CLK2, the first digital phase detector 121 can output 0, or vice versa, as long as the delay time adjustment logic of the digitally controlled delay circuit 123 is adjusted accordingly.
[0044] Furthermore, the input clock signal of the digitally controlled delay circuit 123 is also the reference clock signal CLK_REF. The digitally controlled delay circuit 123 can control the delay time of the second clock signal CLK2 according to the reference clock signal CLK_REF and the first digital signal D1 output by the digital phase detector 121, and output the adjusted second clock signal CLK2 to the second input terminal 1212 of the digital phase detector 121.
[0045] The phase shift between the two clock signals is detected by the digital phase detector 121, and a corresponding digital signal is output. Further, the digitally controlled delay circuit 123 controls the second delay time of the second clock signal CLK2 relative to the reference clock signal CLK_REF according to the digital signal, so that the delay time between the first clock signal CLK1 and the second clock signal CLK2 is finally locked to N cycles of the reference clock signal CLK. At this time, the DLL circuit 12 is stable, or locked, and the output of the digital phase detector 121 is also stable.
[0046] In a specific implementation, when the DLL circuit 12 is locked, the first delay time of the first clock signal CLK1 relative to the reference clock signal CLK_REF and the second delay time of the second clock signal CLK2 relative to the reference clock signal CLK_REF can be controlled to be equal, that is, the first clock signal CLK1 and the second clock signal CLK2 have the same delay time relative to the reference clock signal CLK_REF. In other words, the first clock signal CLK1 and the second clock signal CLK1 are synchronized. In this case, the working state of the DLL circuit 12 is more stable, and accordingly, the output of the digital phase detector 121 is also more stable. In the following, the first delay time and the second delay time are equal as an example to illustrate the embodiment of the present application, but the present application is not limited thereto.
[0047] In summary, the present application uses the same reference clock signal as the common reference clock of the capacitor-controlled delay circuit 11 and the digitally controlled delay circuit 123 by design, so that the capacitor-controlled delay circuit 11 can generate a first clock signal CLK1 having a first delay time relative to the reference clock signal CLK_REF, and the digitally controlled delay circuit 123 can generate a second clock signal CLK2 having a second delay time with the reference clock signal CLK_REF. When the DLL circuit 12 is locked, the first delay time and the second delay time are equal.
[0048] It can be known from the working principle of the capacitor control delay circuit 11 that the first delay time of the first clock signal CLK1 outputted by it relative to the reference clock signal CLK_REF is positively correlated with the capacitance value of the capacitor 20 to be measured, and the second delay time is equal to the first delay time, then the second delay time is positively correlated with the capacitance value of the capacitor 20 to be measured, and the second delay time is controlled according to the first digital signal D1, that is, the second delay time is related to the first digital signal, therefore, the capacitance value of the capacitor 20 to be measured can be determined according to the first digital signal. The present application performs capacitance detection based on the principle that different capacitance values can produce different clock delays, and does not require the capacitor to be measured to perform a time domain charging and discharging process, which is conducive to reducing the influence of circuit noise on the capacitance detection process, thereby improving the accuracy of capacitance detection.
[0049] Optionally, the digital phase detector 121 can be implemented using a binary phase detector (Binary Phase Detector, Binary PD), a binary phase frequency detector (Binary Phase Frequency Detector, Binary PFD), etc., or can be implemented using other equivalent circuits, as long as the phase offset between signals can be converted into a digital signal so that the phases of the signals gradually approach each other. This application does not limit this.
[0050] Optionally, in some embodiments of the present application, Figure 1 As shown, the DLL circuit 12 may further include:
[0051] The processing circuit 122 is connected to the digital phase detector 121 and the digitally controlled delay circuit 123, and is used to receive the first digital signal D1 output by the digital phase detector 121, process the first digital signal, and output the processed first digital signal D1' to the digitally controlled delay circuit 123, so that the digitally controlled delay circuit 123 can control the delay time of the second clock signal CLK2 based on the processed first digital signal D1'.
[0052] In some embodiments of the present application, the processing of the first digital signal D1 by the processing circuit 122 includes but is not limited to at least one of the following: integration processing, amplification or reduction processing, and filtering processing.
[0053] It can be understood that different DLL circuits 12 correspond to corresponding performance indicators, such as the capacitance range of the capacitor that can be measured, stability, signal-to-noise ratio (SNR), etc. The processing circuit 123 can process the first digital signal accordingly according to the corresponding performance indicators to meet the performance indicators. In one implementation, the processing circuit 122 can integrate the first digital signal D1 output by the digital phase detector 121, and further amplify or reduce it so that the capacitance of the capacitor to be measured falls within the capacitance range of the capacitance detection circuit. Further, the digital signal after amplification or reduction can be filtered. In another implementation, the processing circuit 122 can also first amplify or reduce the first digital signal D1, further integrate it, and finally filter it and output it to the digitally controlled delay circuit 123, or other processing methods can be used to process the first digital signal, as long as the performance requirements of the DLL circuit can be met, and this application does not limit this.
[0054] It should be noted that the first digital signal D1 output by the digital phase detector 121 is used to determine the capacitance value of the capacitor 20 to be tested, which may mean that the first digital signal can be directly used to determine the capacitance value of the capacitor 10 to be tested, or it may mean the signal after the processing circuit 122 processes the first digital signal, that is, D1' can be used to determine the capacitance value of the capacitor to be tested.
[0055] It should also be noted that the first digital signal D1 output by the digital phase detector 121 is used to determine the capacitance value of the capacitor to be tested 20, which may include the first digital signal D1 output by the digital phase detector 121 being used to determine the change in the capacitance value of the capacitor to be tested 20, or whether a change has occurred, etc.
[0056] According to the aforementioned capacitance detection principle, the processed first digital signal D1' can be used to control the size of the second delay time, that is, the processed first digital signal D1' is related to the second delay time, and the second delay time is equal to the first delay time, then the processed first digital signal D1' is related to the first delay time, the first delay time is positively correlated with the capacitance value of the capacitor to be measured, then the processed first digital signal D1' is related to the capacitance value of the capacitor to be measured. Therefore, the capacitance value of the capacitor to be measured can be determined according to the processed first digital signal D1'.
[0057] Optionally, in some embodiments, the capacitor to be tested 20 may be, for example but not limited to, a sensing element in a touch device, for example, a capacitor to be tested in a touch screen of a capacitive touch device. Specifically, the touch device includes a touch panel, which may also be referred to as a touch screen. The capacitor to be tested 20 is formed by a driving electrode and a detection electrode on the touch panel, or the capacitor to be tested 20 may be formed by a detection electrode and a ground on the touch panel, or the capacitor to be tested 20 may be formed by a detection electrode on the touch panel and an external object. The external object is a conductor, such as but not limited to a user's finger. In this scenario, the capacitance value of the capacitor to be tested 20 may be used to determine whether the touch device is touched, for example, the touch device may be determined based on whether the capacitance value of the capacitor to be tested 20 changes. Optionally, whether the capacitance value of the capacitor to be tested 20 changes may be whether the capacitance value of the capacitor to be tested 20 changes relative to the basic capacitance, where the basic capacitance is the capacitance value of the capacitor to be tested 20 when it is not contacted or approached by an external object, and the capacitance value may also be referred to as a nominal capacitance.
[0058] Optionally, in some embodiments of the present application, the capacitance detection circuit 10 may further include:
[0059] The processing unit is used to determine whether the capacitance value of the capacitor to be tested has changed relative to the basic capacitance according to the processed first digital signal output by the processing circuit when the DLL is locked, wherein the basic capacitance is the capacitance value of the capacitor to be tested 20 when it is not touched or approached by an external object. For example, taking a touch device as an example, the basic capacitance is the capacitance value of the capacitor to be tested 20 when the touch screen of the touch device is not touched by an external object.
[0060] Taking the above-mentioned capacitive touch detection scenario as an example, the processing unit can first determine that when the touch device is not touched, the first digital signal output by the processing circuit 122 is recorded as the nominal digital signal D1'_REF, and the nominal digital signal D1'_REF corresponds to the basic capacitance C_REF of the capacitor to be tested, and the two can be converted through a specific relationship.
[0061] Furthermore, whether the touch device is touched can be determined based on the processed first digital signal D1'. For example, whether the touch device is touched can be determined based on the change of the first digital signal D1' output by the processing circuit 122 relative to the nominal digital signal D1'_REF. As an example, if the processed first digital signal D1' changes relative to the nominal digital signal D1'_REF, or the amount of change is greater than a certain threshold, it can be determined that the touch device is touched; otherwise, it is determined that the touch device is not touched.
[0062] In other embodiments, the processed first digital signal D1' may be further processed and converted into a corresponding capacitance value C, and whether the touch device is touched may be further determined based on the capacitance value C. For example, whether the touch device is touched may be determined based on a change in the capacitance value C corresponding to the processed first digital signal D1' relative to the basic capacitance C_REF. As an example, if the capacitance value C corresponding to the processed first digital signal changes relative to the basic capacitance C_REF, or the change is greater than a certain threshold, it may be determined that the touch device is touched; otherwise, it is determined that the touch device is not touched.
[0063] Optionally, in some embodiments, the processing unit may be a processing unit in a device or apparatus in which the capacitance detection circuit 10 is installed. For example, if part or all of the capacitance detection circuit 10 can be integrated in a touch sensing chip of a touch device, the touch sensing chip is electrically connected to a touch panel to drive the touch panel to perform a touch sensing operation. The processing unit may be a processing unit in the touch device, or may be a main control module in the electronic device in which the touch device is located.
[0064] It should be understood that in the embodiment of the present application, the digitally controlled delay circuit 123 can provide clock signals of different phases through an internal delay stage, and it can be implemented using any circuit that controls the delay time according to a digital signal, and the embodiment of the present application is not limited to this.
[0065] The following, combined Figure 2 , illustrating a typical implementation of the digitally controlled delay circuit 123. Figure 2 As shown, the digitally controlled delay circuit 123 includes:
[0066] A digital-to-analog converter DAC1231, comprising an input end and an output end, wherein the input end is connected to the output end of the processing circuit 122, the DAC1231 is used to convert the first digital signal D1' obtained after being processed by the processing circuit 122 into a first analog signal A1, and the output end is used to output the first analog signal A1;
[0067] The analog controlled delay line 1232 includes a first input terminal, a second input terminal and an output terminal. The first input terminal of the analog controlled delay line 1232 is connected to the output terminal of the DAC1231 for receiving the first analog signal A1. The second input terminal of the analog controlled delay line 1232 is used to input the reference clock signal CLK_REF. The analog controlled delay line 1232 is used to control the delay time of the output second clock signal CLK2 according to the first analog signal A1 and the reference clock signal CLK_REF, that is, the second delay time. The output terminal of the analog controlled delay line 1232 is used to output the second clock signal CLK2.
[0068] Since the DLL circuit 12 is a negative feedback system, through the negative feedback mechanism, the phase misalignment between the first clock signal CLK1 and the second clock signal CLK2 will be gradually reduced until it disappears. At this time, the analog signal output by the DAC remains stable and the DLL circuit 12 is locked.
[0069] In some embodiments, the first analog signal A1 may be an analog voltage or an analog current, and correspondingly, the analog controlled delay line 1232 may be a voltage controlled delay line (VCDL) or a current controlled delay line (CCDL). Hereinafter, a typical implementation of the VCDL is described by taking the first analog signal being an analog voltage as an example. Of course, it may also be implemented in other ways, which is not limited here.
[0070] like Figure 3 As shown, the analog controlled delay line 1232 includes a plurality of delay units 12321 connected in series, each delay unit 12321 includes a first end and a second end, the first end of each delay unit 12321 is used to input the reference clock signal CLK_REF, the second end of each delay unit 12321 is used to input the first analog signal (taking the first analog signal as the analog voltage V-REF as an example), the first analog signal V-REF is used to control the delay time corresponding to each delay unit 12321, and the delay time of the second clock signal CLK2 is the total delay time of the multi-stage delay unit.
[0071] Specifically, each level of delay unit of VCDL can output a certain phase shift, and the degree of phase shift output by each level of delay unit of VCDL is controlled by analog voltage V-REF, and the total delay of all delay units constitutes the delay of the analog control delay line 1232, that is, the delay time of the second clock signal CLK2. The first clock signal CLK1 and the second clock signal CLK2 are compared in phase by the digital phase detector 121, and the corresponding digital signal is output. The digital signal is converted into an analog signal after a step of processing, such as analog voltage V-REF, and the analog voltage V-REF is used to change the delay time of the delay unit in VCDL.
[0072] In some embodiments, the analog controlled delay line 1232 may use an inverter to implement a delay unit, and use a valid state machine to select an output signal.
[0073] Specifically, in VCDL, a single delay unit represents the minimum delay time, such as the delay time of a basic inverter. Since each inverter can shift the phase by 180 degrees, VCDL can output an even number of inverters to provide the corresponding phase. VCDL needs to select a signal whose phase is closest to the phase of the first clock signal CLK1 as the output clock signal for feedback. Therefore, the output signal that needs to be implemented in VCDL is not necessarily the last stage output of VCDL, that is, the second clock signal is not necessarily output at the last stage of VCDL, but it must be output at a position closest to the phase of the first clock signal CLK1. Specifically, the corresponding signal can be generated by the effective state machine to select the output signal.
[0074] In a specific implementation, the delay of each delay unit has a certain relationship with the RC time constant in the delay unit. The larger the time constant, the larger the delay. The delay of each level of delay unit can be adjusted by changing the time constant of the delay unit, such as impedance R or load capacitance C.
[0075] Therefore, in an embodiment of the present application, by configuring the capacitor-controlled delay circuit 11 and the analog-controlled delay line 1232 to control the delay time based on the same reference clock signal, the delay time of the second clock signal can be related to the delay time of the first clock signal, and the delay time of the second clock signal is controlled by the first analog signal A1, so that the delay time of the first analog signal A1 and the first clock signal can be related. Furthermore, the first analog signal A1 is obtained based on the processed first digital signal, so the processed first digital signal is related to the delay time of the first clock signal, that is, it is related to the capacitance value of the capacitor to be measured. Therefore, the change in the capacitance value of the capacitor to be measured can be determined based on the processed first digital signal.
[0076] The present application also provides a capacitance detection system 40, such as Figure 4 As shown, the capacitance detection system 40 includes: a capacitor to be tested 41 and a capacitance detection circuit 42 , wherein the capacitance detection circuit 42 is connected to the capacitor to be tested 41 , and the capacitance detection circuit 42 is used to detect the capacitance value of the capacitor to be tested 41 .
[0077] Optionally, in some embodiments, the capacitance detection system is a touch device, and the capacitance value of the capacitor to be tested is used to determine whether the touch device is touched.
[0078] Optionally, the touch device may be a capacitive touch device, for example, a mutual capacitive touch device or a self-capacitive touch device.
[0079] In a mutual capacitance based touch system, a touch screen may include, for example, a drive region and a sense region, such as drive lines (or drive electrodes) and sense lines (or detection electrodes). As an example, the drive lines may form multiple rows, and the sense lines may form multiple columns (e.g., orthogonal). Touch pixels may be arranged at the intersection of the rows and columns. During operation, the rows may be stimulated by an alternating current (AC) waveform, and mutual capacitance may be formed between the row and column of the touch pixel. When an object approaches the touch pixel, some of the charge coupled between the row and column of the touch pixel may be coupled to the object instead. This reduction in charge coupled to the touch pixel may result in a net reduction in mutual capacitance between the row and column and a reduction in the AC waveform coupled to the touch pixel. This reduction in the charge coupled AC waveform may be detected and measured by the touch system to determine whether there is a touch, and the touch position of the object on the touch screen. For a mutual capacitance touch screen, the capacitor to be measured is formed by the detection electrode and the drive electrode on the mutual capacitance touch screen.
[0080] In contrast, in a self-capacitive touch system, each touch pixel may be formed by an individual electrode that forms a self-capacitance to ground. When an object approaches the touch pixel, another capacitance to ground may be formed between the object and the touch pixel. The other capacitance to ground may result in a net increase in the self-capacitance experienced by the touch pixel. This increase in self-capacitance may be detected and measured by the touch system to determine whether there is a touch and the position of the object when it touches the touch screen. For a self-capacitive touch screen, the capacitor to be tested is formed by a detection electrode on the touch screen and ground, or the capacitor to be tested 20 is formed by a detection electrode on the touch screen and an external object. The external object is, for example, but not limited to, a conductive object such as a user's finger.
[0081] The touch panel of the touch device of the present application may be a touch screen mounted externally on the display panel, or may be integrated into the display panel (Incell), etc. These technical solutions should all fall within the protection scope of the present application.
[0082] In addition, the capacitance detection system 40 may also be a fingerprint sensing device. Accordingly, the capacitance detection circuit 42 is a capacitance detection circuit in a fingerprint sensing device. The capacitor to be tested 41 is a capacitor to be tested in a fingerprint sensing device.
[0083] The embodiment of the present application also provides an electronic device, Figure 5 A schematic structural diagram of an electronic device 50 according to an embodiment of the present application is shown. Figure 5 As shown, the electronic device may include a capacitance detection system 51, and the capacitance detection system 51 may be Figure 4 Capacitance detection system 40 in.
[0084] It should be understood that the electronic device 100 of the embodiment of the present application may include but is not limited to a smart phone, a tablet computer, a computer, a laptop computer, a smart wearable device, a smart door lock, etc. In order to realize the basic functions of the electronic device, in addition to the modules or components exemplified above, the electronic device in the embodiment of the present application may also include other necessary modules or components. Taking the electronic device as a smart phone as an example, it may also include a communication module, a speaker, a microphone, a battery, etc.
[0085] The above-mentioned processing unit may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step performed by the above-mentioned processing unit can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined and executed. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0086] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A capacitance detection circuit, characterized in that: Connect to the capacitor under test, including: A capacitance-controlled delay circuit, configured to generate a first clock signal according to a reference clock signal and a capacitance value of the capacitor to be measured, wherein the first clock signal has a first delay time relative to the reference clock signal, and the first delay time is positively correlated with the capacitance value of the capacitor to be measured; A delay locked loop circuit, comprising: a digital phase detector and a digitally controlled delay circuit, wherein the digital phase detector comprises a first input terminal, a second input terminal and an output terminal, the first input terminal of the digital phase detector is connected to the output terminal of the capacitor controlled delay circuit, and the second input terminal of the digital phase detector is connected to the output terminal of the digitally controlled delay circuit; The digital phase detector is used to receive the first clock signal and the second clock signal output by the digitally controlled delay circuit, and output a first digital signal according to the phase of the first clock signal and the second clock signal, and the output end of the digital phase detector is used to output the first digital signal; The digitally controlled delay circuit is used to control the delay time of the output second clock signal according to the reference clock signal and the first digital signal, and output the second clock signal to the second input terminal of the digital phase detector, wherein the second clock signal has a second delay time relative to the reference clock signal; Wherein, when the delay locked loop circuit is locked, the difference between the first delay time and the second delay time is N periods of the reference clock signal, where N is an integer, and the first digital signal output by the digital phase detector when the delay locked loop circuit is locked is used to determine the capacitance value of the capacitor to be measured; Wherein, when the delay phase-locked loop circuit is locked, the first delay time is equal to the second delay time; Wherein, the delay locked loop circuit also includes: A processing circuit is connected to the digital phase detector and the digitally controlled delay circuit, and is used to receive the first digital signal output by the digital phase detector, process the first digital signal, and output the processed first digital signal to the input end of the digitally controlled delay circuit, wherein the processed first digital signal is used to control the delay time of the second clock signal, and the processing includes at least one of the following: integration processing, signal amplification or reduction processing, and filtering processing.
2. The capacitance detection circuit according to claim 1, characterized in that: The digitally controlled delay circuit comprises: a digital-to-analog converter, comprising an input end and an output end, wherein the input end is connected to the output end of the processing circuit, the digital-to-analog converter is used to convert a first digital signal processed by the processing circuit into a first analog signal, and the output end is used to output the first analog signal; An analog controlled delay line comprises a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the analog controlled delay line is connected to the output terminal of the digital-to-analog converter for receiving the first analog signal, the second input terminal of the analog controlled delay line is used to input the reference clock signal, the analog controlled delay line is used to control the delay time of the second clock signal according to the first analog signal and the reference clock signal, and the output terminal of the analog controlled delay line is used to output the second clock signal.
3. The capacitance detection circuit according to claim 2, characterized in that: The analog controlled delay line includes a plurality of delay units connected in series, each delay unit includes a first end and a second end, the first end of each delay unit is used to input the reference clock signal, the second end of each delay unit is used to input the first analog signal, the first analog signal is used to control the delay time corresponding to each delay unit, and the second delay time is the total delay time of the plurality of delay units connected in series.
4. The capacitance detection circuit according to claim 2, characterized in that: The first analog signal is an analog voltage, and the analog controlled delay line is a voltage-controlled delay line.
5. The capacitance detection circuit according to claim 1, characterized in that: The capacitance detection circuit also includes: a processing unit, configured to determine whether the capacitance of the capacitor to be measured has changed relative to a base capacitance according to the processed first digital signal output by the processing circuit when the delay locked loop circuit is locked, wherein the base capacitance is the capacitance of the capacitor to be measured when it is not touched or approached by an external object.
6. The capacitance detection circuit according to claim 5, characterized in that: The capacitor to be tested is a mutual capacitance capacitor or a self-capacitance capacitor.
7. A capacitance detection system, characterized in that: include: The capacitor to be tested; The capacitance detection circuit according to any one of claims 1 to 6, wherein the capacitance detection circuit is connected to the capacitor to be measured, and the capacitance detection circuit is used to detect the capacitance value of the capacitor to be measured.
8. An electronic device, characterized in that: Comprising the capacitance detection system as claimed in claim 7.
