Capacitance detection circuit, chip, method and electronic device
By using a switching module in the capacitance detection circuit to control the connection and disconnection between the capacitance acquisition module and the target port, the capacitance sensing signals in the on and off states are obtained, and the target capacitance sensing value is calculated. This solves the problem of insufficient channels in the capacitance acquisition chip, reduces detection costs, and improves accuracy.
Patent Information
- Application Number
- CN202211603960.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-13
AI Technical Summary
In existing technologies, the communication channels of capacitance acquisition chips are insufficient to acquire capacitance sensing values, resulting in excessively high detection costs. Furthermore, parasitic currents are easily affected by environmental factors, impacting detection accuracy.
A switch module is used to connect the capacitance acquisition module and the target acquisition port. By periodically turning the switch module on or off, the capacitance sensing signals in the on and off states are acquired. The target capacitance sensing value is calculated using a preset algorithm, thereby reducing the occupation of the communication port of the capacitance acquisition module.
Using only a single signal acquisition port, the capacitance sensing value of a single target detection port can be detected, avoiding temperature drift, thus reducing the cost of capacitance detection and improving the accuracy of capacitance sensing values.
Smart Images

Figure CN115825579B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of integrated circuits, in particular to a capacitor detection circuit, a chip, a method and an electronic device. BACKGROUND
[0002] Capacitor sensors are widely used in electronic products such as mobile phones and watches, and are mainly used to identify the distance between the human body and the electronic product. The principle of the above human body distance identification is to detect the capacitive sensing value between the human body and the capacitive sensing element in the electronic product, and to determine the distance between the human body and the electronic product based on the capacitive sensing value.
[0003] However, since the sensing unit of the capacitor is generally located on the surface of the electronic product, and the chip for collecting signals is located on the internal mainboard, the circuit connection wire from the chip to the sensing unit also produces parasitic capacitance, and the parasitic capacitance on the wire is easily affected by the surrounding environmental factors, such as temperature and humidity in the environment, which will affect the judgment of the human body proximity signal.
[0004] In the prior art, a reference circuit is added in the detection circuit to remove the influence of parasitic capacitance and the surrounding environment on the capacitive sensing value between the human body and the capacitive sensing element in the electronic product. However, with the increasing number of current capacitive sensing value device positions, the communication channel of a capacitive collection chip may not be sufficient to complete the collection of capacitive sensing values, and the number of capacitive collection chips needs to be increased to support the detection of capacitive sensing values, resulting in high detection cost. SUMMARY
[0005] The embodiments of the present application provide a capacitor detection circuit, a chip, a method and an electronic device, which solve the problem that the existing collection chip channel is difficult to be applied to a large number of capacitive collection positions.
[0006] In a first aspect, some embodiments of the present application provide a capacitor detection circuit, which includes a capacitive collection module, a switch module and a target collection port. The capacitive collection module is electrically connected to the target collection port through the switch module, so that the capacitive collection module controls the conduction or disconnection of the target collection port via the switch module. The capacitive collection module is configured to obtain a first capacitive sensing signal and a second capacitive sensing signal corresponding to the target collection port, wherein the first capacitive sensing signal is a signal when the switch module is turned on, and the second capacitive sensing signal is a signal when the switch module is turned off. The capacitive collection module is configured to determine a target capacitive sensing value according to the first capacitive sensing signal and the second capacitive sensing signal in a predetermined manner.
[0007] That is, a switch module can be used to connect the capacitance acquisition module and the target acquisition port. The capacitance acquisition module uses the above-mentioned switch cycle control to acquire the capacitance induction signal at all capacitance acquisition signal ports. For each capacitance acquisition signal port, the first capacitance signal when the switch is on and the second capacitance signal when the switch is off are calculated by a preset algorithm to obtain the induction value at each capacitance acquisition signal port.
[0008] It is understandable that the internal circuitry of the aforementioned capacitance acquisition module generates a capacitance sensing signal, and the circuit traces connecting the chip to the sensing unit also generate parasitic capacitance. Furthermore, the parasitic capacitance on these traces is easily affected by surrounding environmental factors; for example, ambient temperature and humidity can affect the detection of human proximity signals. Therefore, by detecting the capacitance sensing signal generated by the internal circuitry of the capacitance acquisition module in the disconnected state, environmental and parasitic capacitance effects can be eliminated. This allows for the detection of the capacitance sensing value at a single target detection port, avoiding temperature drift, using only a single signal acquisition port. Using the disconnected capacitance sensing value as a reference signal reduces the occupancy of the capacitance acquisition module's communication port, lowers capacitance detection costs, and ensures the accuracy of the capacitance sensing value.
[0009] In some embodiments, acquiring the first capacitive sensing signal and the second capacitive sensing signal corresponding to the target acquisition port includes: turning the switching module on or off at a preset period, so that the capacitive acquisition module is connected to the target acquisition port.
[0010] The electrical connection between the ports is turned on or off at a preset cycle to obtain a first capacitor sensing signal and a second capacitor sensing signal.
[0011] By periodically turning the switch module on or off, multiple first capacitance sensing signals and multiple second capacitance sensing signals can be acquired. Periodic acquisition can reduce errors and confirm the capacitance sensing value after temperature drift in real time, which is convenient for users to perform detection and control.
[0012] In some embodiments, the switching module is turned on or off at a preset period, so that the capacitance acquisition module is connected to the target...
[0013] The electrical connection between the target acquisition ports is turned on or off at a preset period, including: the capacitance acquisition module is further used to generate a switch control signal at a preset period and send the switch control signal to the switch module; the switch module is further used to acquire the switch control signal and, based on the switch control signal, turn on or off the electrical connection between the capacitance acquisition module and the target acquisition port at a preset period.
[0014] 5. That is, the switching module is controlled to turn on or off via a switch control signal. In some embodiments, the capacitance acquisition module...
[0015] The switch control signal can be sent to the switch module through the signal transmission port set on it via a preset method.
[0016] It is understandable that the above-mentioned preset method for communication connection only needs to establish a communication connection between the signal transmission port and the switch module, and no restrictions are imposed here.
[0017] In some implementations, the capacitance acquisition module includes multiple capacitance acquisition ports, wherein the multiple capacitance acquisition ports are electrically connected to the target acquisition port one by one through the switching module.
[0018] In other words, each capacitance acquisition port of the capacitance acquisition module is electrically connected to a corresponding target acquisition port. At this time, by controlling the on and off of the switch module, the capacitance induction value of a single target acquisition port can be obtained using a single capacitance acquisition port, which reduces the occupation of communication resources of the capacitance acquisition module and effectively reduces the cost of capacitance detection.
[0019] In some embodiments, the switching module includes multiple single-pass switches, and the switching module is a multi-pass single-pass switch with 5 switches. The capacitance acquisition module is also used to generate a first switch control signal at a preset period and to transmit the first switch control signal.
[0020] The signal is sent to the switch module, wherein the first switch control signal is used to control the conduction or disconnection of the multi-channel single-pass switch.
[0021] This means that the capacitance sensing value of a single target detection port can be acquired using only one signal acquisition port after excluding temperature drift. The capacitance sensing value in the disconnected state is used as a reference signal, which reduces the occupation of the communication port of the capacitance acquisition module, reduces the cost of capacitance detection, and ensures the accuracy of the capacitance sensing value.
[0022] 0 In some embodiments, the switch module includes a multi-way switch, and the switch module is a multi-way switch.
[0023] The switch module includes multiple switch units; the capacitance acquisition module is also used to generate a second switch control signal for a specified switch unit at a preset period, and send the second switch control signal to the switch module, wherein the second switch control signal is used to control the conduction or disconnection of a specified switch unit in the multi-way switch.
[0024] This means that by using the switch specification information contained in the switch control signal, the switching units that need to be turned on and off can be flexibly configured, thereby improving the flexibility of capacitance detection. At the same time, only one signal acquisition port is used to detect single-phase capacitance, avoiding temperature drift.
[0025] The capacitance sensing value of the target detection port is taken as a reference signal in the off state, thereby reducing the occupation of the communication port of the capacitance collection module, effectively reducing the capacitance detection cost, and ensuring the accuracy of the capacitance sensing value.
[0026] In some embodiments, the target capacitance sensing value is determined according to the first capacitance sensing signal and the second capacitance sensing signal in a preset manner, including: determining that the preset manner is subtraction operation, and determining the target capacitance sensing value according to the difference between the first capacitance sensing signal and the second capacitance sensing signal.
[0027] In some embodiments, the on-state capacitance sensing signal and the off-state capacitance sensing signal can be calculated by subtraction. For example, the on-state capacitance sensing signal can be subtracted from the off-state capacitance sensing signal to remove the environmental influence and the parasitic capacitance generated by the wire connection.
[0028] In some embodiments, the target capacitance sensing value is determined according to the first capacitance sensing signal and the second capacitance sensing signal in a preset manner, including: determining that the preset manner is weighted subtraction operation, obtaining a first weighting coefficient and a second weighting coefficient, subtracting the second capacitance sensing signal weighted by the second weighting coefficient from the first capacitance sensing signal weighted by the first weighting coefficient to determine the target capacitance sensing value.
[0029] In some embodiments, in order to more accurately remove the parasitic capacitance generated by the environmental influence, the wire connection and the internal wiring of the chip, the weighting coefficient can be preset, and the on-state capacitance sensing signal and the off-state capacitance sensing signal can be calculated by weighted subtraction. For example, the weighted on-state capacitance sensing signal can be subtracted from the weighted off-state capacitance sensing signal.
[0030] It can be understood that the above preset algorithm only needs to remove the parasitic capacitance generated by the environmental influence, the wire connection and the internal wiring of the chip based on the on-state capacitance sensing signal and the off-state capacitance sensing signal through operation, which is not limited herein.
[0031] In a second aspect, the application further provides a capacitance detection method applied to a capacitance detection circuit, the circuit including a capacitance collection module, a switch module and a target collection port, and the method includes: the capacitance collection module obtains a first capacitance sensing signal and a second capacitance sensing signal corresponding to the target collection port, wherein the first capacitance sensing signal is a signal when the switch module is turned on, and the second capacitance sensing signal is a signal when the switch module is turned off; and the capacitance collection module determines a target capacitance sensing value according to the first capacitance sensing signal and the second capacitance sensing signal in a preset manner.
[0032] That is, the switch module can be used to connect the capacitor collection module and the target collection port. The capacitor collection module uses the above-mentioned switch cycle to collect the capacitor induction signals at all capacitor collection signal ports. For each capacitor collection signal port, the first capacitor signal when the switch is turned on and the second capacitor signal when the switch is turned off are calculated through a preset algorithm to obtain the induction value at each capacitor collection signal port.
[0033] In some embodiments, the first capacitor induction signal and the second capacitor induction signal corresponding to the target collection port are obtained by turning on or turning off the switch module at a preset period, so that the electrical connection between the capacitor collection module and the target collection port is turned on or turned off at a preset period to obtain the first capacitor induction signal and the second capacitor induction signal.
[0034] That is, by periodically turning on or turning off the switch module, a plurality of first capacitor induction signals and a plurality of second capacitor induction signals are obtained. By periodic collection, errors can be reduced, and the capacitor induction value after temperature drift is avoided in real time, facilitating user detection control.
[0035] In some embodiments, the switch module is turned on or turned off at a preset period, so that the electrical connection between the capacitor collection module and the target collection port is turned on or turned off at a preset period, including: the capacitor collection module generates a switch control signal at a preset period, and sends the switch control signal to the switch module; the switch module obtains the switch control signal, and turns on or turns off the electrical connection between the capacitor collection module and the target collection port at a preset period based on the switch control signal.
[0036] That is, the switch module is controlled by the switch control signal. In some embodiments, the capacitor collection module can send the switch control signal to the switch module through a signal sending port provided thereon via a preset mode.
[0037] It can be understood that the above-mentioned preset mode for communication connection only needs to realize the establishment of communication connection between the signal sending port and the switch module, which is not limited herein.
[0038] In some embodiments, the switch module includes a multi-path single-pass switch, and the switch control signal is generated at a preset period and sent to the switch module, including: determining that the switch module is a multi-path single-pass switch, the capacitor collection module generates a first switch control signal at a preset period and sends the first switch control signal to the switch module, wherein the first switch control signal is used to control the turn-on or turn-off of the multi-path single-pass switch.
[0039] That is, only one signal acquisition port can be used to collect the capacitance sensing value of the single target detection port after excluding temperature drift, and the capacitance sensing value in the off state is used as a reference signal, reducing the occupation of the communication port of the capacitance acquisition module, reducing the capacitance detection cost, and ensuring the accuracy of the capacitance sensing value.
[0040] In some embodiments, the switch module further includes a multi-path single-pass switch, and the generation of the switch control signal at the preset period and the sending of the switch control signal to the switch module include: determining that the switch module is a multi-path multi-pass switch, and the switch module includes a plurality of switch units; the capacitance acquisition module generates a second switch control signal for a specified switch unit at a preset period and sends the second switch control signal to the switch module, wherein the second switch control signal is used to control the conduction or disconnection of the specified switch unit in the multi-path multi-pass switch.
[0041] That is, the switch specification information contained in the switch control signal is used to flexibly configure the switch units that need to be turned on and off, thereby improving the flexibility of capacitance detection. At the same time, only one signal acquisition port is used to detect the capacitance sensing value of the single target detection port that avoids temperature drift, and the capacitance sensing value in the off state is used as a reference signal, thereby reducing the occupation of the communication port of the capacitance acquisition module, effectively reducing the capacitance detection cost, and ensuring the accuracy of the capacitance sensing value.
[0042] In some embodiments, the determination of the target capacitance sensing value according to the first capacitance sensing signal and the second capacitance sensing signal in a preset manner includes: determining that the preset manner is subtraction, and the capacitance acquisition module subtracts the second capacitance sensing signal from the first capacitance sensing signal to determine the target capacitance sensing value.
[0043] In some embodiments, the capacitance sensing signal in the on state and the capacitance sensing signal in the off state can be calculated by subtraction. For example, the capacitance sensing signal in the on state can be subtracted from the capacitance sensing signal in the off state to subtract the parasitic capacitance caused by the environment and the wire connection.
[0044] In some embodiments, the determination of the target capacitance sensing value according to the first capacitance sensing signal and the second capacitance sensing signal in a preset manner includes: determining that the preset manner is weighted subtraction, and the capacitance acquisition module obtains a first weighting coefficient and a second weighting coefficient, subtracts the second capacitance sensing signal weighted by the second weighting coefficient from the first capacitance sensing signal weighted by the first weighting coefficient to determine the target capacitance sensing value.
[0045] In some embodiments, in order to more accurately remove the parasitic capacitance caused by the environmental influence, wire connection and internal wiring of the chip, a preset weighting coefficient can be used to calculate the on-state capacitance sensing signal and the off-state capacitance sensing signal through weighted subtraction. For example, the weighted on-state capacitance sensing signal can be subtracted from the weighted off-state capacitance sensing signal.
[0046] It can be understood that the above-mentioned preset algorithm only needs to remove the parasitic capacitance caused by the environmental influence, wire connection and internal wiring of the chip based on the on-state capacitance sensing signal and the off-state capacitance sensing signal through calculation, which is not limited herein.
[0047] In a third aspect, the present application also provides a chip, which comprises the capacitance acquisition module provided in the above-mentioned first aspect and various possible implementations.
[0048] In a fourth aspect, the present application also provides an electronic device, which comprises the capacitance detection circuit provided in the above-mentioned first aspect and various possible implementations, wherein the capacitance detection circuit is used to execute the capacitance detection method provided in the above-mentioned second aspect and various possible implementations. BRIEF DESCRIPTION OF DRAWINGS
[0049] Figure 1 A schematic diagram of a prior art capacitance detection circuit is shown;
[0050] Figure 2A A schematic diagram of a capacitance detection circuit according to some embodiments of the present application is shown;
[0051] Figure 2B A schematic diagram of a capacitance detection circuit comprising a multi-path single-through switch according to some embodiments of the present application is shown;
[0052] Figure 2C A schematic diagram of a capacitance detection circuit comprising a multi-path multi-through switch according to some embodiments of the present application is shown;
[0053] Figure 3 A flowchart of a capacitance detection method applied to the capacitance detection circuit comprising a multi-path single-through switch according to some embodiments of the present application is shown;
[0054] Figure 4 A flowchart of a capacitance detection method applied to the capacitance detection circuit comprising a multi-path multi-through switch according to some embodiments of the present application is shown;
[0055] Figure 5 A block diagram of a system on chip (SoC) according to some embodiments of the present application is shown. DETAILED DESCRIPTION
[0056] In order to facilitate the understanding of the technical solutions provided by the embodiments of the present application, the meanings of some related field terms related to the embodiments of the present application are explained below.
[0057] (1) Chip
[0058] The general term of semiconductor elements, such as integrated circuits (IC).
[0059] (2) Pin (PIN)
[0060] The pin is a wire leading from the internal circuit of the integrated circuit to the peripheral circuit, and all the pins constitute the interface of the chip. After the chip is packaged, it can be seen and is used as a port for data exchange with external devices.
[0061] (3) PAD
[0062] The PAD is the interface connecting the internal circuit of the integrated circuit and the package of the integrated circuit, and is not visible after the package is completed.
[0063] (4) Temperature drift
[0064] The change of the semiconductor element parameter with the change of temperature will cause the drift of the output voltage. The change of the semiconductor device parameter caused by the temperature change is the main reason for the zero drift phenomenon, so the zero drift is also called temperature drift.
[0065] (5) Parasitic capacitance
[0066] Parasitic capacitance generally refers to the capacitance characteristics of inductance, resistance, chip pins, etc. under high frequency conditions. The meaning of parasitic is that there is no additional capacitance element, but due to the mutual capacitance between the wires, the distributed capacitance between the coil and the shell and between some elements, it seems to be parasitic between the wires, so it is called parasitic capacitance, also called stray capacitance. Although the value of parasitic capacitance is small, it is an important cause of interference.
[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions provided by the embodiments of the present application will be described in detail below in combination with the drawings of the specification and specific embodiments.
[0068] Figure 1 A schematic diagram of an existing capacitance detection circuit is shown, which includes a capacitance collection chip 100 for detecting capacitance and a measured chip 200. For the capacitance collection chip 100, refer to Figure 1The pins 0-9 of the capacitance acquisition chip 100 are chip pins for implementing external circuits. Pin 0 is a power input port for supplying power to the chip, and pin GND is a power ground port. The chip 100 is provided with a1-a4 and Cs1-Cs4 data transmission ports. The ports Cs1-Cs4 are capacitance acquisition ports for acquiring capacitance data of a target position.
[0069] To detect the capacitance of PAD1 while avoiding temperature drift, the capacitance acquisition chip needs to use one signal acquisition port to acquire the capacitance sensing value of the target detection port and another signal acquisition port to acquire the reference capacitance sensing value provided by the reference module. Referring back to Figure 1 The measured chip 200 is an unpackaged chip provided with PAD0-PAD9. When the target detection port is PAD1, to accurately detect the capacitance sensing value of PAD1 while excluding environmental factors, Cs1 needs to be connected to PAD1 to acquire the capacitance sensing value, and Cs2 needs to be used to acquire the reference capacitance sensing value of the reference module. The capacitance sensing value of the target detection port and the reference capacitance sensing value are used to exclude the influence of environmental factors on the capacitance sensing value, avoid temperature drift, and improve the accuracy of the detected capacitance sensing value.
[0070] Although Figure 1 The test method of the capacitance detection circuit shown in FIG. 1 is relatively simple, but a single target detection port needs to occupy at least two signal acquisition ports. If multiple signals need to be tested, for example Figure 1 PAD1-PAD8 need to be tested simultaneously, at least 16 signal acquisition ports for acquiring capacitance sensing values are needed. To be able to detect multiple target capacitance detection positions, the number of capacitance acquisition chips needs to be increased to meet the demand for the number of capacitance detection ports, resulting in a significant increase in the cost of capacitance detection.
[0071] In summary, in the existing capacitance detection scheme, the capacitance detection scheme that uses a reference module to acquire a reference capacitance to avoid temperature drift occupies at least two signal acquisition ports of a single detection target, resulting in increased cost.
[0072] To solve the above problems, the application provides a capacitor detection circuit, method, chip and electronic device. The capacitor detection circuit adopts a switch connection capacitor collection module and a target collection port. The capacitor collection module uses the above switch cycle to control the collection of the capacitor induction signals at all capacitor collection signal ports. For each capacitor collection signal port, the first induction capacitor signal when the switch is turned on and the second capacitor induction signal when the switch is turned off are calculated by a preset algorithm to obtain the induction value at each capacitor collection signal port. Thus, the capacitor induction value of a single target detection port avoiding temperature drift is detected by using only one signal collection port, the communication port occupation of the capacitor collection module is reduced, the capacitor detection cost is reduced, and the accuracy of the capacitor induction value is ensured.
[0073] It can be understood that the capacitor collection module will generate a capacitor induction signal, and the capacitor collection module can include a capacitor collection chip. At this time, the circuit connection wire from the chip to the sensing unit will also generate a parasitic capacitor. And the parasitic capacitor on the wire is easily affected by the surrounding environmental factors, for example, the temperature and humidity in the environment will affect the judgment of the human proximity signal. Therefore, by detecting the capacitor induction signal generated by the internal circuit of the capacitor collection module in the disconnected state, the influence of the environment and the parasitic capacitor can be excluded. Thus, the capacitor induction value of a single target detection port avoiding temperature drift is detected by using only one signal collection port, the capacitor induction value in the disconnected state is used as a reference signal, the communication port occupation of the capacitor collection module is reduced, the capacitor detection cost is reduced, and the accuracy of the capacitor induction value is ensured.
[0074] The embodiments of the application will be further described in detail below with reference to the relevant drawings.
[0075] Figure 2A A capacitor detection circuit schematic diagram provided by some embodiments of the application is shown.
[0076] As Figure 2A shown, the capacitor detection circuit includes a capacitor collection module 201, a switch module 202 and a plurality of to-be-detected PADs. The capacitor collection module 201 includes a plurality of signal collection ports, for example, Cs1 to Csn shown in Figure 2A , a total of n signal collection ports. The capacitor collection module 201 further includes a signal sending port GPIO, which can send the switch control signal generated by the capacitor collection module 201 to the switch module 202 for controlling the conduction and disconnection of the switch module 202. The above plurality of capacitor collection ports are used to detect a plurality of target detection ports, for example, PAD1 to PADn shown in FIG. 2, a total of n PAD ports.
[0077] It can be understood that by setting the switch module 202, the conduction and disconnection of the signal collection port and the target detection port can be controlled by the capacitance collection module 201. For example, the capacitance collection module 201 generates a switch control signal and sends it to the control port S0 of the switch module 202 to control the conduction and disconnection of the switch module 202. Thus, only one signal collection port is used to detect the capacitance sensing value of a single target detection port that avoids temperature drift, without the need to obtain a reference signal, thereby reducing the occupation of the communication port of the capacitance collection module, reducing the capacitance detection cost, and ensuring the accuracy of the capacitance sensing value.
[0078] For example, when the target detection port is PAD1, in order to accurately detect the capacitance sensing value of PAD1 without environmental factors, only the electrical connection between Cs1 and PAD1 needs to be periodically turned on and off, and the first capacitance sensing value in the on state and the second capacitance sensing value in the off state are determined. The capacitance sensing signal generated by the internal circuit of the capacitance collection module in the off state can exclude the influence of the environment and the parasitic capacitance. It can be understood that only Cs1 is occupied, and Cs1 and Cs2 are not needed to accurately detect the capacitance sensing value of a single PAD1. Thus, only one signal collection port is used to detect the capacitance sensing value of a single target detection port that avoids temperature drift, and the capacitance sensing value in the off state is used as a reference signal to reduce the occupation of the communication port of the capacitance collection module, reduce the capacitance detection cost, and ensure the accuracy of the capacitance sensing value.
[0079] Embodiment 1
[0080] In order to facilitate the implementation of the above-mentioned Figure 2A The on or off processing of the switch module 202 in the capacitance detection circuit shown, Figure 2B A capacitance detection circuit schematic diagram including a multi-path single-pass switch according to some embodiments of the present application is shown.
[0081] Referring to Figure 2B The above-mentioned switch module 202 can be a multi-path single-pass switch. The switch module 202 as a multi-path single-pass switch connects multiple capacitance collection ports with multiple target detection ports, and S0 can synchronously control the conduction state of all capacitance collection ports and all target detection ports based on the obtained control signal.
[0082] It can be understood that the capacitance collection module 201 can send a single switch control signal to control the on-off state of all capacitance collection ports and all target detection ports by applying the switch module 202 of the multi-path single-pass switch. For example, the capacitance collection module 201 generates a switch-on signal A and sends it to the control port S0 of the switch module 202 via the signal sending port GPIO. When the control port S0 determines that the switch control signal is the switch-on signal A, the switch module 202 is directly turned on. The capacitance collection module 201 generates a switch-off signal B and sends it to the control port S0 of the switch module 202 via the signal sending port GPIO. When the control port S0 determines that the switch control signal is the switch-off signal B, the switch module 202 is directly turned off.
[0083] It can be understood that the capacitance collection module internal circuit will also generate a capacitance induction signal. In some embodiments, the capacitance collection module 201 can be a capacitance collection chip, and the circuit connection wire from the chip to the sensing unit will also generate a parasitic capacitance, and the parasitic capacitance on the wire is easily affected by the surrounding environmental factors, such as temperature and humidity in the environment, which will affect the judgment of the human proximity signal. Therefore, by detecting the capacitance induction signal generated by the internal circuit of the capacitance collection module in the off state, the influence of the environment and the parasitic capacitance can be excluded. Thus, only one signal collection port is used to detect the capacitance induction value of a single target detection port that avoids temperature drift, and the capacitance induction value in the off state is used as a reference signal, reducing the occupation of the communication port of the capacitance collection module, reducing the capacitance detection cost, and ensuring the accuracy of the capacitance induction value.
[0084] In combination with the above Figure 2B According to some embodiments of the present application, a capacitance detection circuit including a multi-path single-pass switch is provided, Figure 3 According to some embodiments of the present application, a flowchart of a capacitance detection method applied to the above-mentioned capacitance detection circuit including a multi-path single-pass switch is shown.
[0085] 301: The capacitance collection module generates a switch control signal at a preset period.
[0086] It can be understood that the switch control signal generated by the capacitance collection module can include a switch-on signal and a switch-off signal, the switch-on signal is used to turn on the above-mentioned switch module, and the switch-off signal is used to turn off the above-mentioned switch module. Since the above-mentioned switch module is a multi-path single-pass switch, the capacitance collection module only needs to generate one switch control signal to simultaneously control the on-off state of all capacitance collection ports and all target detection ports, which is convenient for users to control the capacitance detection process.
[0087] It can be understood that the above-mentioned preset period can be set by the user based on specific test requirements, which is not limited here.
[0088] 302: The capacitance collection module sends the switch control signal to the switch module through the signal sending port.
[0089] Exemplarily, the capacitance collection module can send the switch control signal to the switch module through the preset mode via the signal sending port provided thereon.
[0090] In some embodiments, the above-mentioned preset mode can be to establish electrical connection between the signal sending port and the control port in the switch module, for example, by establishing electrical connection through wires. While in other embodiments, the above-mentioned preset mode can also be to establish communication connection between the signal sending port and the switch module, for example, the signal sending port can establish electrical connection with the control port in the switch module through Bluetooth, Wi-Fi, near field communication and the like, to send the switch control signal to the switch module.
[0091] It can be understood that the above-mentioned communication connection mode only needs to realize the establishment of communication connection between the signal sending port and the switch module, which is not limited herein.
[0092] 303: The switch module obtains the switch control signal through the control port, and turns on or turns off the electrical connection between the capacitance collection port and the target detection port based on the switch control signal at a preset period, to determine the capacitance induction signal in the on state and the capacitance induction signal in the off state.
[0093] Exemplarily, the switch control signal can include the capacitance induction signal in the on state and the capacitance induction signal in the off state, for turning on or turning off the switch module, i.e. turning on or turning off the multi-path single-pass switch, so as to collect the capacitance induction signal containing the target detection port in the on state, and collect the capacitance induction signal generated by the internal circuit of the capacitance collection module in the off state.
[0094] It can be understood that the above-mentioned internal circuit of the capacitance collection module will also generate capacitance induction signal. In some embodiments, the capacitance collection module 201 can be a capacitance collection chip, then the circuit connection wire from the chip to the sensing unit will also generate parasitic capacitance, and the parasitic capacitance on the wire is easily affected by the surrounding environmental factors, for example, the temperature and humidity in the environment will affect the judgment of the human proximity signal. Therefore, by detecting the capacitance induction signal generated by the internal circuit of the capacitance collection module in the off state, the influence of the environment and the parasitic capacitance can be excluded. Thus, only one signal collection port is used to detect the capacitance induction value of the single target detection port avoiding temperature drift, and the capacitance induction value in the off state is used as the reference signal, to reduce the occupation of the communication port of the capacitance collection module, reduce the capacitance detection cost, and ensure the accuracy of the capacitance induction value.
[0095] 304: The capacitance collection module calculates the capacitance sensing signal in the on state and the capacitance sensing signal in the off state through a preset algorithm to determine the target capacitance sensing value.
[0096] For example, the capacitance collection module can calculate the capacitance sensing signal in the on state and the capacitance sensing signal in the off state through a preset algorithm. In some embodiments, the capacitance sensing signal in the on state and the capacitance sensing signal in the off state can be calculated by subtraction. For example, the capacitance sensing signal in the on state can be subtracted from the capacitance sensing signal in the off state to subtract the environmental influence and the parasitic capacitance generated by the wire connection.
[0097] In some embodiments, in order to more accurately remove the parasitic capacitance generated by the environmental influence, the wire connection and the internal wiring of the chip, a weighting coefficient can be preset, and the capacitance sensing signal in the on state and the capacitance sensing signal in the off state can be calculated by weighted subtraction. For example, the weighted capacitance sensing signal in the on state can be subtracted from the weighted capacitance sensing signal in the off state.
[0098] It can be understood that the above-mentioned preset algorithm only needs to remove the parasitic capacitance generated by the environmental influence, the wire connection and the internal wiring of the chip based on the capacitance sensing signal in the on state and the capacitance sensing signal in the off state through calculation, which is not limited herein.
[0099] Through the above steps 301 to 304, the capacitance collection module controls the on-off of the multi-path single switch module at a preset period, controls the electrical connection between the capacitance collection port and the target detection port to be turned on or off at a preset period, determines the capacitance sensing signal in the on state and the capacitance sensing signal in the off state, and calculates the capacitance sensing signal in the on state and the capacitance sensing signal in the off state through a preset algorithm to determine the target capacitance sensing value. Thus, only one signal collection port is used to detect the capacitance sensing value of a single target detection port avoiding temperature drift, the capacitance sensing value in the off state is used as a reference signal, the occupation of the communication port of the capacitance collection module is reduced, the capacitance detection cost is reduced, and the accuracy of the capacitance sensing value is ensured.
[0100] Embodiment 2
[0101] In order to facilitate the implementation of the on or off processing of the switch module 202 in the capacitance detection circuit shown in FIG. 2, Figure 2C A capacitance detection circuit schematic diagram including a multi-path multi-switch is shown according to some embodiments of the application.
[0102] Reference Figure 2CThe switch module 202 can be a multi-path switch. The switch module 202 is a multi-path switch, and the plurality of capacitive collection ports are connected to the plurality of target detection ports via the switch module 202. The switch S0 can control the on-off state of the specified capacitive collection port and the corresponding detection port based on the obtained control signal.
[0103] It can be understood that the capacitive collection module 201 can control the on-off state of the specified capacitive collection port and the corresponding target detection port by applying the switch module 202 of the multi-path switch. For example, the capacitive collection module 201 generates a switch S1 on signal X and sends it to the control port S0 of the switch module 202 via the signal sending port GPIO. When the control port S0 determines that the switch control signal is the switch S1 on signal X, the switch S1 is directly turned on. The capacitive collection module 201 generates a switch S1 off signal Y and sends it to the control port S0 of the switch module 202 via the signal sending port GPIO. When the control port S0 determines that the switch control signal is the switch S1 off signal Y, the switch S1 just turned on is turned off. Therefore, the switch units that need to be turned on and turned off are flexibly configured by the switch specification information contained in the switch control signal, which improves the flexibility of capacitive detection. At the same time, only one signal collection port is used to detect the capacitive sensing value of the single target detection port to avoid temperature drift, and the capacitive sensing value in the off state is used as a reference signal, thereby reducing the occupation of the communication port of the capacitive collection module, effectively reducing the cost of capacitive detection, and ensuring the accuracy of the capacitive sensing value.
[0104] In combination with the above Figure 2C According to some embodiments of the present application, a capacitive detection circuit including a multi-path switch is provided, Figure 4 According to some embodiments of the present application, a capacitive detection method applied to the capacitive detection circuit including a multi-path switch is shown in the flowchart.
[0105] 401: The capacitive collection module generates a switch control signal for a specified switch unit at a preset period, wherein the specified switch unit is arranged in the switch module.
[0106] It can be understood that the switch control signal generated by the capacitive collection module for the specified switch unit can include a switch on signal for the specified switch unit and a switch off signal for the specified switch unit. The switch on signal is used to turn on the specified switch unit, and the switch off signal is used to turn off the specified switch unit. Since the above-mentioned switch module is a multi-path switch, the capacitive collection module can control the on-off state of the specified capacitive collection port and the corresponding specified detection port through the switch control signal, which facilitates user control of the capacitive detection process and improves the flexibility of the capacitive detection process.
[0107] It can be understood that the above-mentioned preset period can be specifically set by the user based on specific test requirements, which is not limited here.
[0108] 402: The capacitance acquisition module sends the switch control signal for the specified switch unit to the switch module through the signal sending port.
[0109] Exemplarily, the capacitance acquisition module can send the switch control signal for the specified switch unit to the switch module through the preset mode via the signal sending port provided thereon.
[0110] In some embodiments, the above-mentioned preset mode can be to establish electrical connection between the signal sending port and the control port in the switch module, for example, through wire connection. While in other embodiments, the above-mentioned preset mode can also be to establish communication connection between the signal sending port and the switch module, for example, the signal sending port can establish electrical connection with the control port in the switch module through Bluetooth, Wi-Fi, near field communication, etc. to send the switch control signal for the specified switch unit to the switch module.
[0111] It can be understood that the above-mentioned communication connection mode only needs to realize the establishment of communication connection between the signal sending port and the switch module, which is not limited here.
[0112] 403: The switch module obtains the switch control signal for the specified switch unit through the control port, and turns on or turns off the electrical connection between the specified capacitance acquisition port and the specified detection port based on the switch control signal for the specified switch unit in a preset period, to determine the capacitance induction signal in the on state and the capacitance induction signal in the off state.
[0113] Exemplarily, the switch control signal can include the capacitance induction signal in the on state and the capacitance induction signal in the off state, which is used to turn on or turn off the specified switch unit in the switch module, that is, to turn on or turn off the specified switch unit in the multi-path multi-through switch, so as to acquire the capacitance induction signal containing the specified detection port in the on state, and to acquire the capacitance induction signal generated by the internal circuit of the capacitance acquisition module in the off state.
[0114] It can be understood that the internal circuit of the above-mentioned capacitance collection module will also generate a capacitance induction signal. In some embodiments, the capacitance collection module 201 can be a capacitance collection chip, and then the circuit connection wire from the chip to the sensing unit will also generate a parasitic capacitance, and the parasitic capacitance on the wire is easily affected by the surrounding environmental factors, for example, the temperature and humidity in the environment will affect the judgment of the human body proximity signal. Therefore, by detecting the capacitance induction signal generated by the internal circuit of the capacitance collection module in the disconnected state, the influence of the environment and the parasitic capacitance can be excluded. Thus, only one signal collection port is used to detect the capacitance induction value of the single target detection port avoiding temperature drift, and the capacitance induction value in the disconnected state is used as a reference signal, reducing the occupation of the communication port of the capacitance collection module, reducing the capacitance detection cost, and ensuring the accuracy of the capacitance induction value.
[0115] 404: The capacitance collection module calculates the capacitance induction signal in the on state and the capacitance induction signal in the disconnected state by a preset algorithm to determine the target capacitance induction value.
[0116] Exemplarily, the capacitance collection module can calculate the capacitance induction signal in the on state and the capacitance induction signal in the disconnected state by a preset algorithm. In some embodiments, the capacitance induction signal in the on state and the capacitance induction signal in the disconnected state can be calculated by subtraction. For example, the capacitance induction signal in the on state can be subtracted from the capacitance induction signal in the disconnected state to subtract the environmental influence and the parasitic capacitance generated by the wire connection.
[0117] In some embodiments, in order to more accurately remove the parasitic capacitance generated by the environment, wire connection and internal wire of the chip, a weighting coefficient can be preset, and the capacitance induction signal in the on state and the capacitance induction signal in the disconnected state can be calculated by weighted subtraction. For example, the weighted capacitance induction signal in the on state can be subtracted from the weighted capacitance induction signal in the disconnected state.
[0118] It can be understood that the above-mentioned preset algorithm only needs to remove the parasitic capacitance generated by the environment, wire connection and internal wire of the chip based on the capacitance induction signal in the on state and the capacitance induction signal in the disconnected state by operation, which is not limited herein.
[0119] Through the steps 401 to 404, the capacitance collection module controls the on-off of the multi-path multi-through switch module at a preset period, turns on or turns off the specified switch unit between the capacitance collection port and the target detection port at a preset period, determines the capacitance induction signal in the on state and the capacitance induction signal in the off state, and calculates the capacitance induction signal in the on state and the capacitance induction signal in the off state through a preset algorithm to determine the target capacitance induction value. Thus, the switch specified information contained in the switch control signal is used to flexibly configure the switch unit to be turned on and turned off, thereby improving the flexibility of capacitance detection. Meanwhile, only one signal collection port is used to detect the capacitance induction value of the single target detection port to avoid temperature drift, and the capacitance induction value in the off state is used as a reference signal, thereby reducing the occupation of the communication port of the capacitance collection module, effectively reducing the capacitance detection cost, and ensuring the accuracy of the capacitance induction value.
[0120] Figure 5 A block diagram of a system on chip (SoC) is shown in accordance with some embodiments of the present application. In Figure 5 like components have like reference numbers. Additionally, dashed lined boxes represent optional features of a more advanced SoC. In Figure 5 the SoC 500 includes an interconnect unit 550 coupled to an application processor 515; a system agent unit 570; a bus controller unit 580; an integrated memory controller unit 540; a set or one or more coprocessors 520A-N which can include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 530; a direct memory access (DMA) unit 560. In one embodiment the coprocessors 520A-N include a special-purpose processor, such as for example a network or communication processor, compression engine, GPGPU, a high- throughput MIC processor, embedded processor, etc.
[0121] The capacitance detection circuit, computer readable storage medium and computer program product provided by the present application can correct the capacitance change caused by environmental changes, thereby ensuring the capacitance detection accuracy and avoiding misjudgment.
[0122] Embodiments of the mechanisms disclosed herein can be implemented in hardware, software, firmware, or a combination of such implementation approaches. Embodiments of the application can be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0123] The program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices, which are known in the art. For purposes of this application, a processing system includes any system that has a processor, such as a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0124] The program code can be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language can be a compiled or interpreted language.
[0125] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on a transitory or non-transitory machine-readable (e.g., computer-readable) medium, which can be read and executed by one or more processors. For example, the instructions can be distributed over the network or by other computer readable media. Thus, a machine-readable medium can include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including without limitation, recordable non-transitory media, floppy disks, optical disks, optical, CD-ROMs, read-only memories (ROMs), random access memories (RAMs), erasable programmable ROMs (EPROMs), electrically erasable programmable ROMs (EEPROMs), magnetic or optical cards, flash memory, and the like. The machine-readable media can also include propagation mediums such as for example, wired and wireless communications networks, including without limitation, intranets, local area networks (LANs), wide area networks (WANs), the Internet, and the like. In addition, some of the disclosed embodiments can be implemented as a system, method, apparatus, or device that is specifically adapted to carry out the techniques disclosed herein. Thus, the techniques disclosed herein can be embodied in a machine that is specifically programmed, configured, or constructed to perform the techniques disclosed herein, or that includes a machine or module so programmed, configured, or constructed.
[0126] In the drawings, some of the structural or methodological features can be shown in particular arrangements and / or orders. However, it should be understood that such particular arrangements and / or orders can not be required. Instead, in some embodiments, the features can be arranged in a different manner and / or order than shown in the illustrative drawings. Additionally, inclusion of a structural or methodological feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, the feature can not be included or can be combined with other features.
[0127] It should be noted that each unit / module mentioned in each device embodiment of the present application is a logical unit / module, and in physical terms, one logical unit / module can be a physical unit / module, or a part of a physical unit / module, or be realized in a combination of multiple physical units / modules, and the physical realization of these logical units / modules is not the most important point. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed in the present application, which does not mean that the above-mentioned device embodiments do not have other units / modules.
[0128] It should be noted that in the examples and descriptions of the present patent, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including one" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0129] Each method embodiment of the present application can be realized in software, magnetic elements, firmware, etc.
[0130] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of the present application, a processing system includes any system that has a processor, such as for example a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC) or a microprocessor.
[0131] Program code can be implemented in a high-level programming language or an object-oriented programming language to communicate with a processing system. When necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanisms described herein are not limited to the scope of any particular programming language. In any case, the language can be a compiled language or an interpreted language.
[0132] One or more aspects of at least one embodiment can be implemented by representative instructions stored on a machine-readable storage medium which represents various logic within the processor, which when read by a machine causes the machine to fabricate logic to perform the techniques described herein. These representations, known as "IP cores" can be stored on a tangible, machine-readable medium and supplied to various customers or manufacturing facilities to load into the fabrication machines that make the logic or processor.
[0133] In some cases, an instruction translator can be used to translate instructions from a source instruction set to a target instruction set. For example, an instruction translator can transform (e.g., using static binary translation, dynamic binary translation including dynamic compilation), morph, emulate, or otherwise translate instructions into one or more other instructions to be processed by the IP core. The instruction translator can be implemented in software, hardware, firmware, or combinations thereof. The instruction translator can be on the processor, off the processor, or part on the processor and part off the processor.
[0134] While the application has been illustrated and described in relation to certain exemplary embodiments, it will be appreciated that various alterations, modifications and / or parameter settings can be made by those skilled in the art without departing from the spirit and scope of the application.
Claims
1. A capacitance detection circuit, characterized by, The circuit includes a capacitance acquisition module, a switch module, and a target acquisition port, and the capacitance acquisition module, the switch module, and the target acquisition port correspond one-to-one. The capacitance acquisition module is electrically connected to the target acquisition port through the switch module, so that the capacitance acquisition module can control the connection or disconnection with the target acquisition port via the switch module. The capacitance acquisition module is used to acquire a first capacitance sensing signal and a second capacitance sensing signal corresponding to the target acquisition port. The first capacitance sensing signal is a capacitance sensing signal generated by the internal circuit of the capacitance acquisition module when the switch module is turned on, and the second capacitance sensing signal is a capacitance sensing signal generated by the internal circuit of the capacitance acquisition module that generates the first capacitance sensing signal when the switch module is turned off. The capacitance acquisition module is used to determine the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method, wherein the preset method is a subtraction operation or a weighted subtraction operation.
2. The circuit according to claim 1, characterized in that, The acquisition of the first capacitive sensing signal and the second capacitive sensing signal corresponding to the target acquisition port includes: The switching module is turned on or off at a preset period, so that the electrical connection between the capacitance acquisition module and the target acquisition port is turned on or off at a preset period, thereby obtaining a first capacitance sensing signal and a second capacitance sensing signal.
3. The circuit according to claim 2, characterized in that, The step of switching the switch module on or off at a preset period, so that the electrical connection between the capacitance acquisition module and the target acquisition port is switched on or off at a preset period, includes: The capacitance acquisition module is also used to generate a switch control signal at a preset period and send the switch control signal to the switch module; The switch module is also used to acquire a switch control signal, and based on the switch control signal, to turn on or off the electrical connection between the capacitor acquisition module and the target acquisition port at a preset period.
4. The circuit according to claim 1, characterized in that, The capacitance acquisition module includes multiple capacitance acquisition ports, wherein the multiple capacitance acquisition ports are electrically connected to the target acquisition port one by one through the switch module.
5. The circuit according to claim 2, characterized in that, The switch module includes multiple single-pass switches, and, The switch module is a multi-channel single-pass switch. The capacitance acquisition module is also used to generate a first switch control signal at a preset period and send the first switch control signal to the switch module. The first switch control signal is used to control the multi-channel single-pass switch to be turned on or off.
6. The circuit according to claim 2, characterized in that, The switch module includes a multi-channel multi-pass switch, and, The switch module is a multi-channel multi-pass switch, and the switch module includes multiple switch units; The capacitance acquisition module is also used to generate a second switch control signal for a specified switch unit at a preset period, and send the second switch control signal to the switch module, wherein the second switch control signal is used to control the conduction or disconnection of a specified switch unit in a multi-way switch.
7. The circuit according to claim 1, characterized in that, The step of determining the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method includes: The preset method is determined to be a subtraction operation. The target capacitance value is determined based on the difference between the first capacitance sensing signal and the second capacitance sensing signal.
8. The circuit according to claim 1, characterized in that, The step of determining the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method includes: The preset method is determined to be a weighted subtraction operation. A first weighting coefficient and a second weighting coefficient are obtained. The first capacitance sensing signal weighted with the first weighting coefficient is subtracted from the second capacitance sensing signal weighted with the second weighting coefficient to determine the target capacitance sensing value.
9. A capacitance detection method, applied to a capacitance detection circuit, characterized in that, The circuit includes a capacitance acquisition module, a switch module, and a target acquisition port, with each of the capacitance acquisition module, switch module, and target acquisition port corresponding one-to-one. The capacitance acquisition module is electrically connected to the target acquisition port via the switch module, allowing the switch module to control the connection or disconnection between the capacitance acquisition module and the target acquisition port. The method includes: The capacitance acquisition module acquires a first capacitance sensing signal and a second capacitance sensing signal corresponding to the target acquisition port. The first capacitance sensing signal is a capacitance sensing signal generated by the internal circuit of the capacitance acquisition module when the switch module is turned on, and the second capacitance sensing signal is a capacitance sensing signal generated by the internal circuit of the capacitance acquisition module when the switch module that generated the first capacitance sensing signal is turned off. The capacitance acquisition module determines the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method, which is either a subtraction operation or a weighted subtraction operation.
10. The method according to claim 9, characterized in that, The acquisition of the first capacitive sensing signal and the second capacitive sensing signal corresponding to the target acquisition port includes: The switching module is turned on or off at a preset period, so that the electrical connection between the capacitance acquisition module and the target acquisition port is turned on or off at a preset period, thereby obtaining a first capacitance sensing signal and a second capacitance sensing signal.
11. The method according to claim 10, characterized in that, The step of switching the switch module on or off at a preset period, so that the electrical connection between the capacitance acquisition module and the target acquisition port is switched on or off at a preset period, includes: The capacitance acquisition module generates a switch control signal at a preset period and sends the switch control signal to the switch module; The switching module acquires a switching control signal, and based on the switching control signal, turns on or off the electrical connection between the capacitance acquisition module and the target acquisition port at a preset period.
12. The method according to claim 11, characterized in that, The switch module includes multiple single-pass switches, and, The step of generating a switch control signal at a preset period and sending the switch control signal to the switch module includes: The switch module is determined to be a multi-channel single-pass switch. The capacitance acquisition module generates a first switch control signal at a preset period and sends the first switch control signal to the switch module. The first switch control signal is used to control the multi-channel single-pass switch to be turned on or off.
13. The method according to claim 11, characterized in that, The switch module also includes a multi-channel single-pass switch, and, The step of generating a switch control signal at a preset period and sending the switch control signal to the switch module includes: The switch module is determined to be a multi-channel multi-pass switch, and the switch module includes multiple switch units; The capacitance acquisition module generates a second switch control signal for a specified switch unit at a preset period and sends the second switch control signal to the switch module. The second switch control signal is used to control the conduction or disconnection of a specified switch unit in a multi-channel switch.
14. The method according to claim 9, characterized in that, The step of determining the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method includes: If the preset method is determined to be a subtraction operation, the capacitance acquisition module subtracts the second capacitance sensing signal from the first capacitance sensing signal to determine the target capacitance sensing value.
15. The method according to claim 9, characterized in that, The step of determining the target capacitance sensing value based on the first capacitance sensing signal and the second capacitance sensing signal using a preset method includes: The preset method is determined to be a weighted subtraction operation. The capacitance acquisition module obtains a first weighting coefficient and a second weighting coefficient, and subtracts the second capacitance sensing signal weighted by the second weighting coefficient from the first capacitance sensing signal weighted by the first weighting coefficient to determine the target capacitance sensing value.
16. A chip, characterized in that, The chip includes a capacitance acquisition module as described in any one of claims 1 to 8.
17. An electronic device, characterized in that, The electronic device includes a capacitance detection circuit as described in any one of claims 1 to 8, wherein the capacitance detection circuit is used to perform a capacitance detection method as described in any one of claims 9 to 15.
Citation Information
Patent Citations
Output measuring circuit and measuring method of capacitance differential pressure transducer
CN101329215A
Capacitance sensing device, parasitic capacitance compensation method and electronic equipment
CN112332830A