Capacitance detection device, capacitance detection method, and input device
The capacitance detection device addresses errors in capacitance measurements by using controlled AC voltage differences and a correction mechanism to adjust for shield capacitance changes, improving sensitivity and accuracy.
Patent Information
- Application Number
- JP2022579361
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-02-04
- Filing Date
- 2021-12-07
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Capacitance detection devices face errors due to changes in capacitance between the detection electrode and the shield electrode, which are influenced by temperature and parasitic capacitors, affecting detection sensitivity and accuracy.
A capacitance detection device that uses alternating current voltages with controlled amplitude differences between a shield electrode and detection electrode, incorporating a correction mechanism to adjust for changes in shield capacitance and reduce errors.
The device effectively reduces errors in detection results by correcting for changes in shield capacitance, enhancing sensitivity and accuracy of capacitance measurements.
Smart Images

Figure 0007584545000020 
Figure 0007584545000021 
Figure 0007584545000022
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a capacitance detection device, a capacitance detection method, and a capacitance-type input device. [Background technology]
[0002] In a self-capacitance type capacitance detection device that detects the capacitance of a detection electrode with respect to the ground, there is a problem that the detection sensitivity and detection accuracy are reduced due to a parasitic capacitor generated between the ground and the detection electrode. Conventionally, in order to reduce the influence of such a parasitic capacitor, a shield electrode (also called an active shield) driven to the same potential as the detection electrode may be placed close to the detection electrode. By providing the shield electrode, the detection electrode is less likely to electrostatically couple with the surrounding conductors, so the capacitance of the parasitic capacitor is reduced. In addition, since the shield electrode is at the same potential as the detection electrode, the capacitance between the active shield and the detection electrode does not affect the detection result.
[0003] On the other hand, in the capacitance detection device described in Patent Document 1 below, the amplitude of the AC voltage driving the detection electrode is adjusted to be smaller than the AC voltage of the shield electrode. That is, the amplitude of the AC voltage of the shield electrode is adjusted so that the charge supplied to the parasitic capacitor between the detection electrode and ground is offset by the charge supplied to the capacitor between the detection electrode and shield electrode. This can further reduce the effect of the parasitic capacitor between the detection electrode and ground on detection sensitivity and detection accuracy. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] International Publication No. 2018 / 1167606 Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, in the capacitance detection device described in Patent Document 1, a charge is supplied to the capacitor between the detection electrode and the shield electrode due to the voltage difference between the detection electrode and the shield electrode, so that if the capacitance value of the capacitor between the detection electrode and the shield electrode changes, an error occurs in the detection result of the capacitance between the detection electrode and the ground. The capacitance of the capacitor between the detection electrode and the shield electrode is larger than the capacitance between the detection electrode and the ground that is the detection target, and may have temperature dependency due to the temperature characteristics of the dielectric constant of the circuit board on which the shield electrode is formed, etc. Therefore, there is a problem that an error occurs in the detection result when the capacitance of the capacitor between the detection electrode and the shield electrode changes due to the influence of temperature, etc.
[0006] Therefore, the present disclosure aims to provide a capacitance detection device and a capacitance detection method capable of reducing errors in detection results caused by changes in the capacitance of a capacitor formed between a detection electrode and a shield electrode, as well as an input device equipped with such a capacitance detection device. [Means for solving the problem]
[0007] A capacitance detection device according to one aspect of the present disclosure is a capacitance detection device that detects a capacitance between a detection electrode and an object adjacent to the detection electrode, and includes an AC voltage output unit that outputs a first AC voltage supplied to a shield electrode disposed adjacent to the detection electrode and a second AC voltage that is equal in frequency and phase to the first AC voltage and has an amplitude smaller than that of the first AC voltage; No. 1 so that the voltage of the node approaches the second AC voltage. No. 1 a detection signal generation unit that supplies electric charge from a node to the detection electrode and generates an AC detection signal corresponding to the supplied electric charge, a calculation unit that calculates a detection value of the capacitance based on the detection signal, and a correction unit that corrects a change in the detection value caused by a change in a shield capacitance that is a parasitic capacitance between the shield electrode and the detection electrode, the AC voltage output unit includes a first AC voltage output unit that outputs the first AC voltage, and a second AC voltage output unit configured with an attenuation circuit that outputs an AC voltage obtained by attenuating the amplitude of the first AC voltage as the second AC voltage, and the detection signal generation unit includes an operational amplifier that amplifies a voltage difference between an inverting input terminal connected to the first node and a non-inverting input terminal connected to a second node to which the second AC voltage is applied, and outputs the amplification result as a first signal, a feedback capacitor provided in a path between the output terminal of the first signal and the inverting input terminal of the operational amplifier, and a subtraction unit that subtracts a reference signal, which is a signal corresponding to the first signal output from the operational amplifier when the object is not present close to the detection electrode in a normal operation mode, from the first signal, and outputs the subtraction result as the detection signal, The correction unit is From the normal operation modeThe correction mode is repeatedly switched to, and when the correction mode is switched to, the difference in amplitude between the first AC voltage and the second AC voltage is changed. Second AC voltage output section The attenuation circuit and obtains a correction value according to a change in the detection value accompanying a change in the amplitude difference, and corrects the detection value according to the change in the correction value obtained in the correction mode. Effect of the Invention
[0008] According to the present disclosure, it is possible to provide a capacitance detection device and a capacitance detection method capable of reducing errors in detection results caused by changes in the capacitance of a capacitor formed between a detection electrode and a shield electrode, as well as an input device equipped with such a capacitance detection device. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an input device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of the configuration of the capacitance detection device according to this embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of the configuration of a subtraction circuit. [Figure 4] FIG. 4 is a diagram illustrating an example of the configuration of the calculation unit. [Diagram 5] FIG. 5 is a flowchart illustrating an example of the capacitance detection method according to the first embodiment. [Figure 6] FIG. 6 is a flowchart for explaining an example of a correction mode process in the initial state in the capacitance detection method shown in FIG. [Figure 7] FIG. 7 is a flowchart for explaining an example of a process of the correction mode after the initial state in the capacitance detection method shown in FIG. [Figure 8] FIG. 8 is a flowchart for explaining an example of a process for acquiring a corrected detection value in the capacitance detection method shown in FIG. [Figure 9]FIG. 9 is a flowchart for explaining a modified example of the process of the correction mode after the initial state in the capacitance detection method shown in FIG. [Figure 10] FIG. 10 is a flowchart for explaining a modified example of the process for acquiring a corrected detection value in the capacitance detection method shown in FIG. [Figure 11] FIG. 11 is a flowchart for explaining a modified example of the correction mode process in the initial state in the capacitance detection method shown in FIG. [Figure 12] FIG. 12 is a flowchart for explaining a modified example of the process of the correction mode after the initial state in the capacitance detection method shown in FIG. [Figure 13] FIG. 13 is a flowchart illustrating an example of a capacitance detection method according to the second embodiment. [Figure 14] FIG. 14 is a flowchart for explaining an example of a correction mode process in the initial state in the capacitance detection method shown in FIG. [Figure 15] FIG. 15 is a flowchart for explaining an example of a process in the correction mode after the initial state in the capacitance detection method shown in FIG. [Figure 16] 16A and 16B are flowcharts for explaining a modified example of the process of the correction mode in the capacitance detection method shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] <Summary> First, an overview of a capacitance detection device, a capacitance detection method, and an input device according to the present disclosure will be described.
[0011] A first aspect of the present disclosure relates to a capacitance detection device that detects capacitance between a detection electrode and an object close to the detection electrode. The capacitance detection device includes an AC voltage output unit that outputs a first AC voltage supplied to a shield electrode arranged close to the detection electrode and a second AC voltage whose frequency and phase are equal to the first AC voltage and whose amplitude is smaller than the first AC voltage, a detection signal generation unit that supplies charges from a node connected to the detection electrode to the detection electrode so that the voltage of the node approaches the second AC voltage and generates an AC detection signal corresponding to the supplied charges, a calculation unit that calculates a detection value of the capacitance based on the detection signal, and a correction unit that corrects a change in the detection value associated with a change in shield capacitance, which is a parasitic capacitance between the shield electrode and the detection electrode. The correction unit repeatedly transitions to a correction mode, and when transitioning to the correction mode, controls the AC voltage output unit so that the difference in amplitude between the first AC voltage and the second AC voltage changes, acquires a correction value corresponding to the change in the detection value associated with the change in the difference in amplitude, and corrects the detection value according to the change in the correction value acquired in the correction mode.
[0012] In the capacitance detection device according to the first aspect, a voltage corresponding to the difference between the first AC voltage and the second AC voltage is applied to a parasitic capacitor (hereinafter sometimes referred to as the "detection electrode-shield electrode capacitor") formed between the detection electrode and the shield electrode, and a charge corresponding to this voltage is supplied from the detection signal generation unit to the detection electrode-shield electrode capacitor. When the shield capacitance, which is the capacitance of the detection electrode-shield electrode capacitor, changes due to the influence of temperature or the like, the charge supplied from the detection signal generation unit to the detection electrode-shield electrode capacitor changes, and the detection signal changes accordingly, causing an error in the detection value of the capacitance calculated based on the detection signal. Therefore, the correction unit performs a process of correcting the change in the detection value accompanying the change in the shield capacitance. That is, the transition to the correction mode is repeatedly performed, and when the correction mode is entered, the AC voltage output unit is controlled so that the difference in amplitude between the first AC voltage and the second AC voltage (hereinafter, sometimes referred to as "AC voltage amplitude difference") changes, and a correction value corresponding to the change in the detection value accompanying the change in the AC voltage amplitude difference is acquired. Since the change in the detection value accompanying the change in the AC voltage amplitude difference has a value corresponding to the shield capacitance, the correction value acquired in the correction mode has a value corresponding to the shield capacitance. By correcting the detection value according to the change in this correction value, the detection value is corrected according to the change in the shield capacitance, and the change in the detection value accompanying the change in the shield capacitance is corrected. Therefore, an error in the detection value corresponding to the change in the shield capacitance due to the influence of temperature or the like is reduced.
[0013] Preferably, the correction unit may correct the detection value so that a correction target component proportional to the difference between a first correction value, which is a correction value acquired in a correction mode in an initial state, and a second correction value, which is a correction value acquired in a correction mode after the initial state, and which corresponds to a change in the detection value due to a change in the shield capacitance, is offset. According to this configuration, a correction target component proportional to the difference between a first correction value acquired in a correction mode in the initial state and a second correction value acquired in a correction mode after the initial state has a value according to a change in the detection value accompanying a change in the shield capacitance. The detection value is corrected so as to cancel out this correction target component. This corrects the change in the detection value accompanying the change in the shield capacitance from the initial state.
[0014] Preferably, the correction section calculates the correction target component every time the correction mode is switched to, and in the normal operation mode, corrects the detection value based on the correction target component calculated in the most recent correction mode. According to this configuration, in the case of a normal operation mode other than the correction mode, the detection value is corrected based on the correction target component calculated in the most recent correction mode. This reduces the frequency of the process of calculating the correction target component compared to the case where the correction target component is calculated every time the detection value is calculated, and therefore the processing load can be easily reduced.
[0015] Preferably, the capacitance detection device may have an analog-to-digital conversion unit that converts the detection signal into a digital signal in synchronization with a clock signal. The AC voltage output unit may output a first AC voltage and a second AC voltage, each of which is a sine wave having a first frequency. The calculation unit may be synchronized with the clock signal, multiply a sine wave synchronization signal having the first frequency by the detection signal converted into a digital signal, and obtain a detection value corresponding to a demodulated signal obtained by removing harmonic components from a result of the multiplication. According to this configuration, the detection signal is multiplied by a synchronization signal having the same frequency as the first AC voltage and the second AC voltage, and a detection value corresponding to a demodulated signal obtained by removing harmonic components from the multiplication result is obtained, thereby obtaining a highly accurate detection value corresponding to the charge supplied to the detection electrode according to the first AC voltage and the second AC voltage.
[0016] Preferably, when the correction unit transitions to the correction mode, the correction unit obtains a first detection value which is a detection value when the AC voltage output unit is controlled so that the amplitude difference (AC voltage amplitude difference) becomes a first amplitude difference, and a second detection value which is a detection value when the AC voltage output unit is controlled so that the amplitude difference (AC voltage amplitude difference) becomes a second amplitude difference different from the first amplitude difference, and obtains a correction value according to the difference between the first detection value and the second detection value. According to this configuration, a correction value is obtained according to the difference between two detection values (first detection value, second detection value) obtained when the AC voltage amplitude difference is set to two amplitude differences (first amplitude difference, second amplitude difference).
[0017] Preferably, when the correction unit transitions to the correction mode, the correction unit controls the AC voltage output unit to output a first AC voltage and a second AC voltage whose amplitude difference (AC voltage amplitude difference) is modulated by a modulation signal of a constant amplitude having a second frequency lower than the first frequency (synchronization signal), and obtains a correction value according to the amplitude of the AC component of the second frequency included in the demodulated signal. According to this configuration, the AC voltage amplitude difference is modulated by a modulation signal having a constant amplitude and a second frequency, so that the demodulated signal contains an AC component of the second frequency corresponding to the modulation signal. The amplitude of this AC component has a magnitude corresponding to the change in the detection value accompanying the change in the AC voltage amplitude difference. Therefore, a correction value corresponding to the change in the detection value accompanying the change in the AC voltage amplitude difference can be obtained based on the amplitude of the AC component of the second frequency contained in the demodulated signal.
[0018] Preferably, the capacitance detection device may have an analog-digital conversion unit that converts the detection signal into a digital signal in synchronization with a clock signal. The AC voltage output unit may output a first AC voltage and a second AC voltage, each of which is a sine wave having a first frequency. The calculation unit may multiply a first synchronization signal that is synchronized with the clock signal, has the first frequency, and has a phase similar to that of the first AC voltage, by the detection signal converted into a digital signal, multiply a second synchronization signal that is synchronized with the clock signal, has the first frequency, and has a phase shifted by a quarter period from the first synchronization signal, by the detection signal converted into a digital signal, and acquire a detection complex number whose real part is a first demodulated signal obtained by removing harmonic components from a multiplication result of the first synchronization signal and the detection signal, and whose imaginary part is a second demodulated signal obtained by removing harmonic components from a multiplication result of the second synchronization signal and the detection signal. When the correction unit transitions to the correction mode, the correction unit controls the AC voltage output unit so that the amplitude difference (AC voltage amplitude difference) changes, and acquires, as a correction value, a complex number according to a change in the detection complex number accompanying the change in the amplitude difference (AC voltage amplitude difference). The correction unit also performs a first phase correction on a first correction value, which is a correction value acquired in the correction mode in the initial state, for correcting a phase so that the argument of the first correction value approaches zero, and performs a second phase correction on a second correction value, which is a correction value acquired in a correction mode after the initial state, for correcting a phase so that the argument of the second correction value approaches zero, and also performs the second phase correction on the detection complex number. The correction unit may acquire, as the corrected detection value, a numerical value obtained by correcting the real part of the detection complex number subjected to the second phase correction so that a correction target component proportional to the difference between the real part of the first correction value subjected to the first phase correction and the real part of the second correction value subjected to the second phase correction, and a correction target component corresponding to a change in the real part of the detection complex number accompanying a change in the shield capacitance, are offset.
[0019] According to this configuration, two synchronization signals (first synchronization signal, second synchronization signal) in an orthogonal relationship are multiplied by the detection signal, and two demodulated signals (first demodulated signal, second demodulated signal) are obtained by removing harmonic components from the multiplication result, and a detection complex number having the two demodulated signals as real and imaginary parts is obtained. The argument of this detection complex number represents the phase shift of the detection signal with respect to the first synchronization signal whose phase is close to the first AC voltage. When the correction mode is entered, the AC voltage output unit is controlled so that the AC voltage amplitude difference changes, and a complex number according to the change in the detection complex number accompanying the change in the AC voltage amplitude difference is obtained as a correction value. Even if the AC voltage amplitude difference changes, the argument of the detection complex number is approximately constant, so the argument of the correction value represents the phase shift of the detection signal with respect to the first synchronization signal, similar to the argument of the detection complex number. Here, when fluctuations (jitter) occur in the phase and frequency of the clock signal, the frequencies of the two synchronization signals (first synchronization signal, second synchronization signal) generated in synchronization with the clock signal fluctuate, and the phases of the first AC voltage and the second AC voltage relative to the two synchronization signals change, and the phase of the detection signal relative to the two synchronization signals changes. On the other hand, since the two synchronization signals (first synchronization signal, second synchronization signal) are each generated in synchronization with the clock signal, the relative phases of these synchronization signals do not fluctuate. Therefore, when jitter occurs in the clock signal, the phase shift of the detection signal relative to the first synchronization signal changes, and the argument angle of the detection complex number and the argument angle of the correction value each change. Therefore, the correction unit applies a first phase correction to the first correction value acquired in the correction mode in the initial state, and applies a second phase correction to the second correction value acquired in a correction mode after the initial state. As a result, the argument angles of the first correction value and the second correction value each approach zero. The correction unit also applies the same second phase correction as the second correction value to the detection complex number. Like the detection complex number, the argument angle of the second correction value also represents the phase shift of the detection signal relative to the first synchronization signal, so that the argument angle of the detection complex number approaches approximately zero by applying the second phase correction to the detection complex number. As a result, the argument angles of the first correction value, the second correction value, and the detection complex number are each aligned near zero, so that the real parts of these complex numbers have values from which the effects of jitter in the clock signal are substantially eliminated. Then, the correction unit obtains a detection value that has been corrected for changes in the shield capacitance based on the first correction value, the second correction value, and the real part of the detection complex number from which the effects of jitter in the clock signal have been removed. That is, since the component to be corrected that is proportional to the difference between the real part of the first correction value to which the first phase correction has been applied and the real part of the second correction value to which the second phase correction has been applied has a value corresponding to the change in the detection value accompanying the change in the shield capacitance, a correction is performed on the real part of the detection complex number to which the second phase correction has been applied so that this component to be corrected is offset. The detection value thus obtained is corrected for error due to changes in the shield capacitance from the initial state and error due to jitter in the clock signal.
[0020] Preferably, when the correction unit transitions to the correction mode, the correction unit obtains a first detection complex number which is a detection complex number when the AC voltage output unit is controlled so that the amplitude difference (AC voltage amplitude difference) becomes a first amplitude difference, and a second detection complex number which is a detection complex number when the AC voltage output unit is controlled so that the amplitude difference (AC voltage amplitude difference) becomes a second amplitude difference different from the first amplitude difference, and obtains a correction value according to the difference between the first detection complex number and the second detection complex number. According to this configuration, a correction value is acquired according to the difference between two complex numbers to be detected (first complex number to be detected, second complex number to be detected) obtained when the AC voltage amplitude difference is set to two amplitude differences (first amplitude difference, second amplitude difference).
[0021] Preferably, when the correction unit transitions to the correction mode, the correction unit controls the AC voltage output unit to output a first AC voltage and a second AC voltage whose amplitude difference (AC voltage amplitude difference) is modulated by a modulation signal of a constant amplitude having a second frequency lower than the first frequency, and obtains a real part of a correction value corresponding to the amplitude of the AC component of the second frequency included in the first demodulated signal, and an imaginary part of a correction value corresponding to the amplitude of the AC component of the second frequency included in the second demodulated signal. According to this configuration, the AC voltage amplitude difference is modulated by a modulation signal of a constant amplitude having the second frequency, so that the first demodulated signal and the second demodulated signal each contain an AC component of the second frequency corresponding to the modulation signal. Since the amplitudes of the AC components in the two demodulated signals (first demodulated signal, second demodulated signal) indicate the change in the detection complex number (real part, imaginary part) accompanying the change in the AC voltage amplitude difference, a correction value (real part, imaginary part) corresponding to the change in the detection complex number accompanying the change in the AC voltage amplitude difference can be obtained based on the amplitudes of these AC components.
[0022] Preferably, the correction unit may multiply a difference between a real part of the first correction value subjected to the first phase correction and a real part of the second correction value subjected to the second phase correction by a proportional coefficient, and obtain a corrected detection value based on a sum of a result of the multiplication and a real part of the detection complex number subjected to the second phase correction.
[0023] Preferably, the correction unit may perform a second phase correction on an intermediate correction value corresponding to the sum of a complex number obtained by multiplying the second correction value by a proportionality coefficient and the detection complex number, by rotating a phase angle equivalent to the argument of the second correction value, and acquire a corrected detection value based on a result obtained by multiplying a real part of the first correction value after the first phase correction by a proportionality coefficient from the real part of the intermediate correction value after the second phase correction.
[0024] Preferably, the correction unit acquires the second correction value each time the correction mode is entered, and in the normal operation mode, the correction unit acquires a corrected detection value based on the first correction value to which the first phase correction has been applied, the second correction value acquired in the most recent correction mode, and the detection complex number. According to this configuration, in the case of a normal operation mode other than the correction mode, a corrected detection value is acquired based on the first correction value to which the first phase correction has been performed, the second correction value acquired in the most recent correction mode, and the detection complex number. This makes it easier to reduce the processing load compared to the case where a process related to acquisition of the second correction value is executed every time a detection complex number is acquired.
[0025] Preferably, the AC voltage output unit may output a second AC voltage whose amplitude is adjusted so that the charge supplied from the node to the detection electrode approaches zero when there is no object close to the detection electrode in normal operating mode, or a second AC voltage whose amplitude is adjusted so that the amplitude of the detection signal approaches zero. According to this configuration, in the normal operating mode, when there is no object close to the detection electrode, the amplitude of the detection signal becomes small or approaches zero, making it easier to ensure the dynamic range of the output of the detection signal generating unit.
[0026] A second aspect of the present disclosure relates to a capacitance detection method implemented in a capacitance detection device that detects capacitance between a detection electrode and an object adjacent to the detection electrode. In this capacitance detection method, the capacitance detection device includes an AC voltage output unit that outputs a first AC voltage supplied to a shield electrode arranged adjacent to the detection electrode and a second AC voltage having a frequency and phase equal to the first AC voltage and an amplitude smaller than the first AC voltage, and a detection signal generation unit that supplies charges from a node connected to the detection electrode to the detection electrode so that the voltage of the node approaches the second AC voltage and generates an AC detection signal according to the supplied charges. The capacitance detection method includes a calculation step of calculating a detection value of the capacitance based on a detection signal, and a correction step of correcting a change in the detection value caused by a change in shield capacitance, which is a parasitic capacitance between the shield electrode and the detection electrode. The correction step includes repeatedly transitioning to a correction mode, and when transitioning to the correction mode, controlling the AC voltage output unit so that the amplitude difference between the first AC voltage and the second AC voltage changes, acquiring a correction value corresponding to the change in the detection value caused by the change in the amplitude difference, and correcting the detection value according to the change in the correction value acquired in the correction mode.
[0027] An input device according to a third aspect of the present disclosure has a detection electrode in which the capacitance between the detection electrode and an object changes in response to the object's proximity, a shield electrode arranged in proximity to the detection electrode, and a capacitance detection device according to the first aspect that detects the capacitance between the object and the detection electrode.
[0028] <First embodiment> Fig. 1 is a diagram showing an example of the configuration of an input device according to an embodiment of the present invention. The input device shown in Fig. 1 includes a sensor unit 1, a capacitance detection device 2, a processing unit 3, a storage unit 4, and an interface unit 5.
[0029] When an object 6 such as a finger or a pen approaches the sensor unit 1, the input device according to this embodiment detects the capacitance between the electrode provided in the sensor unit 1 and the object, and inputs information according to the approach of the object 6 based on the detection result. For example, the input device obtains information such as the presence or absence of the object 6 approaching the sensor unit 1 and the distance between the sensor unit 1 and the object 6 based on the detection result of the capacitance. The input device is applied to a user interface device such as a touch sensor or a touch pad. Note that "proximity" in this specification means being close to each other, and does not limit the presence or absence of contact between adjacent objects.
[0030] The sensor unit 1 has a detection electrode Es for detecting the proximity of an object 6 such as a finger or a pen, and a shield electrode Ea arranged in proximity to the detection electrode Es. The detection electrode Es is arranged in an area of the sensor unit 1 where the object approaches. For example, the surface of the detection area of the object 6 is covered with an insulating cover layer, and the detection electrode Es is arranged below the cover layer. The shield electrode Ea is an electrostatic shield for preventing electrostatic coupling between a conductor other than the object 6 and the detection electrode Es. The shield electrode Ea is arranged, for example, below the detection electrode Es in the detection area of the object 6.
[0031] 1, a capacitor Crg, the capacitance of which is to be detected, is formed between the detection electrode Es and the target object 6. A capacitor Crs is formed between the shield electrode Ea and the detection electrode Es. A capacitor Crgl is formed between the detection electrode Es and ground, and a capacitor Csg is formed between the shield electrode Ea and ground.
[0032] The capacitance detection device 2 detects the capacitance of a capacitor Crg formed between the target object 6 and a detection electrode Es, and outputs a detection value Ds indicating the detection result.
[0033] The processing unit 3 is a circuit that controls the overall operation of the input device, and includes, for example, a computer that executes processing according to instruction codes of a program stored in the storage unit 4, and hardware configured to realize a specific function (for example, logic circuits such as ASIC and FPGA). The processing in the processing unit 3 may be realized based on a program in a computer, or at least a part of it may be realized by dedicated hardware.
[0034] The processing unit 3 determines whether the object 6 is close to the sensor unit 1 and calculates the distance between the object 6 and the sensor unit 1 based on the capacitance detection value Ds output from the capacitance detection device 2. The sensor unit 1 may include a plurality of detection electrodes Es, and the capacitance detection device 2 may detect the capacitance of the capacitor Crg for each of the plurality of detection electrodes Es. The processing unit 3 may calculate the proximity position of the object 6 in the sensor unit 1 and the size of the object 6 based on the capacitance detection value Ds obtained for each detection electrode Es.
[0035] The storage unit 4 stores the computer programs constituting the processing unit 3, data used for processing in the processing unit 3, data temporarily held during the processing, etc. The storage unit 4 is configured using any storage device such as a DRAM, an SRAM, a flash memory, or a hard disk.
[0036] The interface unit 5 is a circuit for exchanging data between the input device and another device (such as a host controller of an electronic device equipped with the input device). The processing unit 3 outputs information obtained based on the detection result of the capacitance detection device 2 (such as the presence or absence of an object 6, the proximity position of the object 6, the distance from the object 6, and the size of the object 6) to a higher-level device (not shown) via the interface unit 5. The higher-level device uses this information to construct a user interface that recognizes, for example, pointing operations and gesture operations.
[0037] Next, the configuration of the capacitance detection device 2 will be described. Fig. 2 is a diagram showing an example of the configuration of the capacitance detection device 2 according to this embodiment. The capacitance detection device 2 shown in Fig. 2 has an AC voltage output section 20, a detection signal generation section 23 that generates a detection signal Vm, an analog-digital conversion section 24, a calculation section 25, and a correction section 26. Note that in the following description, "analog-digital conversion" may be abbreviated as "A / D conversion", and "digital-analog conversion" may be abbreviated as "D / A conversion".
[0038] The AC voltage output unit 20 outputs a first AC voltage V1 supplied to the shield electrode Ea and a second AC voltage V2 having a smaller amplitude than the first AC voltage V1. The first AC voltage V1 and the second AC voltage V2 have the same frequency f1 and are generally in phase with each other. For example, the first AC voltage V1 and the second AC voltage V2 are sinusoidal AC voltages to which a constant DC bias (e.g., a DC voltage half the power supply voltage) is added.
[0039] In the example of FIG. 2, AC voltage output section 20 includes a first voltage output section 21 and a second voltage output section 22.
[0040] The first voltage output unit 21 is a circuit that generates a first AC voltage V1 of a sine wave. For example, as shown in FIG. 2, the first voltage output unit 21 includes a sine wave signal generating unit 211, a D / A conversion unit 212, a low-pass filter 213, and an amplifier 214. The sine wave signal generating unit 211 generates a digital signal of a sine wave (a data string of numerical data of a sine wave) synchronized with a clock signal CK, and inputs the digital signal to the D / A conversion unit 212. The D / A conversion unit 212 outputs an analog signal corresponding to the digital signal of the sine wave. The low-pass filter 213 removes high-frequency components included in the analog signal output from the D / A conversion unit 212, and outputs a sine wave signal of frequency f1. The amplifier 214 is a buffer amplifier, and outputs the first AC voltage V1 corresponding to the sine wave signal output from the low-pass filter 213.
[0041] The second voltage output unit 22 is a circuit that outputs a second AC voltage V2 whose frequency and phase are equal to those of the first AC voltage V1 and whose amplitude is smaller than that of the first AC voltage V1, and is configured, for example, by an attenuation circuit that attenuates the amplitude of the first AC voltage V1.
[0042] 2, the second voltage output unit 22 includes a series circuit of a capacitor Ca and a capacitor Cb. The first voltage output unit 21 applies a first AC voltage V1 to both ends of this series circuit. The first AC voltage V1 is divided by the capacitors Ca and Cb, so that a second AC voltage V2 is generated in the capacitor Cb. One terminal of the capacitor Ca is connected to the output of the first voltage output unit 21, the other terminal of the capacitor Ca is connected to one terminal of the capacitor Cb, and the other terminal of the capacitor Cb is connected to ground.
[0043] In one example, the capacitor Ca has a fixed capacitance, and the capacitance of the capacitor Cb is adjustable. The amplitude of the second AC voltage V2 is adjusted according to the capacitance of the capacitor Cb. In this case, the capacitor Cb may be a discrete component with a variable capacitance, or may be a component formed on a semiconductor chip or the like inside an IC. In the latter case, for example, the capacitor Cb is composed of a plurality of capacitors connected in parallel, and the capacitance is adjusted by changing the number of capacitors connected in parallel with a switch or the like.
[0044] The amplitude of the second AC voltage V2 is adjusted so that the charge Qs supplied from the detection signal generating unit 23 to the detection electrode Es becomes approximately zero when there is no object 6 close to the detection electrode Es (when the capacitance of the capacitor Crg is close to zero) in a normal operation mode other than a correction mode described later. In the second voltage output unit 22 shown in FIG. 2, the capacitance ratio between the capacitor Ca and the capacitor Cb is adjusted so that the charge Qs supplied from the detection signal generating unit 23 to the detection electrode Es becomes approximately zero. When the charge Qs becomes zero while the capacitor Crg is zero, the charge supplied to the capacitor Crs and the charge supplied to the parasitic capacitor Crgl are offset. Therefore, by adjusting the amplitude of the second AC voltage V2 so that the charge Qs becomes approximately zero, the component of the parasitic capacitor Crgl included in the detection signal Vm described later of the detection signal generating unit 23 becomes minute, and therefore the deterioration of the detection sensitivity and detection accuracy caused by the parasitic capacitor Crgl is easily suppressed.
[0045] Alternatively, the amplitude of the second AC voltage V2 may be adjusted so that the amplitude of the detection signal Vm approaches zero. When the object 6 is not present close to the detection electrode Es, the amplitude of the detection signal Vm approaches zero, which widens the dynamic range of the detection signal Vm relative to the capacitance of the detection object (the capacitance of the capacitor Crg), making it easier to improve the detection sensitivity.
[0046] The detection signal generating unit 23 supplies an electric charge Qs from the node N1 to the detection electrode Es so that the voltage of the node N1 connected to the detection electrode Es approaches the second AC voltage V2, and generates an AC detection signal Vm according to the supplied electric charge Qs.
[0047] In the example of FIG. 2, the detection signal generating unit 23 includes a charge amplifier 231 and a subtraction unit 232. The charge amplifier 231 supplies an electric charge Qs from the node N1 to the detection electrode Es so that the voltage of the node N1 approaches the second AC voltage V2 applied to the node N2, and outputs a signal Vo according to the supplied electric charge Qs. As shown in FIG. 2, for example, the charge amplifier 231 includes an operational amplifier OP1, a feedback capacitor Cag, and a feedback resistor Rag. The operational amplifier OP1 amplifies the voltage difference between the inverting input terminal connected to the node N1 and the non-inverting input terminal connected to the node N2, and outputs the amplified result as a signal Vo. The feedback capacitor Cag is provided in a path between the output terminal of the signal Vo and the inverting input terminal of the operational amplifier OP1. The feedback resistor Rag is connected in parallel with the feedback capacitor Cag.
[0048] 2, the capacitance value of the feedback capacitor Cag and the resistance value of the feedback resistor Rag are each adjustable. By adjusting the values of these elements, the phase difference between the first AC voltage V1 and the second AC voltage V2 and the signal Vo, and the gain of the amplitude of the signal Vo relative to the capacitance of the capacitor Crg are adjusted. The feedback capacitor Cag and the feedback resistor Rag may be, for example, discrete components whose element values are adjustable, or may be components inside an IC whose element values are adjustable by laser trimming or the like.
[0049] 2, the charge amplifier 231 has a resistor Rs provided in a path connecting the node N1 and the detection electrode Es. The charge amplifier 231 has the resistor Rs, and thereby constitutes a low-pass filter for a signal input from the object 6 via the capacitor Crg. Therefore, even if an AC noise voltage is superimposed between the ground to which the object 6 is grounded and the ground of the capacitance detection device 2, the noise voltage is attenuated by the low-pass filter constituted by the charge amplifier 231. The resistor Rs is, for example, a variable resistor, and is adjusted according to the frequency f1 of the first AC voltage V1 and the second AC voltage V2.
[0050] The subtraction unit 232 subtracts a predetermined reference signal from the signal Vo. The reference signal is a signal equivalent to the signal Vo output from the operational amplifier OP1 when no object 6 is present close to the detection electrode Es in a normal operation mode other than the correction mode. By subtracting the reference signal from the signal Vo, an AC detection signal Vm having an amplitude approximately proportional to the capacitance of the capacitor Crg is obtained. The subtraction unit 232 includes, for example, a fully differential amplifier, and outputs a differential signal obtained by subtracting the reference signal from the signal Vo as the detection signal Vm.
[0051] FIG. 3 is a diagram showing an example of the configuration of the subtraction unit 232. In the example of FIG. 3, the subtraction unit 232 includes a fully differential amplifier 233, resistors R1 to R7, and capacitors C1 to C3. The capacitor C1 is connected between the inverting input terminal and the non-inverting output terminal of the fully differential amplifier 233. The capacitor C2 is connected between the non-inverting input terminal and the inverting output terminal of the fully differential amplifier 233. The signal Vo of the charge amplifier 231 is input to the inverting input terminal of the fully differential amplifier 233 via resistors R3 and R4 connected in series. The signal Vo is input to one end of the resistor R3, and the inverting input terminal of the fully differential amplifier 233 is connected to one end of the resistor R4. The connection midpoint of the resistors R3 and R4 is connected to the non-inverting output terminal of the fully differential amplifier 233 via resistor R1. The first AC voltage V1 is input to the non-inverting input terminal of the fully differential amplifier 233 via resistors R5 and R6 connected in series. A first AC voltage V1 is input to one end of resistor R5, and a non-inverting input terminal of the fully differential amplifier 233 is connected to one end of resistor R6. A connection midpoint of resistors R5 and R6 is connected to an inverting output terminal of the fully differential amplifier 233 via resistor R2. Capacitor C3 is connected between the connection midpoint of resistors R3 and R4 and the connection midpoint of resistors R5 and R6. A DC bias voltage Vr1 is input to the connection midpoint of resistors R5 and R6 via resistor R7.
[0052] In the subtraction unit 232 shown in FIG. 3, the gains for two inputs (signal Vo, first AC voltage V1) are different. That is, the gain for the second AC voltage V2 input to the path to which the resistor R7 is connected is smaller than the gain for the signal Vo. The subtraction unit 232 amplifies the difference between the signal Vo and an AC voltage (reference signal) attenuated compared to the first AC voltage V1, and outputs the amplified result as a differential signal (detection signal Vm). The subtraction unit 232 also constitutes a low-pass filter, and removes high-frequency components input from the target 6 through the capacitor Crg. This low-pass filter function reduces aliasing noise in the A / D conversion unit 24, which will be described later.
[0053] Return to Figure 2. The A / D conversion unit 24 converts the analog detection signal Vm output from the detection signal generation unit 23 into a digital detection signal Dm. When the detection signal Vm is a differential signal, the A / D conversion unit 24 can be, for example, a ΔΣ A / D conversion unit of a differential input type.
[0054] The calculation unit 25 calculates a detection value of the capacitance based on the detection signal Vm obtained by A / D converting the detection signal Vm.
[0055] For example, the calculation unit 25 multiplies a first synchronization signal U1, which is synchronized with the clock signal CK, has a frequency f1, and has a phase similar to that of the first AC voltage V1, by the detection signal Dm converted into a digital signal. The calculation unit 25 also multiplies a second synchronization signal U2, which is synchronized with the clock signal CK, has a frequency f1, and has a phase shifted by a quarter period from the first synchronization signal U1, by the detection signal Dm converted into a digital signal. The calculation unit 25 then obtains a detection complex number Da, whose real part is a first demodulated signal I obtained by removing harmonic components from the multiplication result of the first synchronization signal U1 and the detection signal Dm, and whose imaginary part is a second demodulated signal Q obtained by removing harmonic components from the multiplication result of the second synchronization signal U2 and the detection signal Dm.
[0056] Here, the first demodulated signal I (the real part of the detection complex number Da) obtained by removing harmonic components from the multiplication result of the first synchronization signal U1, whose phase is close to that of the first AC voltage V1, and the detection signal Dm has a value according to the amplitude of the detection signal Vm, and therefore corresponds to the detection value of the capacitance of the capacitor Crg to be detected. However, this detection value (first demodulated signal I) contains errors associated with changes in the capacitance of the capacitor Crs (hereinafter sometimes referred to as "shield capacitance Crs") and errors associated with fluctuations (jitter) in the phase and frequency of the clock signal CK. Therefore, a correction unit 26, which will be described later, performs a process of correcting these errors.
[0057] Since the two sinusoidal synchronization signals (U1, U2) are in an orthogonal relationship with a phase difference of a quarter period, the two demodulated signals (I, Q) obtained by multiplying the detection signal Dm by the two synchronization signals (U1, U2) respectively and removing the harmonic components represent the relative phase of the detection signal Dm with respect to the synchronization signals (U1, U2). That is, the deflection angle of the detection complex number Da, whose real part is the first demodulated signal I obtained by removing the harmonic components from the multiplication result of the first sinusoidal synchronization signal U1 and the detection signal Dm, and whose imaginary part is the second demodulated signal Q obtained by removing the harmonic components from the multiplication result of the second sinusoidal synchronization signal U2 and the detection signal Dm, represents the phase difference of the detection signal Dm with respect to the first synchronization signal U1. Therefore, the detection complex number Da includes information on the amplitude of the detection signal Dm and information on the phase of the detection signal Dm with respect to the first synchronization signal U1.
[0058] 4 is a diagram showing an example of the configuration of the calculation unit 25. The calculation unit 25 includes a first demodulation unit 251 and a second demodulation unit 254, for example, as shown in FIG. The first demodulation unit 251 multiplies the first synchronization signal U1, which is a sine wave generated in the first synchronization signal generation unit 257, by the detection signal Dm, and generates a first demodulated signal I by removing harmonic components from the result of this multiplication. In the example of Fig. 4, the first demodulation unit 251 includes a multiplication unit 252 that multiplies the detection signal Dm by the first synchronization signal U1, and a low-pass filter 253 that removes harmonic components from the multiplication result of the multiplication unit 252. The second demodulation unit 254 multiplies the second synchronization signal U2, which is a sine wave generated in the second synchronization signal generation unit 258, by the detection signal Dm, and generates a second demodulation signal Q by removing harmonic components from the result of this multiplication. In the example of Fig. 4, the second demodulation unit 254 includes a multiplication unit 255 that multiplies the detection signal Dm by the second synchronization signal U2, and a low-pass filter 256 that removes harmonic components from the multiplication result of the multiplication unit 255.
[0059] The first synchronization signal generating unit 257 and the second synchronization signal generating unit 72 generate a first synchronization signal U1 and a second synchronization signal U2, which are sine waves of a frequency f1 synchronized with a clock signal CK. In one example, the first synchronization signal generating unit 257 generates a COS wave of a frequency f1 as the first synchronization signal U1, and the second synchronization signal generating unit 258 generates a SIN wave whose phase is delayed by a quarter cycle with respect to the first synchronization signal U1 as the second synchronization signal U2.
[0060] Return to Figure 2. The correction unit 26 corrects the change in the detection value of the calculation unit 25 caused by the change in the capacitance (shield capacitance Crs) of the capacitor Crs formed between the shield electrode Ea and the detection electrode Es. In this correction process, the correction unit 26 repeatedly transitions to a correction mode. When transitioning to the correction mode, the correction unit 26 controls the AC voltage output unit 20 so that the difference in amplitude between the first AC voltage V1 and the second AC voltage V2 (V1-V2: AC voltage amplitude difference) changes, and acquires a correction value according to the change in the detection value of the calculation unit 25 caused by the change in the AC voltage amplitude difference (V1-V2). Then, the correction unit 26 corrects the detection value of the calculation unit 25 according to the change in the correction value acquired in the correction mode, and acquires the detection value Ds of the correction result.
[0061] Here, a change in the amplitude of the signal Vo accompanying a change in the shield capacitance Crs will be described. The voltage amplitude of the signal Vo output from the charge amplifier 231 is expressed by the following formula.
[0062]
number
[0063] In equation (1), "Vo", "V1", and "V2" respectively indicate the voltage amplitudes of the signal Vo, the first AC voltage V1, and the second AC voltage V2, and "Crg", "Crgl", "Crs", and "Cag" respectively indicate the capacitances of the capacitors Crg, Crgl, Crs, and Cag.
[0064] Here, let us assume that the amplitude of the first AC voltage V1 is constant and the amplitude of the second AC voltage V2 is changed by "ΔV". If we assume that the capacitance of each capacitor (Crg, Crgl, Crs, Cag) does not change, the change ΔVo in the amplitude of the signal Vo is expressed by the following equation.
[0065]
number
[0066] If the shield capacitance Crs in the initial state is "Crs_ref," then the change ΔVo_ref in the amplitude of the signal Vo when the amplitude of the second AC voltage V2 is changed by "ΔV" in the initial state is expressed by the following equation.
[0067]
number
[0068] The change ΔCrs in the shield capacitance Crs from the initial state is expressed by the following equation, based on equations (2) and (3).
[0069]
number
[0070] However, in equation (4), it is assumed that the change in the capacitance of the capacitors Crg, Crgl, and Cag is sufficiently small compared to the change ΔCrs in the shield capacitance Crs and can be ignored.
[0071] On the other hand, a change ΔVo_crs in the amplitude of the signal Vo associated with a change ΔCrs in the shield capacitance Crs is expressed by the following equation.
[0072]
number
[0073] In this equation (5), it is also assumed that the change in the capacitance of the capacitors Crg, Crgl, and Cag is sufficiently small compared to the change ΔCrs in the shield capacitance Crs and can be ignored.
[0074] By substituting equation (4) into equation (5), the change ΔVo_crs in the amplitude of the signal Vo associated with the change ΔCrs in the shield capacitance Crs is expressed by the following equation.
[0075]
number
[0076] The proportionality coefficient α in equation (6) is expressed by the following equation.
[0077]
number
[0078] When the shield capacitance Crs has changed by "ΔCrs" from the initial state, the amplitude of the signal Vo contains a change (error) equivalent to "ΔVo_crs" in equation (6) due to this change in the shield capacitance Crs. Therefore, by subtracting this "ΔVo_crs" from the amplitude "Vo", the change (error) in the amplitude of the signal Vo caused by the change ΔCrs in the shield capacitance Crs is corrected. The amplitude of the signal Vo after correction is expressed by the following equation.
[0079]
number
[0080] As can be seen by comparing equation (1) and equation (8-2), the amplitude calculated by applying the correction of equation (8-1) to the amplitude of signal Vo is equivalent to the amplitude of signal Vo obtained when the shield capacitance Crs, which has changed from the initial state, is returned to the initial shield capacitance Crs_ref.
[0081] In order to perform the correction of equation (8-1), the correction unit 26 acquires correction values corresponding to "ΔVo_ref" and "ΔVo" in equation (8-1) in each correction mode. This correction value is a value according to a change in the detection value of the calculation unit 25 accompanying a change ΔV in the AC voltage amplitude difference (V1-V2). "ΔVo_ref" corresponds to a correction value (first correction value) acquired in the correction mode in the initial state, and "ΔVo" corresponds to a correction value (second correction value) acquired in a correction mode after the initial state. After acquiring the two correction values corresponding to "ΔVo_ref" and "ΔVo", the correction unit 26 performs a correction corresponding to equation (8-1) on the detection value of the calculation unit 25 corresponding to "Vo". That is, just as "Vo" is corrected according to the change (ΔVo-ΔVo_ref) of "ΔVo" relative to "ΔVo_ref" in equation (8-1), the correction unit 26 corrects the detection value of the calculation unit 25 according to the change in the correction value (second correction value-first correction value) acquired in the correction mode. In this way, the correction unit 26 corrects the change (error) in the detection value of the calculation unit 25 caused by the change in the shield capacitance Crs.
[0082] Moreover, the correction unit 26 corrects the error in the detection value caused by the change in the shield capacitance Crs, as well as the error in the detection value caused by the jitter in the clock signal CK.
[0083] When the relative phase between the first AC voltage V1 and the second AC voltage V2 and the first synchronization signal U1 and the second synchronization signal U2 changes due to jitter in the clock signal CK, the argument of the detection complex number Da acquired by the calculation unit 25 changes in response to this phase change. When the argument of the detection complex number Da changes, its real part (first demodulation signal I) also changes. Therefore, the real part (first demodulation signal I) of the detection complex number Da, which corresponds to the detection value of the capacitance calculated by the calculation unit 25, is affected by the jitter in the clock signal CK and generates an error.
[0084] In order to correct an error in the detection value due to jitter in the clock signal CK, the correction unit 26 acquires a complex number including phase information as a correction value in the above-mentioned correction mode. That is, when the correction unit 26 transitions to the correction mode, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference (V1-V2) changes, and acquires, as a correction value, a complex number according to a change in the detection complex number Da accompanying the change in the AC voltage amplitude difference (V1-V2).
[0085] The correction unit 26 performs a first phase correction on the first correction value B1, which is a correction value acquired in the correction mode in the initial state, to correct the phase so that the argument angle θ1 of the first correction value B1 approaches zero. The first phase correction is a correction that rotates the phase angle by "-θ1". Moreover, the correction unit 26 performs a second phase correction on the second correction value B2, which is a correction value acquired in a correction mode after the initial state, to correct the phase so that the argument angle θ2 of the second correction value B2 approaches zero. The second phase correction is a correction that rotates the phase angle by "-θ2". Furthermore, the correction unit 26 applies the second phase correction, which is the same as the second correction value B2, to the detection complex number Da. Since the argument of the detection complex number Da remains substantially constant even if the AC voltage amplitude difference (V1-V2) changes, the argument θ2 of the second correction value according to the change in the detection complex number Da accompanying the change in the AC voltage amplitude difference (V1-V2) has a value close to the argument of the detection complex number Da. Therefore, when the second phase correction is applied to the detection complex number Da, the argument of the detection complex number Da also approaches zero. Therefore, the first correction value B1, the second correction value B2, and the argument of the detection complex number Da become close to zero by the phase correction, and the change in the argument of the detection complex number Da caused by the jitter of the clock signal CK is eliminated. When the argument of the first correction value B1, the second correction value B2, and the detection complex number Da become close to zero, their imaginary parts become close to zero. The first correction value B1, the second correction value B2, and the real part of the detection complex number Da have values corresponding to "ΔVo_ref", "ΔVo", and "Vo" in formula (8-1), respectively.
[0086] The correction unit 26 corrects the real part of the detection complex number Da subjected to the second phase correction so that the correction target component (ΔVo_crs, formula (6)) proportional to the difference (ΔVo-ΔVo_ref) between the real part (ΔVo_ref) of the first correction value B1 subjected to the first phase correction and the real part (ΔVo) of the second correction value B2 subjected to the second phase correction, which corresponds to the change in the real part of the detection complex number Da accompanying the change in the shield capacitance Crs, is cancelled out (formula (8-1)). As a result, the correction unit 26 acquires the detection value Ds in which the error due to the change ΔCrs in the shield capacitance Crs and the error due to the jitter of the clock signal CK are corrected.
[0087] The correction unit 26 acquires the second correction value B2 every time the correction mode is entered after the initial state. In a normal operation mode other than the correction mode, the correction unit 26 acquires a corrected detection value Ds based on the first correction value B1 to which the first phase correction has been performed, the second correction value B2 acquired in the most recent correction mode, and the detection complex number Da.
[0088] Next, a capacitance detection method in the capacitance detection device 2 of the input device having the above-mentioned configuration will be described with reference to a flowchart. Fig. 5 is a flowchart for explaining an example of the capacitance detection method according to the first embodiment.
[0089] For example, when the power is turned on or an instruction to set the capacitance detection device 2 to the initial state is input from the processing unit 3, the capacitance detection device 2 transitions to a correction mode in the initial state (ST100).
[0090] FIG. 6 is a flowchart for explaining an example of a process in the correction mode (ST100) in the initial state in the capacitance detection method shown in FIG. First, the correction unit 26 controls the AC voltage output unit 20 (second voltage output unit 22) so that the amplitude of the second AC voltage V2 becomes a normal value (ST200). Here, the normal amplitude of the second AC voltage V2 is "V2". The AC voltage amplitude difference, which is the difference between the amplitude of the first AC voltage V1 and the amplitude of the second AC voltage V2, is "V1-V2". Hereinafter, the AC voltage amplitude difference of "V1-V2" may be referred to as the "first amplitude difference". In this case, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference becomes the first amplitude difference "V1-V2".
[0091] The calculation unit 25 acquires the detection complex number Da as the "first detection complex number Da_ref(V2)" when the second AC voltage V2 has the normal amplitude "V2" (when the AC voltage amplitude difference is the first amplitude difference "V1-V2") in the correction mode in the initial state (ST205). The real part of the first detection complex number Da_ref(V2) is "I_ref(V2)" and the imaginary part of the first detection complex number Da_ref(V2) is "Q_ref(V2)".
[0092] Next, correction unit 26 controls AC voltage output unit 20 (second voltage output unit 22) so that the amplitude of second AC voltage V2 is higher than the normal value by "ΔV" (ST210). The AC voltage amplitude difference becomes "V1-(V2+ΔV)". Hereinafter, the AC voltage amplitude difference of "V1-(V2+ΔV)" may be referred to as the "second amplitude difference". In this case, correction unit 26 has controlled AC voltage output unit 20 so that the AC voltage amplitude difference becomes the second amplitude difference "V1-(V2+ΔV)".
[0093] When the amplitude of the second AC voltage V2 is "V2+ΔV" (when the AC voltage amplitude difference is the second amplitude difference "V1-(V2+ΔV)") in the correction mode in the initial state, the calculation unit 25 acquires the detection complex number Da as "second detection complex number Da_ref(V2+ΔV)" (ST215). The real part of the second detection complex number Da_ref(V2+ΔV) is "I_ref(V2+ΔV)" and the imaginary part of the second detection complex number Da_ref(V2+ΔV) is "Q_ref(V2+ΔV)".
[0094] In the correction mode of the initial state, the correction unit 26 acquires a first correction value B1 according to a change in the detection complex number Da associated with a change ΔV in the AC voltage amplitude difference (ST220). The correction unit 26 acquires, as the first correction value B1, a complex number obtained by subtracting the first detection complex number Da_ref(V2) from the second detection complex number Da_ref(V2+ΔV).
[0095] The correction unit 26 acquires a coefficient used for the first phase correction that corrects the phase so that the argument θ1 of the first correction value B1 approaches zero (ST250). The first phase correction is a rotation transformation that rotates the phase angle by "-θ1". If the real part and imaginary part of the first correction value B1 before the first phase correction are respectively "Re{B1}" and "Im{B1}" and the real part and imaginary part of the first correction value B1_R after the first phase correction are respectively "Re{B1_R}" and "Im{B1_R}", the rotation transformation by the first phase correction is expressed by the following equation.
[0096]
number
[0097] In equation (9), "A1" indicates a matrix of rotational transformation for the first phase correction. The correction unit 26 acquires "COS(θ1)" and "SIN(θ1)" which are elements of this matrix A1. "COS(θ1)" and "SIN(θ1)" are respectively expressed by the following equations.
[0098]
number
[0099] The correction unit 26 obtains a first correction value B1_R by performing a first phase conversion on the first correction value B1 (ST255). The real part Re{B1_R} of the first correction value B1_R is expressed by the following equation.
[0100]
number
[0101] Return to Figure 5. The capacitance detection device 2 determines whether it is time to transition to the correction mode (ST105). For example, the capacitance detection device 2 determines that it is time to transition to the correction mode at a predetermined cycle. Alternatively, the capacitance detection device 2 may determine that it is time to transition when an instruction to transition to the correction mode is input from the processing unit 3. When it is determined in step ST105 that it is time to transition and transitions to the correction mode (step ST110), the capacitance detection device 2 executes the process shown in FIG. 7.
[0102] FIG. 7 is a flowchart for explaining an example of a process in the correction mode (ST110) after the initial state in the capacitance detection method shown in FIG. First, the correction unit 26 controls the AC voltage output unit 20 (the second voltage output unit 22) so that the second AC voltage V2 has a normal amplitude "V2" (ST300). That is, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference becomes the first amplitude difference "V1-V2".
[0103] The calculation unit 25 acquires the detection complex number Da as the "first detection complex number Da(V2)" when the second AC voltage V2 has the normal amplitude "V2" (when the AC voltage amplitude difference is the first amplitude difference "V1-V2") in the correction mode after the initial state (ST305). The real part of the first detection complex number Da(V2) is "I(V2)" and the imaginary part of the first detection complex number Da(V2) is "Q(V2)".
[0104] Next, correction unit 26 controls AC voltage output unit 20 (second voltage output unit 22) so that the amplitude of second AC voltage V2 is higher than the normal value by "ΔV" (ST310). The AC voltage amplitude difference becomes "V1-(V2+ΔV)". That is, correction unit 26 controls AC voltage output unit 20 so that the AC voltage amplitude difference becomes the second amplitude difference "V1-(V2+ΔV)".
[0105] When the amplitude of the second AC voltage V2 is "V2+ΔV" (when the AC voltage amplitude difference is the second amplitude difference "V1-(V2+ΔV)") in the correction mode after the initial state, the calculation unit 25 acquires the detection complex number Da as "second detection complex number Da(V2+ΔV)" (ST315). The real part of the second detection complex number Da(V2+ΔV) is "I(V2+ΔV)" and the imaginary part of the second detection complex number Da(V2+ΔV) is "Q(V2+ΔV)".
[0106] In a correction mode after the initial state, the correction unit 26 acquires a second correction value B2 according to a change in the detection complex number Da associated with a change ΔV in the AC voltage amplitude difference (ST320). The correction unit 26 acquires, as the second correction value B2, a complex number obtained by subtracting the first detection complex number Da(V2) from the second detection complex number Da(V2+ΔV).
[0107] The correction unit 26 acquires a coefficient used for the second phase correction, which corrects the phase so that the argument θ2 of the second correction value B2 approaches zero (ST350). The second phase correction is a rotation transformation that rotates the phase angle by "-θ2". If the real part and imaginary part of the second correction value B2 before the second phase correction are respectively "Re{B2}" and "Im{B2}", and the real part and imaginary part of the second correction value B2_R after the second phase correction are respectively "Re{B2_R}" and "Im{B2_R}", the rotation transformation by the second phase correction is expressed by the following equation.
[0108]
number
[0109] In equation (12), "A2" indicates a matrix of rotational transformation for the second phase correction. The correction unit 26 acquires "COS(θ2)" and "SIN(θ2)" which are elements of this matrix A2. "COS(θ2)" and "SIN(θ2)" are respectively expressed by the following equations.
[0110]
number
[0111] The correction unit 26 obtains a second correction value B2_R by performing a second phase conversion on the second correction value B2 (ST355). The real part Re{B2_R} of the second correction value B2_R is expressed by the following equation.
[0112]
number
[0113] Return to Figure 5. The capacitance detection device 2 determines whether it is time to detect the capacitance (ST115). For example, the capacitance detection device 2 determines that it is time to detect the capacitance at a predetermined cycle. The timing of transition to the correction mode determined in step ST105 is set to be longer than the timing of capacitance detection determined in this step ST115. This makes it easier to reduce the processing load because the frequency of transition to the correction mode (ST110) is lower than the frequency of capacitance detection.
[0114] When it is determined in step ST115 that it is time to detect the capacitance, the calculation unit 25 sets the second AC voltage V2 to the normal amplitude "V2" (sets the AC voltage amplitude difference to the first amplitude difference "V1-V2"), and acquires the detection complex number Da(V2) based on the detection signal Dm generated in this state (ST120). The correction unit 26 acquires the corrected detection value Ds based on the acquired detection complex number Da(V2), the first correction value B1_R (ST255, FIG. 6) to which the first phase correction has been applied, and the second correction value B2_R (ST355, FIG. 7) acquired in the most recent correction mode (ST125).
[0115] FIG. 8 is a flowchart for explaining an example of a process (ST125) for acquiring a corrected detection value in the capacitance detection method shown in FIG. The correction unit 26 performs the second phase correction on the detection complex number Da(V2) based on the second phase correction coefficients "COS(θ2)" and "SIN(θ2)" (ST350, FIG. 7) acquired by the second correction value B2 of the most recent correction mode (ST400). The real part of the detection complex number Da_R(V2) after the second phase correction is expressed by the following equation.
[0116]
number
[0117] The correction unit 26 multiplies the difference between the real part "Re{B1_R}" of the first correction value B1_R that has been subjected to the first phase correction and the real part "Re{B2_R}" of the second correction value B2R that has been subjected to the second phase correction by a proportionality coefficient β, and obtains a corrected detection value Ds based on the sum of the result of the multiplication and the real part "Re{Da_R(V2)}" of the detection complex number Da_R(V2) that has been subjected to the second phase correction. The corrected detection value Ds is expressed by the following formula.
[0118]
number
[0119] The capacitance detection device 2 repeats the above-mentioned processes of steps ST105 to ST125 (ST135) until receiving an instruction to end the process from the processing unit 3. When the capacitance detection device 2 receives an instruction to return to the initial state from the processing unit 3, the capacitance detection device 2 returns to step ST100 and repeats the processes from step ST100 onwards.
[0120] As described above, according to this embodiment, the transition to the correction mode is repeated, and when the mode is transitioned to the correction mode, the AC voltage output unit 20 is controlled so that the difference in amplitude between the first AC voltage V1 and the second AC voltage V2 (AC voltage amplitude difference) changes, and the correction values (B1, B2) corresponding to the change in the detection value of the calculation unit 25 accompanying the change in the AC voltage amplitude difference are acquired. Since the change in the detection value of the calculation unit 25 accompanying the change in the AC voltage amplitude difference has a value corresponding to the shield capacitance Crs (Equation (2) and Equation (3)), the correction values (B1, B2) acquired in the correction mode have a value corresponding to the shield capacitance Crs. The detection value is corrected according to the change in the correction value (B2-B1), so that the detection value of the calculation unit 25 is corrected according to the change in the shield capacitance Crs. Therefore, it is possible to correct the change in the detection value of the calculation unit 25 accompanying the change in the shield capacitance Crs, and the detection error of the capacitance can be reduced.
[0121] According to this embodiment, the first correction value B1 acquired in the correction mode in the initial state, the second correction value B2 acquired in the correction mode after the initial state, and the argument of the detection complex number Da(V2) are adjusted to near zero by phase correction, so that the real parts of these complex numbers (Equation (11), Equation (14), and Equation (15)) are values from which the influence of jitter in the clock signal CK has been substantially eliminated. Then, the correction unit 26 acquires the detection value Ds corrected for the change in the shield capacitance Crs based on the first correction value B1_R, the second correction value B2_R, and the real part of the detection complex number Da_R(V2) from which the influence of jitter in the clock signal CK has been eliminated. That is, since the component to be corrected, which is proportional to the difference between the real part of the first corrected value B1_R having undergone the first phase correction and the real part of the second corrected value B2_R having undergone the second phase correction, has a value corresponding to the change in the detection value accompanying the change in the shield capacitance Crs (equation (6)), the real part of the detection complex number Da_R(V2) having undergone the second phase correction is corrected so that this component to be corrected is offset (equation (16)). The detection value Ds thus obtained is corrected for the error accompanying the change in the shield capacitance Crs from the initial state and the error accompanying the jitter of the clock signal CK, and therefore the detection error of the capacitance can be further reduced.
[0122] Next, some modified examples of the capacitance detection method according to this embodiment will be described.
[0123] [Variation 1] FIG. 9 is a flowchart for explaining a modified example of the correction mode process (ST110) after the initial state in the capacitance detection method shown in FIG.
[0124] In this modified example 1, the second phase correction for the second correction value B2 (Equation (14)) and the second phase correction for the detection complex number Da(V2) (Equation (15)) are equivalently replaced with the second phase correction for the intermediate correction value M (Equation (17)) based on the second correction value B2 and the detection complex number Da(V2). Therefore, the process of the second phase correction for the second correction value B (ST355) in the flowchart shown in FIG. 7 is omitted in the flowchart shown in FIG. 9. The other processes in the flowchart shown in FIG. 9 are the same as those in the flowchart shown in FIG. 7.
[0125] FIG. 10 is a flowchart for explaining a modified example of the process for acquiring the corrected detection value (ST125, FIG. 5). In the process of acquiring the corrected detection value Ds (ST125, FIG. 5), the correction unit 26 first calculates an intermediate correction value M (ST450). The intermediate correction value M is expressed by the following formula.
[0126]
number
[0127] In equation (17), the detection complex number Da(V2) is obtained in step ST120 (FIG. 5), and the second correction value B2 is obtained in step ST320 (FIG. 9).
[0128] The correction unit 26 performs a second phase correction based on the coefficients "COS(θ2)" and "SIN(θ2)" acquired in step ST350 (FIG. 9) on the calculated intermediate correction value M (ST455). That is, the correction unit 26 performs a second phase correction on the sum of the complex number obtained by multiplying the second correction value B2 by the proportionality coefficient β and the detection complex number Da(V2), rotating a phase angle equivalent to the argument θ2 of the second correction value. The real part of the intermediate correction value M_R after the second phase correction is performed is expressed by the following equation.
[0129]
number
[0130] The correction unit 26 obtains the corrected detection value Ds based on the result of subtracting the value obtained by multiplying the real part of the first correction value B1_R (ST255, FIG. 6) that has been subjected to the first phase correction by a proportionality coefficient β from the real part of the intermediate correction value M_R that has been subjected to the second phase correction (ST455) (ST460). The detection value Ds obtained by this calculation is expressed by the following formula.
[0131]
number
[0132] As can be seen from equation (19), the detection value Ds calculated using the intermediate correction value M is equivalent to the detection value Ds calculated by equation (16).
[0133] [Variation 2] In this variant example 2, when acquiring complex correction values (first correction value B1, second correction value B2) corresponding to the change in the detection complex number Da accompanying the change in the AC voltage amplitude difference (V1-V2), the AC voltage amplitude difference (V1-V2) is modulated by a modulation signal.
[0134] FIG. 11 is a flowchart for explaining a modified example of the correction mode process (ST100, FIG. 5) in the initial state in the capacitance detection method shown in FIG. When shifting to the correction mode, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference (V1 - V2) is modulated by a modulation signal with a constant amplitude having a frequency f2 (f2 < f1). For example, the correction unit 26 causes the sine wave signal generation unit 211 (Fig. 2) to generate a sine wave signal with a frequency f1 whose amplitude is modulated by a modulation signal with a frequency f2, thereby causing the first voltage output unit 21 to output the first AC voltage V1 modulated by the modulation signal with a frequency f2. Since the second AC voltage V2 output from the second voltage output unit 22 is the one with the amplitude of the first AC voltage V1 attenuated, the modulation degree of the second AC voltage V2 is the same as that of the first AC voltage V1. Therefore, the AC voltage amplitude difference (V1 - V2) becomes an AC voltage with a frequency f1 modulated by a modulation signal with a frequency f2.
[0135] When the AC voltage amplitude difference (V1 - V2) is modulated as described above, the real part (first demodulation signal I) and the imaginary part (second demodulation signal Q) of the detection complex number Da output from the calculation unit 25 each contain an AC component with a frequency f2 caused by the modulation signal. The correction unit 26 detects the amplitude of the AC component with a frequency f2 contained in the real part of the detection complex number Da, and obtains the detected amplitude as the real part "Re{B1}" of the first correction value B1 (ST235). Also, the correction unit 26 detects the amplitude of the AC component with a frequency f2 contained in the imaginary part of the detection complex number Da, and obtains the detected amplitude as the imaginary part "Im{B1}" of the first correction value B1 (ST240). The amplitude of the AC component can be detected, for example, by detecting the upper and lower peak values of the AC component and averaging their difference. When the real part and the imaginary part of the first correction value B1 are each obtained, the correction unit 26 obtains the real part of the first correction value B1_R subjected to the first phase correction by the same processing as steps ST250 and ST255 in the flowchart of Fig. 6.
[0136] Fig. 12 is a flowchart for explaining a modified example of the processing (ST110, Fig. 5) in the correction mode after the initial state in the capacitance detection method shown in Fig. 5. In this case, the correction unit 26 also modulates the AC voltage amplitude difference (V1-V2) with a modulation signal of a constant amplitude of frequency f2 (ST330). In a state in which the AC voltage amplitude difference (V1-V2) is modulated, the correction unit 26 detects the amplitude of the AC component of frequency f2 included in the real part of the detection complex number Da, and acquires the detected amplitude as the real part "Re{B2}" of the second correction value B2 (ST335). The correction unit 26 also detects the amplitude of the AC component of frequency f2 included in the imaginary part of the detection complex number Da, and acquires the detected amplitude as the imaginary part "Im{B2}" of the second correction value B2 (ST340). Then, the correction unit 26 acquires the coefficients "COS(θ2)" and "SIN(θ2)" for the second phase correction, and acquires the real part of the second correction value B2_R to which the second phase correction has been applied, by the same processing as steps ST350 and ST355 of the flowchart in FIG. 7.
[0137] In the capacitance detection method of this variant example 2, it is also possible to obtain complex correction values (first correction value B1, second correction value B2) corresponding to the change in the detection complex number Da accompanying the change in the AC voltage amplitude difference (V1-V2), so that it is possible to obtain a corrected detection value Ds, as in the above-described embodiment.
[0138] <Second embodiment> Next, a capacitance detection device and a capacitance detection method thereof according to a second embodiment will be described. In the above-mentioned first embodiment, the error caused by the change in the shield capacitance Crs and the error in the detection value caused by the jitter of the clock signal CK are corrected, respectively. In the second embodiment, however, only the error in the detection value caused by the change in the shield capacitance Crs is corrected. In this second embodiment, since no processing related to phase correction is performed, only the real part (first demodulation signal I) of the detection complex number Da is used for processing. Therefore, the calculation unit 25 of the capacitance detection device 2 according to the second embodiment may not include a part related to the generation of the second demodulation signal Q (the second demodulation unit 254, the second synchronization signal generation unit 258). Other configurations of the capacitance detection device 2 according to the second embodiment may be substantially the same as those of the capacitance detection device 2 shown in FIG. 1 to FIG. 4.
[0139] FIG. 13 is a flowchart illustrating an example of a capacitance detection method according to the second embodiment.
[0140] For example, when the power is turned on or an instruction to set the capacitance detection device 2 to the initial state is input from the processing unit 3, the capacitance detection device 2 transitions to a correction mode in the initial state (ST500).
[0141] FIG. 14 is a flowchart for explaining an example of a correction mode process (ST500) in the initial state in the capacitance detection method shown in FIG. First, the correction unit 26 controls the AC voltage output unit 20 (second voltage output unit 22) so that the second AC voltage V2 has a normal amplitude "V2" (ST600). That is, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference becomes the first amplitude difference "V1-V2".
[0142] The calculation unit 25 acquires the detection value (first demodulated signal I) when the second AC voltage V2 has the normal amplitude “V2” (when the AC voltage amplitude difference is the first amplitude difference “V1-V2”) in the initial state correction mode as the “first detection value Da_ref(V2)” (ST605).
[0143] Next, correction unit 26 controls AC voltage output unit 20 (second voltage output unit 22) so that the amplitude of second AC voltage V2 is higher than the normal value by "ΔV" (ST610). That is, correction unit 26 controls AC voltage output unit 20 so that the AC voltage amplitude difference becomes the second amplitude difference "V1-(V2+ΔV)".
[0144] The calculation unit 25 acquires the detection value (first demodulated signal I) when the amplitude of the second AC voltage V2 is “V2+ΔV” (when the AC voltage amplitude difference is the second amplitude difference “V1-(V2+ΔV)”) in the initial state correction mode as the “second detection value Da_ref(V2+ΔV)” (ST215).
[0145] In the correction mode of the initial state, the correction unit 26 acquires a first correction value B1 according to a change in the detection value (first demodulated signal I) accompanying a change ΔV in the AC voltage amplitude difference (ST620). The correction unit 26 acquires, as the first correction value B1, a value obtained by subtracting the first detection value Da_ref(V2) from the second detection value Da_ref(V2+ΔV).
[0146] Return to Figure 13. The capacitance detection device 2 determines whether it is time to transition to the correction mode (ST505). For example, the capacitance detection device 2 determines that it is time to transition to the correction mode at a predetermined cycle. The capacitance detection device 2 may also determine that it is time to transition when an instruction to transition to the correction mode is input from the processing unit 3. When it is determined in step ST505 that it is time to transition and transitions to the correction mode (step ST510), the capacitance detection device 2 executes the process shown in FIG.
[0147] FIG. 15 is a flowchart for explaining an example of the process (ST510) of the correction mode after the initial state in the capacitance detection method shown in FIG. First, the correction unit 26 controls the AC voltage output unit 20 (second voltage output unit 22) so that the second AC voltage V2 has a normal amplitude "V2" (ST700). That is, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference becomes the first amplitude difference "V1-V2".
[0148] The calculation unit 25 acquires the detection value (first demodulated signal I) when the second AC voltage V2 has the normal amplitude “V2” (when the AC voltage amplitude difference is the first amplitude difference “V1-V2”) in the correction mode after the initial state as the “first detection value Da(V2)” (ST705).
[0149] Next, correction unit 26 controls AC voltage output unit 20 (second voltage output unit 22) so that the amplitude of second AC voltage V2 is higher than the normal value by "ΔV" (ST710). The AC voltage amplitude difference becomes "V1-(V2+ΔV)". That is, correction unit 26 controls AC voltage output unit 20 so that the AC voltage amplitude difference becomes the second amplitude difference "V1-(V2+ΔV)".
[0150] The calculation unit 25 acquires the detection value (first demodulated signal I) when the amplitude of the second AC voltage V2 is “V2+ΔV” (when the AC voltage amplitude difference is the second amplitude difference “V1-(V2+ΔV)”) in the correction mode after the initial state as the “second detection value Da(V2+ΔV)” (ST715).
[0151] In a correction mode after the initial state, the correction unit 26 acquires a second correction value B2 corresponding to a change in the detection value (first demodulated signal I) accompanying a change ΔV in the AC voltage amplitude difference (ST720). The correction unit 26 acquires, as the second correction value B2, a value obtained by subtracting the first detection value Da(V2) from the second detection value Da(V2+ΔV).
[0152] The correction unit 26 calculates a correction target component P=-β·(B2-B1) proportional to the difference between the first correction value B1 (ST620, FIG. 14) acquired in the correction mode in the initial state and the second correction value B2 (ST720) acquired in the correction mode after the initial state (ST750). The correction target component P corresponds to "ΔVo_crs" in the formula (6) and has a value according to the change in the detection value (first demodulated signal I) accompanying the change in the shield capacitance Crs.
[0153] Return to Figure 13. The capacitance detection device 2 determines whether it is time to detect the capacitance (ST515). For example, the capacitance detection device 2 determines that it is time to detect the capacitance at a predetermined cycle. The timing of transition to the correction mode determined in step ST505 is set to be longer than the timing of capacitance detection determined in step ST515. This makes it easier to reduce the processing load because the frequency of transition to the correction mode (ST510) is lower than the frequency of capacitance detection.
[0154] When it is determined in step ST515 that it is time to detect the capacitance, the calculation unit 25 sets the second AC voltage V2 to the normal amplitude "V2" (sets the AC voltage amplitude difference to the first amplitude difference "V1-V2"), and acquires the detection value Da(V2) based on the detection signal Dm generated in this state (ST520). The correction unit 26 corrects the acquired detection value Da(V2) based on the correction target component P calculated in step ST750 (FIG. 15). That is, the correction unit 26 subtracts the correction target component P from the detection value Da(V2) (Da(V2)-P) so that the correction target component P corresponding to the change in the detection value (first demodulation signal I) accompanying the change in the shield capacitance Crs is offset, and acquires the subtraction result as the corrected detection value Ds (ST525).
[0155] The capacitance detection device 2 repeats the above-mentioned processes of steps ST505 to ST525 (ST535) until receiving an instruction to end the process from the processing unit 3. When the capacitance detection device 2 receives an instruction to return to the initial state from the processing unit 3, the capacitance detection device 2 returns to step ST500 and repeats the processes from step ST500 onwards.
[0156] As described above, in this embodiment as well, similarly to the first embodiment already described, it is possible to effectively reduce errors in the detection value caused by changes in the shield capacitance Crs.
[0157] In the second embodiment as well, similar to Modification 2 of the first embodiment described above, it is possible to obtain correction values (first correction value B1, second correction value B2) in a state where the AC voltage amplitude difference is modulated in the correction mode.
[0158] FIG. 16A is a flowchart for explaining a modification example of the process (ST500) in the correction mode in the initial state in the capacitance detection method shown in FIG. 13. When the correction unit 26 shifts to the correction mode in the initial state, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference (V1 - V2) is modulated by a modulation signal having a constant amplitude with a frequency f2 (f2 < f1) (ST630), detects the amplitude of the AC component with the frequency f2 included in the detected value (first demodulated signal I), and obtains the detected amplitude as the first correction value B1 (ST635).
[0159] FIG. 16B is a flowchart for explaining a modification example of the process (ST510) in the correction mode after the initial state in the capacitance detection method shown in FIG. 13. When the correction unit 26 shifts to the correction mode after the initial state, the correction unit 26 controls the AC voltage output unit 20 so that the AC voltage amplitude difference (V1 - V2) is modulated by a modulation signal having a constant amplitude with a frequency f2 (f2 < f1) (ST730), detects the amplitude of the AC component with the frequency f2 included in the detected value (first demodulated signal I), and obtains the detected amplitude as the second correction value B2 (ST735). Then, the correction unit 26 calculates the component to be corrected P = -β·(B2 - B1) in the same manner as step ST750 in the flowchart of FIG. 15.
[0160] Also in the capacitance detection method of this modification example, since correction values (first correction value B1, second correction value B2) corresponding to the change in the detected value (first demodulated signal I) accompanying the change in the AC voltage amplitude difference (V1 - V2) can be obtained, it is possible to obtain a corrected detected value Ds in the same manner as in the above-described embodiments.
[0161] Note that the present invention is not limited to the above-described embodiments and includes various variations.
[0162] In the above-described embodiment, an example was given in which the amplitude of the second AC voltage V2 was changed while the amplitude of the first AC voltage V1 was kept constant in order to change the AC voltage amplitude difference (V1-V2). In another example of this embodiment, the AC voltage amplitude difference (V1-V2) may be changed by changing the amplitude of the first AC voltage V1 while keeping the amplitude of the second AC voltage V2 constant. In yet another embodiment of this embodiment, the AC voltage amplitude difference (V1-V2) may be changed by changing the amplitude of the first AC voltage V1 and the amplitude of the second AC voltage V2, respectively. In any case, the formulas (4) and (5) are established by assuming that the change in the capacitance of the capacitors Crg, Crgl, and Cag is sufficiently small and negligible compared to the change in the shield capacitance Crs due to temperature or the like, and therefore it is possible to correct the error in the detection value caused by the change in the shield capacitance Crs.
[0163] The input device according to the present embodiment is not limited to a user interface device for inputting information by operation of a finger, etc. In other words, the input device of the present invention is widely applicable to devices for inputting information corresponding to the capacitance of a detection electrode that changes in response to the proximity of various objects, not limited to a human body. [Explanation of symbols]
[0164] 1...sensor unit, 2...capacitance detection device, 3...processing unit, 4...storage unit, 5...interface unit, 6...target object, 20...AC voltage output unit, 21...first voltage output unit, 211...sine wave signal generating unit, 212...D / A conversion unit, 213...low pass filter, 214...amplifier, 22...second voltage output unit, 23...detection signal generating unit, 231...charge amplifier, 232...subtraction unit, 233...totally differential amplifier, 24...A / D conversion unit, 25...calculation unit, 25 1...first demodulation unit, 252...multiplication unit, 253...low-pass filter, 254...second demodulation unit, 255...multiplication unit, 256...low-pass filter, 257...first synchronization signal generation unit, 258...second synchronization signal generation unit, 26...correction unit, Rag...feedback resistor, Rs...resistor, Cag...feedback capacitor, Ca, Cb, Crg, Crgl, Crs, Csg...capacitors, OP1...operational amplifier, Es...detection electrode, Ea...shield electrode, N1, N2...nodes
Claims
1. A capacitance detection device that detects a capacitance between a detection electrode and an object adjacent to the detection electrode, an AC voltage output unit that outputs a first AC voltage supplied to a shield electrode disposed adjacent to the detection electrode, and a second AC voltage having a frequency and a phase equal to those of the first AC voltage and an amplitude smaller than that of the first AC voltage; a detection signal generating unit that supplies charges from the first node connected to the detection electrode so that a voltage of the first node approaches the second AC voltage, and generates an AC detection signal according to the supplied charges; a calculation unit that calculates a detection value of the capacitance based on the detection signal; a correction unit that corrects a change in the detection value caused by a change in a shield capacitance that is a parasitic capacitance between the shield electrode and the detection electrode, The AC voltage output unit is a first AC voltage output unit which is a circuit for generating the first AC voltage having a constant amplitude; a second AC voltage output unit configured with an attenuation circuit that attenuates the amplitude of the first AC voltage and outputs the attenuated AC voltage as the second AC voltage, The detection signal generating unit an operational amplifier that amplifies a voltage difference between an inverting input terminal connected to the first node and a non-inverting input terminal connected to a second node to which the second AC voltage is applied, and outputs the amplified result as a first signal; a feedback capacitor provided in a path between the output terminal of the first signal and the inverting input terminal of the operational amplifier; a subtraction unit that subtracts a reference signal, which is a signal corresponding to the first signal output from the operational amplifier when the object is not present near the detection electrode in a normal operation mode, from the first signal, and outputs the subtraction result as the detection signal, The correction unit is repeatedly transitioning from the normal operating mode to a correction mode; When the correction mode is entered, the attenuation circuit of the second AC voltage output unit is controlled so that a difference in amplitude between the first AC voltage and the second AC voltage is changed, and a correction value corresponding to a change in the detection value accompanying the change in the difference in amplitude is obtained. correcting the detection value in accordance with a change in the correction value acquired in the correction mode; Capacitive sensing device.
2. the correction unit corrects the detection value such that a correction target component proportional to a difference between a first correction value, which is the correction value acquired in the correction mode in an initial state, and a second correction value, which is the correction value acquired in the correction mode after the initial state, and the correction target component corresponding to a change in the detection value accompanying a change in the shield capacitance is offset. The capacitance detection device according to claim 1 .
3. the correction unit calculates the correction target component every time the operation mode is switched to the correction mode, and in the normal operation mode, corrects the detection value based on the correction target component calculated in the most recent correction mode. The capacitance detection device according to claim 2 .
4. an analog-to-digital conversion unit that converts the detection signal into a digital signal in synchronization with a clock signal; the AC voltage output unit outputs the first AC voltage and the second AC voltage, each of which is a sine wave having a first frequency; The calculation unit is multiplying a sine wave synchronization signal having the first frequency in synchronization with the clock signal by the detection signal converted into a digital signal; calculating the detection value according to a demodulated signal obtained by removing harmonic components from the result of the multiplication; The capacitance detection device according to any one of claims 1 to 3.
5. having an analog-to-digital conversion unit that converts the detection signal into a digital signal in synchronization with a clock signal; the AC voltage output unit outputs the first AC voltage and the second AC voltage, each of which is a sine wave having a first frequency; The calculation unit is controlling the attenuation circuit of the second AC voltage output section so that the amplitude difference becomes a first amplitude difference in the normal operation mode; multiplying a sine wave synchronization signal having the first frequency in synchronization with the clock signal by the detection signal converted into a digital signal; calculating the detection value according to a demodulated signal obtained by removing harmonic components from the result of the multiplication; The correction unit is When the correction mode is entered, a first detection value is obtained, which is the detection value when the attenuation circuit of the second AC voltage output unit is controlled so that the difference in amplitude becomes the first amplitude difference, and a second detection value is obtained, which is the detection value when the attenuation circuit of the second AC voltage output unit is controlled so that the difference in amplitude becomes a second amplitude difference different from the first amplitude difference, and the first correction value and the second correction value are obtained as the correction value corresponding to the difference between the first detection value and the second detection value. The capacitance detection device according to claim 2 or 3.
6. when the correction unit transitions to the correction mode, the correction unit causes the first AC voltage modulated by the modulation signal of the second frequency to be output from the first AC voltage output unit so as to output the first AC voltage and the second AC voltage in which the difference in amplitude is modulated by a modulation signal of a constant amplitude having a second frequency lower than the first frequency, and obtains the correction value according to the amplitude of the AC component of the second frequency included in the demodulated signal. The capacitance detection device according to claim 4 .
7. an analog-to-digital conversion unit that converts the detection signal into a digital signal in synchronization with a clock signal; the AC voltage output unit outputs the first AC voltage and the second AC voltage, each of which is a sine wave having a first frequency; The calculation unit is multiplying a first synchronization signal, which is synchronized with the clock signal, has the first frequency, and has a phase similar to that of the first AC voltage, by the detection signal converted into a digital signal; multiplying a second synchronization signal, which is synchronized with the clock signal, has the first frequency, and is shifted in phase by a quarter period from the first synchronization signal, by the detection signal converted into a digital signal; obtain a detection complex number whose real part is a first demodulated signal obtained by removing harmonic components from a multiplication result of the first synchronization signal and the detection signal, and whose imaginary part is a second demodulated signal obtained by removing harmonic components from a multiplication result of the second synchronization signal and the detection signal; The correction unit is When the mode is shifted to the correction mode, the attenuation circuit of the second AC voltage output unit is controlled so that the difference in amplitude changes, and a complex number corresponding to a change in the detection complex number caused by the change in the difference in amplitude is obtained as the correction value, performing a first phase correction on a first correction value, which is the correction value acquired in the correction mode in an initial state, to correct a phase such that the argument of the first correction value approaches zero; performing a second phase correction on the second correction value, which is the correction value acquired in the correction mode after the initial state, to correct a phase such that the argument of the second correction value approaches zero, and also performing the second phase correction on the detection complex number; a correction target component proportional to a difference between a real part of the first correction value subjected to the first phase correction and a real part of the second correction value subjected to the second phase correction, the correction target component corresponding to a change in the real part of the detection complex number caused by a change in the shield capacitance being offset, the correction target component being proportional to a difference between a real part of the first correction value subjected to the first phase correction and a real part of the second correction value subjected to the second phase correction ... corresponding to a change in the real part of the detection complex number caused by a change in the shield capacitance being offset, the correction target component being obtained by correcting the real part of the detection complex number subjected to the second phase correction as the corrected detection value. The capacitance detection device according to claim 1 .
8. The calculation unit controls the attenuation circuit of the second AC voltage output unit so that the amplitude difference becomes a first amplitude difference in the normal operation mode, The correction unit is When the control mode is switched to the correction mode, a first detection complex number is obtained, which is the detection complex number when the attenuation circuit of the second AC voltage output unit is controlled so that the difference in amplitude becomes the first amplitude difference, and a second detection complex number is obtained, which is the detection complex number when the attenuation circuit of the second AC voltage output unit is controlled so that the difference in amplitude becomes a second amplitude difference different from the first amplitude difference, and the correction value according to the difference between the first detection complex number and the second detection complex number is obtained. The capacitance detection device according to claim 7 .
9. When the correction unit transitions to the correction mode, the correction unit causes the first AC voltage modulated by the modulation signal of the second frequency to be output from the first AC voltage output unit so as to output the first AC voltage and the second AC voltage in which the difference in amplitude is modulated by a modulation signal of a constant amplitude having a second frequency lower than the first frequency, and obtains a real part of the correction value corresponding to the amplitude of the AC component of the second frequency included in the first demodulated signal and an imaginary part of the correction value corresponding to the amplitude of the AC component of the second frequency included in the second demodulated signal. The capacitance detection device according to claim 7 .
10. the correction unit multiplies a difference between a real part of the first correction value that has been subjected to the first phase correction and a real part of the second correction value that has been subjected to the second phase correction by a proportional coefficient, and acquires the corrected detection value based on a sum of a result of the multiplication and a real part of the detection complex number that has been subjected to the second phase correction. The capacitance detection device according to any one of claims 7 to 9.
11. The correction unit is applying the second phase correction to an intermediate correction value corresponding to the sum of a complex number obtained by multiplying the second correction value by a proportionality coefficient and the detection complex number, the second phase correction being performed to rotate a phase angle corresponding to the argument of the second correction value; acquiring the corrected detection value based on a result of subtracting a value obtained by multiplying a real part of the first correction value that has been subjected to the first phase correction by the proportionality coefficient from a real part of the intermediate correction value that has been subjected to the second phase correction; The capacitance detection device according to any one of claims 7 to 9.
12. The correction unit is The second correction value is obtained each time the correction mode is changed to the correction mode; In the normal operation mode, the corrected detection value is acquired based on the first correction value to which the first phase correction has been performed, the second correction value acquired in the most recent correction mode, and the detection complex number. The capacitance detection device according to any one of claims 7 to 11.
13. the AC voltage output unit outputs, when the object is not present close to the detection electrode in the normal operation mode, the second AC voltage whose amplitude is adjusted so that the charge supplied from the first node to the detection electrode approaches zero, or the second AC voltage whose amplitude is adjusted so that the detection signal approaches zero. The capacitance detection device according to any one of claims 1 to 12.
14. A capacitance detection method performed in a capacitance detection device that detects capacitance between a detection electrode and an object adjacent to the detection electrode, comprising: The capacitance detection device includes: an AC voltage output unit that outputs a first AC voltage supplied to a shield electrode disposed adjacent to the detection electrode, and a second AC voltage having a frequency and a phase equal to those of the first AC voltage and an amplitude smaller than that of the first AC voltage; a detection signal generating unit that supplies charges from the first node to the detection electrode so that a voltage of a first node connected to the detection electrode approaches the second AC voltage, and generates an AC detection signal according to the supplied charges; The AC voltage output unit is a first AC voltage output unit that outputs the first AC voltage having a constant amplitude; a second AC voltage output unit configured with an attenuation circuit that attenuates the amplitude of the first AC voltage and outputs the attenuated AC voltage as the second AC voltage, The detection signal generating unit an operational amplifier that amplifies a voltage difference between an inverting input terminal connected to the first node and a non-inverting input terminal connected to a second node to which the second AC voltage is applied, and outputs the amplified result as a first signal; a feedback capacitor provided in a path between the output terminal of the first signal and the inverting input terminal of the operational amplifier; a subtraction unit that subtracts a reference signal, which is a signal corresponding to the first signal output from the operational amplifier when the object is not present near the detection electrode in a normal operation mode, from the first signal, and outputs the subtraction result as the detection signal, a calculation step of calculating a detection value of the capacitance based on the detection signal; a correction step of correcting a change in the detection value caused by a change in a shield capacitance, which is a parasitic capacitance between the shield electrode and the detection electrode; The correction step includes: repeatedly transitioning from the normal operating mode to a correction mode; when the correction mode is entered, the attenuation circuit of the second AC voltage output unit is controlled so that a difference in amplitude between the first AC voltage and the second AC voltage is changed, and a correction value corresponding to a change in the detection value accompanying the change in the difference in amplitude is obtained; correcting the detection value in response to a change in the correction value acquired in the correction mode. Capacitive sensing method.
15. a detection electrode whose capacitance with respect to an object changes in response to the approach of the object; a shield electrode disposed adjacent to the detection electrode; The capacitance detection device according to any one of claims 1 to 13, which detects a capacitance between the object and the detection electrode; An input device having:
Citation Information
Patent Citations
High-voltage, high-sensitivity self-capacitance sensing
US9151792B1
Capacitance sensor and method for determining failure of capacitance sensor
WO2012043443A1
WO2018/1167606
Capacitance detection device and input device
WO2018116706A1
