Sensing circuit and method for calculating capacitance value using the sensing circuit having an inverter
By designing a sensing circuit using an inverter and a logic circuit in an active electrostatic stylus to measure the time period of capacitance change, the problem of high current consumption of conventional active electrostatic stylus is solved, minimizing power consumption and Extended battery life.
Patent Information
- Application Number
- CN202011309590.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-11-20
AI Technical Summary
Conventional active electrostatic styluses use comparators to detect changes in capacitance, which results in large current consumption and high power consumption, shortening battery life.
A sensing circuit is designed, which uses an inverter and logic circuit to generate a control signal based on the input signal and a reference clock signal, measures the charging and discharging time periods, and calculates the capacitance value through the total time period. The capacitance value is proportional to the total time period. Reduced current consumption.
It achieves detection of capacitance changes while minimizing power consumption and extending battery life.
Smart Images

Figure CN112986691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a sensing circuit and a method for calculating a capacitance value using the sensing circuit having an inverter. Background Art
[0002] Capacitive sensors operate by detecting changes in capacitance formed between two electrodes. The degree of change in capacitance can indicate various conditions, such as proximity, touch, pressure, etc.
[0003] Capacitive sensing can be used in active electrostatic styluses, where the stylus uses changes in capacitance to determine pressure. Conventional active electrostatic styluses are typically powered by batteries and employ comparators to detect changes in capacitance, which consume a large amount of current and, therefore, power. In battery-powered devices, the high current draw shortens battery life. Therefore, it may be desirable to provide a detection circuit that detects changes in capacitance and minimizes power consumption. Summary of the invention
[0004] The present invention relates to a sensing circuit and a method for calculating a capacitance value using the sensing circuit having an inverter.
[0005] Methods and apparatus for variable capacitance detection may provide various circuits to generate control and / or output signals, measure elapsed time based on the control and / or output signals, and calculate a capacitance value based on the elapsed time, wherein the capacitance value is proportional to the elapsed time.
[0006] The technical problem solved by the present invention is that conventional active electrostatic stylus pens are usually powered by batteries and use comparators to detect changes in capacitance, which consumes a lot of current and thus consumes a lot of power.
[0007] According to one aspect, a sensing circuit includes: an input terminal capable of receiving an input signal; a subcircuit connected to the input terminal and configured to generate an output signal at an output terminal, wherein the subcircuit includes an inverter; a logic circuit connected to the output terminal and configured to generate a first control signal and a second control signal according to a reference clock signal; a first switch connected to the inverter and responsive to the first control signal; and a second switch connected to the inverter and responsive to the second control signal; wherein the logic circuit is configured to: measure a total time period, wherein the total time period includes: a first time period, which is defined according to the first control signal and the output signal; and a second time period, which is defined according to the second control signal and the output signal, wherein the second time period is later in time than the first time period; and calculate a capacitance value based on the total time period, wherein the capacitance value is proportional to the total time period.
[0008] In one embodiment, a first time period is defined by a first starting point and a first end point, wherein the first starting point is marked by a rising edge of a first control signal and the first end point is marked by a first transition edge of an output signal; and a second time period is defined by a second starting point and a second end point, wherein the second starting point is marked by a rising edge of a second control signal and the second end point is marked by a second transition edge of the output signal.
[0009] In one embodiment, the input signal is inversely proportional to the capacitance value.
[0010] In one embodiment, a first time period is defined by a first starting point and a first end point, wherein the first starting point is marked by enabling a first switch and the first end point is marked by a transition of an output signal; and a second time period is defined by a second starting point and a second end point, wherein the second starting point is marked by enabling a second switch and the second end point is marked by a transition of the output signal.
[0011] In one embodiment, during a first time period, the value of the input signal increases, and when the input signal is equal to the threshold voltage of the inverter, the output signal transitions from a low value to a high value; and during a second time period, the value of the input signal decreases, and when the input signal is equal to the threshold voltage of the inverter, the output signal transitions from a high value to a low value.
[0012] According to a second aspect, a method for calculating a capacitance value using a sensing circuit having an inverter includes: receiving an input voltage at an input terminal of the inverter; generating an output signal using the inverter, wherein the output signal is based on the input voltage; generating a first event defined by a transition edge of a first control signal, wherein the first control signal controls the operation of the inverter; identifying a second event defined by a transition edge of the output signal; measuring a total time period, wherein a starting point of the total time period is based on the first event and an end point of the total time period coincides with the second event; and calculating a capacitance value based on the total time period, wherein the capacitance value is proportional to the total time period.
[0013] In one embodiment, the total time period includes: a first time period, which is defined by a first starting point and a first end point, the first starting point is marked by a rising edge of the first control signal, and the first end point is marked by a rising edge of the output signal; and a second time period, which is defined by a second starting point, and the second starting point is marked by a rising edge of the second control signal value and a falling edge of the output signal.
[0014] In one embodiment, during a first time period, the value of the input signal increases, and when the input signal is equal to the threshold voltage of the inverter, the output signal transitions from a low value to a high value; and during a second time period, the value of the input signal decreases, and when the input signal is equal to the threshold voltage of the inverter, the output signal transitions from a high value to a low value.
[0015] In one embodiment, the start of the total time period coincides with the first event; and measuring the total time period is intermittent.
[0016] In one embodiment, the start point of the total time period is later in time than the first event; and measuring the total time period is continuous.
[0017] The technical effect achieved by the present invention is to provide a detection circuit that detects changes in capacitance and minimizes power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present technology may be more fully understood with reference to the detailed description when considered in conjunction with the following exemplary drawings.In the following drawings, similar reference numerals are used throughout to refer to similar elements and steps in the various drawings.
[0019] Figure 1 representatively illustrates an active electrostatic stylus according to an exemplary embodiment of the present technology;
[0020] Figure 2 is a sensing circuit according to various embodiments of the present technology;
[0021] Figure 3 According to various embodiments of the present technology Figure 2 The timing diagram of the circuit;
[0022] Figure 4 According to various embodiments of the present technology Figure 2 an alternative timing diagram for a circuit of
[0023] Figure 5 is a flow chart for calculating capacitance according to various embodiments of the present technology. DETAILED DESCRIPTION
[0024] The present technology may be described in terms of functional block components and various processing steps. Such functional blocks may be implemented by any number of components configured to perform specified functions and achieve various results. For example, the present technology may employ various controllers, amplifiers, signal converters, drivers, switching devices, current sources, voltage sources, logic gates, semiconductor devices such as transistors, capacitors, etc. that may perform a variety of functions. In addition, the present technology may be integrated into any number of electronic systems (such as automotive, aviation, "smart devices", portable devices, and consumer electronics), and the systems described are merely exemplary applications of the present technology.
[0025] See also Figure 1 and Figure 2, embodiments of the present technology may be integrated in an active electrostatic (AES) stylus 100 to detect changes in input capacitance Cin (i.e., input signal), calculate the input capacitance, and use the calculated input capacitance to determine the pressure at the tip 120 of the AES stylus 100, since the input capacitance Cin and the pressure are proportional to each other.
[0026] In an exemplary embodiment, the AES pen 100 may include a capacitive pressure sensor 105 located near the tip 120 of the AES pen 100. The capacitive pressure sensor 105 may include any circuit and / or device suitable for measuring pressure by detecting changes in capacitance caused by movement of the tip 120. For example, the capacitive pressure sensor 105 may include a capacitor 125 having a variable capacitance. The input capacitance Cin may represent the capacitance of the capacitive pressure sensor 105, which varies according to the amount of pressure (force) applied to the tip 120 of the AES pen 100. For example, as the pressure at the tip 120 increases, the input capacitance Cin increases, and vice versa. Embodiments of the present technology may utilize the input capacitance Cin to assign a pressure value to the AES pen 100 during use.
[0027] In an exemplary embodiment, the AES pen 100 may be powered by a battery 115, such as a rechargeable battery. The battery 115 may provide power to various components and / or circuits within the AES pen 100. The battery 115 may include any suitable battery type, such as a lithium-ion battery.
[0028] In various embodiments, the AES pen 100 can communicate with a host device (not shown) such as a touch screen. For example, the AES pen 100 can be equipped with various wired and / or wireless communication systems, such as Bluetooth communication for wireless communication and a USB port for wired communication. The AES pen 100 can transmit the pressure signal to the host device via the wired and / or wired communication system.
[0029] In various embodiments, the AES pen 100 may include a central processing unit 130, a microprocessor, or other suitable processor to execute instructions, perform arithmetic functions, input / output operations, and the like.
[0030] In an exemplary embodiment, the AES pen 100 may also include a sensing circuit 110 configured to detect or otherwise sense an input voltage Vcap of the capacitor 125, wherein the input voltage Vcap is inversely proportional to the input capacitance Cin. For example, the sensing circuit 110 may include an input terminal 255 connected to the capacitor 125. The sensing circuit 110 may be configured to measure one or more time periods based on known events and observed events, and calculate the capacitance value Cin using the one or more time periods.
[0031] In an exemplary embodiment, the sensing circuit 110 may include a subcircuit 245 connected to the input terminal 255 and responsive to the input voltage Vcap. For example, the subcircuit 245 may generate an output signal OUT based on the input voltage Vcap. In an exemplary embodiment, the output signal OUT may have a low value (e.g., digital '0') or a high value (e.g., digital '1').
[0032] Subcircuit 245 may include one or more inverters, such as a first inverter 250(1), a second inverter 250(2), a third inverter 250(3), and a fourth inverter 250(4). Subcircuit 245 may include any number of inverters 250. In the case where subcircuit 245 includes multiple inverters, the inverters may be connected in series with each other. Each inverter 250 may be implemented using a CMOS transistor and thus has a threshold voltage V TH characteristic (also called switching threshold), the threshold voltage V TH The characteristic describes the voltage level at which the output of the inverter changes from low to high or from high to low based on changes in the input voltage Vcap. In an exemplary embodiment, the inverter 250 is directly connected to the input terminal 255. Using an inverter at the input of the sensing circuit 110 eliminates the need to provide quiescent current, which is required in conventional sensing circuits that use a comparator at the input.
[0033] In an exemplary embodiment, subcircuit 245 may be connected to a supply voltage V DD For example, each inverter 250 may receive a supply voltage V DD .
[0034] The sensing circuit 110 may also include a plurality of switches, such as a first switch 230, a second switch 235, a third switch 220, and a fourth switch 225. The first switch 230 and the second switch 235 may be connected in series with each other and may be connected between a supply voltage line and ground. The second switch 220 and the third switch 225 may be connected in series with each other and may be connected between a supply voltage line and ground. Each switch may be implemented by a transistor or any other suitable switching device. In addition, each switch may be a high level effective input device or a low level effective input device.
[0035] The first switch 230 may be responsive to the first control signal SC1, the second switch 235 may be responsive to the second control signal SC2, the third switch 220 may be responsive to the third control signal SC3, and the fourth switch 225 may be responsive to the fourth control signal SC4. Specifically, the control signal may control the enable / disable (on / off) operation of the switch. For example, if the switch is an active high input device, the first switch 230 is turned off (disconnected, disabled) when the first control signal SC1 is low, and alternatively, the first switch 230 is turned on (closed, enabled) when the first control signal SC1 is high.
[0036] Similarly, when the second control signal SC2 is low, the second switch 235 is turned off (open, disabled), and alternatively, when the second control signal SC2 is high, the second switch 235 is turned on (closed, enabled).
[0037] Similarly, when the third control signal SC3 is low, the third switch 220 is turned off (open, disabled), and alternatively, when the third control signal SC3 is high, the third switch 220 is turned on (closed, enabled).
[0038] Similarly, when the fourth control signal SC4 is low, the fourth switch 225 is turned off (open, disabled), and alternatively, when the fourth control signal SC4 is high, the fourth switch 225 is turned on (closed, enabled).
[0039] The sensing circuit 110 may also include a clock generator 215 configured to generate a reference clock signal CLK. In an exemplary embodiment, the clock generator 215 may include an RC oscillator circuit (not shown) using an RC network and a combination of a resistor and a capacitor. However, in other embodiments, the clock generator may include any suitable circuit and / or device for generating a clock signal.
[0040] The sensing circuit 110 may further include a logic circuit 210 configured to control switches (e.g., switches 215, 235, 220, 225) according to a reference clock signal CLK. For example, the logic circuit 210 may generate a first control signal SC1, a second control signal SC2, a third control signal SC3, and a fourth control signal SC4, and may transmit each control signal to a corresponding switch.
[0041] The logic circuit 210 may be connected to an output terminal of the inverter 250 (or a terminal inverter in the case of a plurality of inverters), and configured to receive an output signal OUT.
[0042] See also Figure 2 and Figure 3, the logic circuit 210 may also measure one or more time periods based on the reference clock signal CLK and / or the detected events. For example, the logic circuit 210 may include a time digital converter 260 (or other suitable time measurement circuit) for measuring the elapsed time based on the reference clock signal CLK. In an exemplary embodiment, the time digital converter (TDC) 260 may measure a first time period Tr (also referred to as charging time) and a second time period Tf (also referred to as discharging time).
[0043] The first time period Tr may be defined according to the first control signal SC1 and the output signal OUT. In one embodiment, the first time period Tr is defined by a start point and an end point, the start point being marked by a transition edge (e.g., a rising edge or a falling edge) of the first control signal SC1, and the end point being marked by a transition edge (e.g., a rising edge or a falling edge) of the output signal OUT. The TDC 260 may output the first time period Tr as a digital value.
[0044] The second time period Tf may be defined according to the second control signal SC2 and the output signal OUT. In one embodiment, the second time period Tf is defined by a start point and an end point, the start point being marked by a transition edge (e.g., a rising edge or a falling edge) of the second control signal SC2, and the end point being marked by a transition edge (e.g., a rising edge or a falling edge) of the output signal OUT. The TDC 260 may output the second time period Tf as a digital value.
[0045] In various embodiments, a rising edge is defined as a transition from a low (L) value to a high (H) value, and a falling edge is defined as a transition from a high value to a low value.
[0046] In one embodiment, the logic circuit 210 may calculate the total time Tt, where the total time Tt is the sum of the first time period Tr and the second time period Tf (i.e., Tt=Tr+Tf). In an alternative embodiment, the logic circuit 210 may transmit the first time period Tr and the second time period Tf to the CPU 130, and the CPU 130 may calculate the total time Tt. For example, the logic circuit 210 and / or the CPU 130 may include an adder circuit (not shown) configured to sum two values.
[0047] In an alternative embodiment, logic circuit 210 may measure the total time Tt using TDC 260 in one continuous measurement operation. In this case, TDC 260 measures the total time Tt at the time delay T D Then, counting starts and stops at the second transition edge of the output signal OUT.
[0048] In one embodiment, the logic circuit 210 may transmit the first period Tr value and the second period Tf value to the CPU 130. The CPU 130 may use the first period Tr value and the second period Tf value to calculate the input capacitance Cin. For example, the CPU 130 may be configured to calculate the input capacitance Cin according to the following formula: Cin=(Tr+Tf) / 1.4xRref, where Rref is the resistance of the reference resistor 240. The resistor 240 may be connected to the input terminal 255 and to a node positioned between the first switch 230 and the second switch 235.
[0049] Alternatively, the logic circuit 210 may transmit the total time Tt to the CPU 130, wherein the CPU calculates the input capacitance Cin according to the following formula: Cin = Tt / (1.4 x Rref).
[0050] In operation, and see Figures 1 to 4 , the system can detect and measure the charging time Tr of the capacitor 125 and the discharging time Tf of the capacitor 125. The charging time Tr together with the discharging time Tf can be used to calculate the capacitance Cin of the capacitor 125, which can be used to determine the pressure value corresponding to the pressure applied at the tip 120 of the AES pen 100. Generally speaking, if a strong pressure is applied to the tip 120, the input capacitance Cin increases, and therefore, during charging and discharging, the voltage Vcap increases and decreases slowly, so that the first period Tr and the second period Tf will be longer compared to the weak pressure condition. On the contrary, if a weak pressure is applied to the tip 120, the input capacitance Cin decreases, and therefore, the voltage Vcap increases and decreases more quickly, so that the first period Tr and the second period Tf will be shorter than the strong pressure condition.
[0051] In an exemplary operation, and see Figures 1 to 3 and Figure 5 , the system can start with a set of initial conditions (500), wherein the first switch 230 and the third switch 220 are turned off (open), the second switch 235 and the fourth switch 225 are turned on (closed), and the voltage Vcap is at a reference voltage V SS (eg, 0 volts), and the output signal OUT is low. To achieve these conditions, the first control signal SC1 and the third control signal SC3 may be low, and the second control signal SC2 and the fourth control signal SC4 may be high.
[0052] Then, the logic circuit 210 may generate a start signal to start the reference clock signal CLK (505).
[0053] Then, the logic circuit 210 may start charging the capacitor 125 and start measuring the first time period Tr (510). During the first time period Tr, the input voltage Vcap decreases from the reference voltage V SSThe level increases to the threshold voltage V TH level. To start charging, the logic circuit 210 may close (turn on) the first switch 230 via the first control signal SC1 and open (turn off) the second switch 235 via the second control signal SC2, respectively. For example, the first control signal SC1 may transition from low to high (referred to as a rising edge), and the second control signal SC2 may transition from high to low (referred to as a falling edge). The first control signal SC1 may transition slightly before (or simultaneously with) the second control signal SC2. In an exemplary embodiment, when the first control signal SC1 transitions from one value to another, the TDC 260 may be enabled (started) to measure the first period Tr.
[0054] Then, the logic circuit 210 can detect a transition edge (eg, a rising edge or a falling edge) of the output signal OUT (515). TH When the output signal OUT changes from high to low (or from low to high), the transition edge of the output signal OUT may indicate the end of the first period Tr. In an exemplary embodiment, the TDC 260 may detect the value of the output signal OUT and may stop measuring the first period Tr when the output signal OUT changes from one value to another. In other words, the end of the first period Tr coincides with the transition edge of the output signal OUT. The TDC 260 may convert the measured first period Tr into a digital value.
[0055] A predetermined time delay T may be provided between the first time period Tr and the second time period Tf D After the first period Tr (at the transition edge of the output signal OUT) ends, the predetermined time delay T D Starts immediately. Predetermined time delay T D The duration is set to ensure that capacitor 125 is charged to the supply voltage level V before the discharge operation begins. DD For example, the time delay T D The duration of can be one to two clock cycles and depends on the maximum capacitance of capacitor 125.
[0056] Then, the logic circuit 210 may start the discharge of the capacitor 125 and start measuring the second time period Tf (520). During the second time period Tf, the input voltage Vcap decreases from the supply voltage V DD The level decreases to the threshold voltage V THlevel. To start the discharge, the logic circuit 210 may disconnect (turn off) the first switch 230 via the first control signal SC1 and close (turn on) the second switch 235 via the second control signal SC2, respectively. For example, the first control signal SC1 may transition from high to low, and the second control signal SC2 may transition from low to high. The first control signal SC1 may transition slightly before (or at the same time as) the second control signal SC2. In an exemplary embodiment, when the second control signal SC2 transitions from one value to another, the TDC 260 may be enabled (started) to measure the second time period Tf. In other words, the starting point of the second time period Tf coincides with the transition edge of the second control signal SC2.
[0057] Then, the logic circuit 210 may detect a transition edge (eg, a falling edge) of the output signal OUT (525). The transition edge of the output signal OUT coincides with the input voltage Vcap being equal to the threshold voltage V TH The time of the second time period Tf may coincide with the time of the output signal OUT, and may indicate the end of the second time period Tf. In an exemplary embodiment, the TDC 260 may detect the value of the output signal OUT, and may stop measuring the second time period Tf when the output signal OUT changes from one value to another. The TDC 260 may convert the measured second time period Tf into a digital value.
[0058] When the input voltage Vcap is equal to the threshold voltage V TH When the subcircuit 245 includes an odd number (e.g., 1, 3, etc.) of inverters 250, the direction of the transition (i.e., rising or falling) of the output signal OUT is based on the total number of inverters 250. For example, if the subcircuit 245 includes an odd number (e.g., 1, 3, etc.) of inverters 250, the end of the first time period Tr will be marked by the falling edge of the output signal OUT, and the end of the second time period Tf will be marked by the rising edge of the output signal OUT. If the subcircuit 245 includes an even number (e.g., 2, 4, etc.) of inverters 250, the end of the first time period Tr will be marked by the rising edge of the output signal OUT, and the end of the second time period Tf will be marked by the falling edge of the output signal.
[0059] The logic circuit 210 may calculate the total time Tt (530), where the total time is the sum of the first time period Tr and the second time period Tf (i.e., Tt=Tr+Tf). The logic circuit 210 may transmit the total time Tt or the first time period Tr and the second time period Tf separately to the CPU 130. The logic circuit 210 may repeat steps 500 to 530 for any number of cycles.
[0060] The CPU 130 may calculate the input capacitance Cin (535) using the total time Tt or the first time period Tr and the second time period Tf, where Cin=(Tr+Tf) / 1.4xRref. The CPU 130 may then assign a pressure value to the calculated input capacitance Cin. For example, a higher pressure value may be assigned to a higher input capacitance value, indicating a greater amount of pressure (force) on the tip 120 of the AES stylus 100 by the user. Conversely, a lower pressure value may be assigned to a lower input capacitance, indicating a smaller amount of pressure on the tip 120. The CPU 130 may then transmit the pressure value to a host device (e.g., a touch screen) via any suitable communication system, such as a wireless connection or a wired connection.
[0061] In alternative operation, and see Figure 1 to Figure 2 and Figure 4 , the total time Tt can be determined by: D The TDC 260 is then enabled and the elapsed time is continuously measured until the output signal OUT changes from high to low (or from low to high). D may be predetermined (e.g., one to two clock cycles) and may be set to ensure that the time is long enough for capacitor 125 to be switched from the inverter threshold V TH Charge to supply voltage V DD , which may be based on the maximum capacitance of the capacitor 125 and the resistance of the first switch 230. For example, as the maximum capacitance and / or resistance increases, the time delay increases.
[0062] In this operation, the TDC 260 may convert the total time Tt into a digital value and transmit the digital total time Tt to the CPU 260. The CPU 260 may calculate the input capacitance Cin according to the following formula: Cin=Tt / (1.4xRref).
[0063] In the above description, the technology has been described in conjunction with specific exemplary embodiments. The specific embodiments shown and described are used to demonstrate the technology and its best mode, and are not intended to limit the scope of the technology in any way. In fact, for the sake of brevity, the conventional manufacturing, connection, preparation and other functional aspects of the method and system may not be described in detail. In addition, the connecting lines shown in multiple figures are intended to represent exemplary functional relationships and / or steps between various elements. In actual systems, there may be multiple alternative or additional functional relationships or physical connections.
[0064] The technology has been described in conjunction with specific exemplary embodiments. However, various modifications and changes may be made without departing from the scope of the present technology. The description and drawings are considered in an exemplary and non-restrictive manner, and all such modifications are intended to be included within the scope of the present technology. Therefore, the scope of the technology should be determined by the general embodiments described and their legal equivalents, rather than only by the above-mentioned specific examples. For example, unless otherwise expressly stated, the steps listed in any method or process embodiment may be performed in any order, and are not limited to the explicit order provided in the specific examples. In addition, the components and / or elements listed in any device embodiment may be assembled in a variety of arrangements or otherwise configured for operation to produce substantially the same results as the present technology, and are therefore not limited to the specific configurations set forth in the specific examples.
[0065] The above has described benefits, other advantages and solutions to problems with respect to specific embodiments. However, any benefit, advantage, solution to a problem, or any element that makes any specific benefit, advantage or solution appear or become more obvious should not be construed as a critical, required or essential feature or component.
[0066] The terms "comprises," "comprising," or any variation thereof, are intended to refer to a non-exclusive inclusion, such that a process, method, article, composition, or apparatus that includes a list of elements includes not only those listed elements, but may also include other elements not expressly listed or inherent to such process, method, article, composition, or apparatus. Other combinations and / or modifications of the above-described structures, arrangements, applications, proportions, elements, materials, or components used in the implementation of the present technology, except for those not specifically cited, may be varied or otherwise specially adapted to a specific environment, manufacturing specifications, design parameters, or other operating requirements without departing from its general principles.
[0067] The present technology has been described above in conjunction with exemplary embodiments. However, changes and modifications may be made to the exemplary embodiments without departing from the scope of the present technology. These and other changes or modifications are intended to be included within the scope of the present technology, as described in the following claims.
[0068] According to a first aspect, a sensing circuit includes: an input terminal capable of receiving an input signal; a subcircuit connected to the input terminal and configured to generate an output signal at an output terminal, wherein the subcircuit includes an inverter; a logic circuit connected to the output terminal and configured to generate a first control signal and a second control signal according to a reference clock signal; a first switch connected to the inverter and responsive to the first control signal; and a second switch connected to the inverter and responsive to the second control signal; wherein the logic circuit is configured to: measure a total time period, wherein the total time period includes: a first time period, which is defined according to the first control signal and the output signal; and a second time period, which is defined according to the second control signal and the output signal, wherein the second time period is later in time than the first time period; and calculate a capacitance value based on the total time period, wherein the capacitance value is proportional to the total time period.
[0069] In one embodiment, the first time period is defined by a start point marked by a rising edge of the first control signal and an end point marked by a transition edge of the output signal.
[0070] In one embodiment, the second time period is defined by a start point marked by a rising edge of the second control signal and an end point marked by a transition edge of the output signal.
[0071] In one embodiment, the sensing circuit further includes an RC oscillator connected to the logic circuit and configured to generate a reference clock signal.
[0072] In one embodiment, the input signal is inversely proportional to the capacitance value.
[0073] In one embodiment, the first time period is defined by a start point marked by enabling the first switch and an end point marked by a transition of the output signal.
[0074] In one embodiment, the second time period is defined by a start point marked by enabling the second switch and an end point marked by a transition of the output signal.
[0075] In one embodiment, during the first period, the value of the input signal increases, and when the input signal equals the threshold voltage of the inverter, the output signal transitions from a low value to a high value.
[0076] In one embodiment, during the second period, the value of the input signal decreases, and when the input signal equals the threshold voltage of the inverter, the output signal transitions from a high value to a low value.
[0077] According to a second aspect, a method for calculating a capacitance value using a sensing circuit having an inverter includes: receiving an input voltage at an input terminal of the inverter; generating an output signal using the inverter, wherein the output signal is based on the input voltage; generating a first event defined by a transition edge of a first control signal, wherein the first control signal controls the operation of the inverter; identifying a second event defined by a transition edge of the output signal; measuring a total time period, wherein a starting point of the total time period is based on the first event and an end point of the total time period coincides with the second event; and calculating a capacitance value based on the total time period, wherein the capacitance value is proportional to the total time period.
[0078] In one embodiment, the total time period includes: a first time period, which is defined by a starting point and an end point, the starting point is marked by a rising edge of the first control signal, and the end point is marked by a rising edge of the output signal; and a second time period, which is defined by a starting point, the starting point is marked by a rising edge of the second control signal value and a falling edge of the output signal.
[0079] In one embodiment, during the first period, the value of the input signal increases, and when the input signal equals the threshold voltage of the inverter, the output signal transitions from a low value to a high value.
[0080] In one embodiment, the value of the input signal decreases during the second period, and the output signal transitions from a high value to a low value when the input signal equals the threshold voltage of the inverter.
[0081] The method of claim 10, wherein: a start point of the total time period coincides with the first event; and measuring the total time period is intermittent.
[0082] In one embodiment, the start point of the total time period is later in time than the first event; and measuring the total time period is continuous.
[0083] According to a third aspect, a system includes: a pressure sensor circuit for detecting pressure, wherein the capacitance of the pressure sensor varies according to the detected pressure; and a sensing circuit connected to the pressure sensor circuit and configured to sense an input voltage inversely proportional to the capacitance, wherein the sensing circuit includes: a plurality of inverters connected in series with each other and configured to generate an output signal at an output terminal according to the input voltage; a clock generator configured to generate a reference clock signal; a logic circuit connected to the output terminal and configured to generate a first control signal and a second control signal according to the reference clock signal, wherein the first control signal and the second control signal control the operation of the plurality of inverters; wherein the logic circuit is configured to: measure a total time period, wherein a starting point of the total time period is based on a first control signal, and an end point of the total time period coincides with a transition edge of the output signal; and calculate capacitance based on the total time period, wherein the capacitance is proportional to the total time period.
[0084] In one embodiment, the total time period is measured according to a first time period defined by a start point marked by a rising edge of the first control signal and an end point marked by a rising edge of the output signal.
[0085] In one embodiment, the start of the total time period coincides with the rising edge of the first control signal.
[0086] In one embodiment, the start of the total time period is later in time than a rising edge of the first control signal by a multiple of the reference clock signal.
[0087] In one embodiment, the total time period is measured according to a second time period defined by a start point marked by a rising edge of the second control signal and an end point marked by a falling edge of the output signal.
Claims
1. A sensing circuit, the sensing circuit comprising: an input terminal configured to be coupled to the capacitor and capable of receiving an input voltage; a subcircuit connected to the input terminal and configured to generate an output signal at an output terminal, wherein the subcircuit includes an inverter; a logic circuit connected to the output terminal and configured to generate a first control signal and a second control signal according to a reference clock signal; a first switch connected to the inverter and responsive to the first control signal; and a second switch connected to the inverter and responsive to the second control signal; The logic circuit is configured as follows: Measuring a total time period, wherein the total time period includes: a first time period, wherein the first time period is defined according to the first control signal and the output signal; and a second time period, the second time period being defined according to the second control signal and the output signal, wherein the second time period is later in time than the first time period; and A capacitance value is calculated based on the total time period, wherein the capacitance value is proportional to the total time period.
2. The sensing circuit according to claim 1, wherein: The first time period is defined by a first start point and a first end point, the first start point being marked by a rising edge of the first control signal, the first end point being marked by a first transition edge of the output signal; and The second time period is defined by a second start point and a second end point, the second start point being marked by a rising edge of the second control signal, and the second end point being marked by a second transition edge of the output signal. The sensing circuit of claim 1 , wherein the input voltage is inversely proportional to a capacitance value.
4. The sensing circuit according to claim 1, wherein: the first time period being defined by a first start point and a first end point, the first start point being marked by enabling the first switch and the first end point being marked by a transition of the output signal; and The second time period is defined by a second start point marked by enabling the second switch and a second end point marked by a transition of the output signal.
5. The sensing circuit according to claim 1, wherein: During the first period, the value of the input voltage increases, and when the input voltage is equal to the threshold voltage of the inverter, the output signal transitions from a low value to a high value; and During the second period, the value of the input voltage decreases, and when the input voltage is equal to the threshold voltage of the inverter, the output signal transitions from the high value to the low value.
6. A method for calculating a capacitance value using a sensing circuit, the method comprising: receiving an input voltage at an input terminal of the sensing circuit configured to be coupled to a capacitor; generating an output signal at an output terminal using a subcircuit of the sensing circuit connected to the input terminal, wherein the output signal is based on the input voltage, and wherein the subcircuit includes an inverter; generating, by logic circuitry of the sensing circuitry, a first event defined by a transition edge of a first control signal, wherein the first control signal controls operation of the inverter, wherein the logic circuitry is connected to the output terminal and configured to generate the first control signal based on a reference clock signal; identifying, by the logic circuit, a second event defined by a transition edge of the output signal; measuring a total time period by the logic circuit, wherein a start point of the total time period is based on the first event and an end point of the total time period coincides with the second event; as well as The capacitance value is calculated by the logic circuit based on the total time period, wherein the capacitance value is proportional to the total time period.
7. The method of claim 6, wherein the total time period comprises: a first time period, the first time period being defined by a first starting point and a first end point, the first starting point being marked by a rising edge of the first control signal, and the first end point being marked by a rising edge of the output signal; and A second time period, the second time period is defined by a second start point and a second end point, the second start point is marked by a rising edge of the second control signal, and the second end point is marked by a falling edge of the output signal.
8. The method according to claim 7, wherein: During the first period, the value of the input voltage increases, and when the input voltage is equal to the threshold voltage of the inverter, the output signal transitions from a low value to a high value; and During the second period, the value of the input voltage decreases, and when the input voltage is equal to the threshold voltage of the inverter, the output signal transitions from the high value to the low value.
9. The method according to claim 6, wherein: The start point of the total time period coincides with the first event; and Measuring the total time period is intermittent.
10. The method according to claim 6, wherein: The start point of the total time period is later in time than the first event; and The total time period is measured continuously.
Citation Information
Patent Citations
Self-capacitance change measuring circuit with quick response
CN102193033A
Touch sensing device
CN108595060A
