The present invention relates to a capacitance measurement circuit and method, and more particularly, to a capacitance measurement circuit and method capable of reducing influence of noise.
As a circuit for measuring a capacitance, a capacitance measurement circuit is generally used to measure the capacitances of various circuits or devices. However, as various portable devices have recently come to provide user interfaces such as a touchpad, a touch screen and a proximity sensor, the application range of a capacitance measurement circuit capable of sensing contact and approach of a user is being extended.
The pulse signal generation unit 10 sets a pulse width of a pulse signal pul according to a control code Ccode transferred from the control unit 40, and generates the pulse signal pul having the set pulse width.
The pulse signal generation unit 10 includes a clock signal generator 11, a variable delay chain VDC, an inverter INV, and an AND-gate AND. The clock signal generator 11 generates and transfers a clock signal clk to the variable delay chain VDC and one terminal of the AND-gate AND. The variable delay chain VDC variably delays the clock signal clk in response to the control code Ccode output from the control unit 40, thereby outputting a delay clock signal dclk. The inverter INV inverts the delay clock signal dclk output from the variable delay chain VDC. And the inverted delay clock signal /dclk is transferred to the other terminal of the AND-gate AND. The AND-gate AND logically multiplies the clock signal clk transferred from the clock signal generator 11 and an inverted delay clock signal /dclk transferred through the variable delay chain VDC and the inverter INV, thereby generating the pulse signal pul having a pulse width corresponding to a delay time of the variable delay chain VDC. The delay time of the variable delay chain VDC corresponds to the control code Ccode. Consequently, the pulse width of the pulse signal pul also corresponds to the control code Ccode.
When a touch object having a predetermined capacitance comes in contact with a pad PAD in the pulse signal transfer unit 20 including a resistor R1 and the pad PAD, a signal level of the pulse signal pul is lowered by the capacitance of the touch object applied through the pad PAD and the resistor R1. Here, a delay pulse signal dpul denotes the pulse pul passed through the resistor R1 and the pad PAD.
At this time, any object having a predetermined capacitance can be applied as the touch object, and a human body in which a large amount of electric charge can be accumulated is a typical example of the touch object.
The pulse signal detection unit 30 senses the delay pulse signal dpul and outputs a sensing signal det. When the signal level of the delay pulse signal dpul is reduced to a predetermined level or less by the capacitance of the touch object, the delay pulse signal dpul is not detected by the pulse signal detection unit 30. Otherwise, even when the control code Ccode input from the control unit 40 is a predetermined value or less and the width of the pulse signal pul is a predetermined value or less, the delay pulse signal dpul is not detected by the pulse signal detection unit 30. The pulse signal detection unit 30 includes a T-flip-flop (TFF) 31 and a period determiner 32. The TFF 31 receives the delay pulse signal dpul in response to the clock signal clk, and is synchronized with a rising edge or falling edge of the clock signal clk to toggle an output signal when the delay pulse signal dpul is received. On the other hand, when the delay pulse signal dpul is not received, the TFF 31 does not toggle the output signal. The period determiner 32 determines whether the output signal of the TFF 31 periodically varies. The period determiner 32 outputs the sensing signal det of a high level when the output signal of the TFF 31 periodically varies, and the sensing signal det of a low level when the output signal of the TFF 31 does not periodically vary.
The control unit 40 includes a code generator 41 and outputs the control code Ccode corresponding to the capacitance of the touch object according to the sensing signal det. When the sensing signal det is applied at a low level, the control unit 40 increases and outputs the control code Ccode. On the other hand, when the sensing signal det is applied at a high level, the control unit 40 reduces and outputs the control code Ccode. In response to the control code Ccode, the variable delay chain VDC of the pulse signal generation unit 10 adjusts a delay time of the clock signal clk and outputs the delay clock signal dclk. Consequently, the width of the pulse signal pul output from the pulse signal generation unit 10 is adjusted by the control code Ccode.
In response to the control code Ccode, the variable delay chain VDC variably delays the clock signal clk and outputs the delay clock signal dclk, and the pulse signal generation unit 10 changes the width of the pulse signal pul according to a time for which the variable delay chain VDC delays the clock signal clk and outputs the pulse signal pul. The pulse signal detection unit 30 senses the delay pulse signal dpul that is delayed by a capacitance applied through the pad PAD of the pulse signal transfer unit 20, thereby outputting the sensing signal det.
In other words, it is determined whether or not the pulse signal pul can be transferred as the delay pulse signal dpul according to the capacitance applied through the pad PAD. To be specific, when the pulse width of the pulse signal pul is small compared to the capacitance applied through the pad PAD, the pulse signal pul cannot be transferred as the delay pulse signal dpul (i.e., the pulse signal detection unit 30 cannot detect the delay pulse signal dpul), and when the pulse width of the pulse signal pul is large compared to the capacitance applied through the pad PAD, the pulse signal pul can be transferred as the delay pulse signal dpul (i.e., the pulse signal detection unit 30 can detect the delay pulse signal dpul). Thus, the pulse signal detection unit 30 outputs the sensing signal det according to whether or not the delay pulse signal dpul is transferred (i.e., whether or not the delay pulse signal dpul is detected), and the control unit 40 changes the control code Ccode according to the sensing signal det and simultaneously checks the sensing signal det, so that the capacitance applied through the pad PAD can be measured.
In the capacitance measurement circuit 1 of
The present invention is directed to providing a capacitance measurement circuit capable of reducing influence of noise.
The present invention is also directed to providing a capacitance measurement method for achieving the above purpose.
One aspect of the present invention provides a capacitance measurement circuit including: a pulse signal generation unit configured to generate a pulse signal by changing a pulse width of a clock signal in response to a control code; a pulse signal transfer unit having a pad, and configured to output a delay pulse signal by delaying the pulse signal in response to a capacitance applied through the pad; a pulse signal detection unit configured to output a sensing signal by detecting the delay pulse signal in response to the clock signal; and a control unit configured to generate the control code a plurality of times according to designated rules, apply the generated control codes to the pulse signal generation unit, and determine whether or not to change the control code by making a determination on the plurality of sensing signals applied in response to the generated control codes.
The control unit may generate the control code having the same value n times (n is a natural number), apply the generated control codes to the pulse signal generation unit, store values of the sensing signals corresponding to the respective control codes generated n times, and reducing and outputting the control code when a number of 1 is p or more (p is a natural number equal to or smaller than n) at the stored values of the plurality of sensing signals.
The control unit may increase and output the control code when a number of 0 is q or more (q is a natural number equal to or smaller than n) at the stored values of the plurality of sensing signals.
The control unit may output the control code as a capacitance value when an increase and reduction in the control code are repeated a predetermined number of times or more.
The control unit may generate r (r is a natural number) sequentially increasing control codes, apply the r control codes to the pulse signal generation unit, sequentially store values of the sensing signals corresponding to the respective r control codes, and determine that noise is included to output the r sequentially increasing control codes again when, among the plurality of stored sensing signals, a sensing signal having a value of 0 follows a sensing signal having a value of 1.
The control unit may output a control code corresponding to a sensing signal having a value of 1 for the first time as a capacitance value when, among the plurality of stored sensing signals, all sensing signals stored after a sensing signal having a value of 0 have a value of 1.
The control unit may generate s (s is a natural number) sequentially decreasing control codes, apply the s control codes to the pulse signal generation unit, sequentially store values of sensing signals corresponding to the respective s control codes, and determine that noise is included to output the s sequentially decreasing control codes again when, among the plurality of stored sensing signals, a sensing signal having a value of 1 follows a sensing signal having a value of 0.
The control unit may output a control code corresponding to a sensing signal having a value of 0 for the first time as a capacitance value when, among the plurality of stored sensing signals, all sensing signals stored after a sensing signal having a value of 1 have a value of 0.
The control unit may alternately generate control codes corresponding to the maximum and minimum of a first range set within the largest value that the control code can have a plurality of times, apply the generated control codes to the pulse signal generation unit, sequentially store values of the sensing signals corresponding to the respective generated control codes, and determine that noise is included to alternately output the control codes corresponding to the maximum and minimum of the first range a plurality of times again when, among the plurality of stored sensing signals, the sensing signal has a value of 1 with respect to the control code corresponding to the minimum and the sensing signal has a value of 0 with respect to the control code corresponding to the maximum.
The pulse signal detection unit may include: a plurality of amplifiers configured to amplify the delay pulse signal with different gains respectively and output the amplification signals respectively; and a plurality of flip-flops corresponding to the respective amplifiers, and configured to latch the amplification signals and output the latch signals respectively.
The control unit may determine whether or not noise is included by sensing a change in the plurality of latch signals.
Another aspect of the present invention provides a capacitance measurement method including: generating a pulse signal by changing a pulse width of a clock signal in response to a control code; outputting a delay pulse signal by delaying the pulse signal in response to a capacitance applied through a pad; outputting a sensing signal by detecting the delay pulse signal in response to the clock signal; and generating the control code a plurality of times, applying the generated control codes to a pulse signal generation unit, and determining whether or not to change the control code by making a determination on the plurality of sensing signals applied in response to the generated control codes.
Determining whether or not to change the control code may include: generating the control code having the same value n (n is a natural number) times and applying the generated control codes to the pulse signal generation unit; storing values of the sensing signals corresponding to the respective n control codes; and reducing and outputting the control code when a number of 1 is p (p is a natural number equal to or smaller than n) or more at the plurality of stored sensing signals. In this case, determining whether or not to change the control code may further include increasing and outputting the control code when a number of 0 is q (q is a natural number equal to or smaller than n) or more at the plurality of stored sensing signals.
Determining whether or not to change the control code may include:
generating r (r is a natural number) sequentially increasing control codes and applying the r control codes to the pulse signal generation unit; sequentially storing values of sensing signals corresponding to the respective r control codes; and determining that noise is included and outputting the r sequentially increasing control codes again when, among the plurality of stored sensing signals, a sensing signal having a value of 0 follows a sensing signal having a value of 1.
Determining whether or not to change the control code may include: generating s (s is a natural number) sequentially decreasing control codes and applying the s control codes to the pulse signal generation unit; sequentially storing values of sensing signals corresponding to the respective s control codes; and determining that noise is included to output the s sequentially decreasing control codes again when, among the plurality of stored sensing signals, a sensing signal having a value of 1 follows a sensing signal having a value of 0.
Determining whether or not to change the control code may include: alternately generating control codes corresponding to the maximum and minimum of a first range set within the largest value that the control code can have a plurality of times and applying the generated control codes to the pulse signal generation unit; sequentially storing values of the sensing signals corresponding to the respective generated control codes; and determining that noise is included to alternately output the control codes corresponding to the maximum and minimum of the first range a plurality of times again when, among the plurality of stored sensing signals, the sensing signal has a value of 1 with respect to the control code corresponding to the minimum and the sensing signal has a value of 0 with respect to the control code corresponding to the maximum.
Therefore, in a capacitance measurement circuit and method according to exemplary embodiments of the present invention, a control unit generates a control code a plurality of times according to designated rules regardless of the level of a sensing signal, and the control code is changed to measure a capacitance value when the level of the sensing signal corresponding to the generated control code is determined to be normal. Consequently, the measured capacitance value is hardly affected by noise and can be stably output.
Hereinafter, exemplary embodiments of the present invention will be described in detail. However, the present invention is not limited to the exemplary embodiments disclosed below, but can be implemented in various forms. The following exemplary embodiments are described in order to enable those of ordinary skill in the art to embody and practice the invention.
A capacitance measurement circuit and a method of measuring a capacitance that can reduce influence of noise will be described with reference to the appended drawings.
Like in
In
In
In
Referring to
Here, the value 1 of the sensing signal det means the delay pulse signal dpul is detected at the pulse signal detection unit 130, and the value 0 of the sensing signal det means the delay pulse signal dpul is not detected at the pulse signal detection unit 130.
Also, the sensing signals det corresponding to the pulse signals pul having the same width are expressed as a group.
It can be seen that, when all the sensing signals det are applied at 0 with respect to the pulse signals pul generated with the same width, a capacitance applied through the pad PAD is greater than a capacitance indicated by the control code Ccode, and also noise has not been introduced. Thus, the control unit 140 increases the control code Ccode by one bit and outputs the increased control code Ccode four times. As illustrated in
In other words, after outputting the same control code Ccode four times, the control unit 140 determines that it is the normal state of no noise and changes the control code Ccode if all the sensing signals det corresponding to the control codes Ccode are applied at the same level. On the other hand, if all the sensing signals det corresponding to the control codes Ccode are not applied at the same level, the control unit 140 determines that it is an abnormal state in which noise is introduced and checks whether it is the normal state by applying the same control code Ccode four times.
In
The capacitance measurement circuit 100 of
The above-described method of generating pulse signals pul having the same width and outputting the same control code Ccode a plurality of times to measure a capacitance applied through the pad PAD using the pulse signals pul may be referred to as an equal pulse width code (EPW) scheme.
It has been described above that the code generator 141 includes a counter, but the counter may be separately prepared outside the code generator 141. Also, the number of times that the control unit 140 outputs the same control code Ccode may be variously set by a user.
It has been described above that the control code Ccode is changed only when all the sensing signals det have the same value with respect to the same control code Ccode output a plurality of times, but the number of times that the sensing signals det have the same value may be designated as a condition for changing the control code Ccode. For example, when the sensing signal det having the same value is applied to the control unit 140 three times or more in the capacitance measurement circuit 100 in which the same control code Ccode is output four times as described above, the control unit 140 may determine that little noise has been introduced into one of the applied sensing signals det, ignore the sensing signal det, and change the control code Ccode. As additional conditions for changing the control code Ccode, the number of times that the sensing signal det having a value of 0 is applied and the number of times that the sensing signal det having a value of 1 is applied may be separately set. Also, the same method can be used in a case in which the control code Ccode gradually decreases as well as the case illustrated in
Referring to
After the control code Ccode is initialized, the control unit 140 initializes a number of times n (n is an integer equal to or greater than 0) that the same control code Ccode is generated (S113). The pulse signal generation unit 110 outputs the pulse signal pul having a predetermined width in response to the control code Ccode (S114). The pulse signal detection unit 130 outputs the sensing signal det in response to the delay pulse signal dpul that is delayed and applied through the pulse signal transfer unit 120. The control unit 140 determines whether the sensing signal det has a value of 1 or 0 and stores the value (S115).
Subsequently, the control unit 140 determines whether the number of times n that the same control code Ccode is generated is smaller than a set maximum number of generation times Max_n (Max_n is a natural number) (S116). When the number of times n that the same control code Ccode is generated is smaller than the maximum number of generation times Max_n, the number of times n that the same control code Ccode is generated is increased by one (S 117). Then, a pulse signal corresponding to the same control code Ccode is generated (S114). On the other hand, when the number of times n that the same control code Ccode is generated is not smaller than the maximum number of generation times Max_n, the control unit 140 counts the number of 0s and the number of 1s from the determined sensing signals det (S118).
The control unit 140 determines whether the number of the sensing signals det having a value of 1 with respect to the same control code Ccode is p (p is a natural number equal to or smaller than Max_n) or more, or whether the number of the sensing signals det having a value of 0 is q (q is a natural number equal to or smaller than Max_n) or more (S150). Here, p is a value designated to set the number of times that the sensing signal det having a value of 1 for changing the control code Ccode is applied, and q is a value designated to set the number of times that the sensing signal det having a value of 0 for changing the control code Ccode is applied.
When the number of the sensing signals det having a value of 1 with respect to the same control code Ccode is p or more, the control unit 140 determines that the control code Ccode is greater than a value corresponding to a capacitance applied through the pad PAD, and reduces and outputs the control code Ccode. On the other hand, when the number of the sensing signals det having a value of 0 with respect to the same control code Ccode is q or more, the control unit 140 determines that the control code Ccode has not reached a value corresponding to the capacitance applied through the pad PAD, and increases and outputs the control code Ccode (S 160).
However, when the number of the sensing signals det having a value of 1 is not greater than p and the number of the sensing signals det having a value of 0 is not greater than q, the control unit 140 determines that noise has been present and initializes the number of times n that the control code Ccode is generated without changing the control code Ccode so that the pulse signal pul having the same width is generated again (S113).
Also, the control unit 140 determines whether the control code Ccode is repeated (S170). In other words, the control unit 140 may determine whether or not the control code Ccode having a predetermined value (e.g., k) and the control code Ccode having another predetermined value (e.g., k+1) are alternately and repeatedly generated. In the exemplary embodiment of
When it is determined in step 170 that the control code Ccode is repeated, the control unit 140 determines that the control code Ccode has a value corresponding to the value of the capacitance applied through the pad PAD, and outputs the control code Ccode as the capacitance value CV (S180). (For example, when the control code Ccode having a value of k and the control code Ccode having a value of k+1 are alternately and repeatedly generated as described above, the control unit 140 may output k, k+1, or a value based on k and k+1 as the capacitance value CV.) However, when the control code Ccode is not repeated, the control unit 140 determines that the control code Ccode has not reached the value corresponding to the value of the capacitance applied through the pad PAD, and initializes the number of times n that the control code Ccode is generated so that the pulse signal pul is generated in response to the increased or reduced control code Ccode (S113).
In
Although
In
In step 118, after counting the number of 0s and the number of is from the determined sensing signals det, the control unit 140 determines whether or not the previous sensing signal det was 0 (S119). In this exemplary embodiment, the control unit 140 repeatedly generates the same control code Ccode Max_n times. Not only when the number of the sensing signals det having a value of 0 with respect to the same control code Ccode generated Max_n times is a predetermined value or more but also when all the sensing signals det are 0 with respect to the same control code Ccode generated Max_n times, the control unit 140 may determine that the previous sensing signal det is 0. Also, when the number of the sensing signals det having a value of 1 with respect to the same control code Ccode generated Max_n times is a predetermined value or more, the control unit 140 may determine that the previous sensing signal det is 1.
When the previous sensing signal det is 0, the control unit 140 determines whether or not the number of the sensing signals det having a value of 1 is p1 (p1 is a natural number equal to or smaller than Max_n) or more (S120).
When it is determined in step 120 that the number of the sensing signals det having a value of 1 is smaller than p1, it is determined whether or not the number of the sensing signals det having a value of 0 is q2 (q2 is a natural number equal to or smaller than Max_n) or more (S121).
When it is determined in step 121 that the number of the sensing signals det having a value of 0 is q2 or more, the control unit 140 increases the control code Ccode (S122), and initializes n (S113).
When it is determined in step 121 that the number of the sensing signals det having a value of 0 is smaller than q2, the control unit 140 determines that noise has been present and initializes n without changing the control code Ccode (S113).
When it is determined in step 120 that the number of the sensing signals det having a value of 1 is p1 or more, the control unit 140 reduces the control code Ccode (S123), and determines whether or not the control code Ccode is repeated (S170). In this case, the sensing signal det is changed from 0 to 1.
When it is determined in step 119 that the previous sensing signal det is not 0, that is, the previous sensing signal det is 1, the control unit 140 determines whether or not the number of the sensing signals det having a value of 0 is q1 (q1 is a natural number equal to or smaller than Max_n) or more (S124).
When it is determined in step 124 that the number of the sensing signals det having a value of 0 is smaller than q1, the control unit 140 determines whether or not the number of the sensing signals det having a value of 1 is p2 (p2 is a natural number equal to or smaller than Max_n) or more (S125).
When it is determined in step 125 that the number of the sensing signals det having a value of 1 is p2 or more, the control unit 140 reduces the control code Ccode (S126), and initializes n (S113).
When it is determined in step 125 that the number of the sensing signals det having a value of 1 is smaller than p2, the control unit 140 determines that noise has been present and initializes n without changing the control code Ccode (S113).
When it is determined in step 124 that the number of the sensing signals det having a value of 0 is q1 or more, the control unit 140 increases the control code Ccode (S127), and determines whether or not the control code Ccode is repeated (S 170).
In
Some steps illustrated in
As an example, when the control code Ccode is initialized to the minimum value (e.g., 0) and the sensing signal det is initialized to 0 in step 112, step 119, step 123, step 124 to step 127, and step 170 may be omitted from
As another example, when the control code Ccode is initialized to the largest value and the sensing signal det is initialized to 1 in step 112, step 119, step 120 to step 123, step 127, and step 170 may be omitted from
The capacitance measurement circuit 100 employing the EPW scheme outputs the same control code Ccode Max_n times (e.g., four times) in succession, and changes the control code Ccode when the sensing signals det having the same value are applied with respect to the same control codes Ccode. On the other hand, it has been described that, when the sensing signals det having the same value are not applied, it is determined that noise is present and the same control code Ccode is output Max_n times (e.g., four times) again. However, in an environment with much noise, the sensing signals det having the same value may not be applied in succession. In this case, the control code Ccode may not reach a level corresponding to a capacitance applied to the capacitance measurement circuit 100, and a measurement time may continuously increase. For this reason, in
The capacitance measurement circuit 100 starts a capacitance measurement operation (S211). In the initial stage of the operation, the capacitance measurement circuit 100 first initializes an iteration signal Iter (Iter is an integer equal to or greater than 0) indicating the number of iteration times and the control code Ccode (S212). In step 212, the sensing signal det may also be initialized to a specific value.
Step 213 to step 227, step 270, and step 280 are the same as step 113 to step 127, step 170, and step 180 described in
When it is determined in step 225 that the number of the sensing signals det having a value of 1 is smaller than p2, or it is determined in step 221 that the number of the sensing signals det having a value of 0 is smaller than q2, the control unit 140 determines whether the iteration signal Iter is greater than a set maximum number of iteration times Max_Iter (S230). When the iteration signal Iter is greater than the set maximum number of iteration times Max_Iter, the control code Ccode output with the same value four times has been output as many times as the set maximum number of iteration times Max_Iter and does not have a value corresponding to the applied capacitance. Thus, a noise flag N_flag indicating failure of capacitance measurement is activated and output (S232), and initialization is performed in step 212. On the other hand, when the iteration signal Iter is not greater than the set maximum number of iteration times Max_Iter, the iteration signal Iter is increased by one (S231), and the number of times n that the control code Ccode is generated is initialized to generate the pulse signals pul having the same width again (S213).
Thus, when it is difficult to measure an applied capacitance due to continuously introduced noise, a capacitance measurement circuit employing the method illustrated in
For convenience,
The capacitance measurement circuit 100 employing the EPW scheme outputs the same control code a plurality of times in succession and makes a determination on the sensing signals det, thereby changing the control code Ccode. Thus, in comparison with the conventional capacitance measurement circuit 1 illustrated in
The IPW scheme will be described with reference to
For example, assuming that the control unit 140 outputs the three continuously increasing control codes Ccode and makes a determination on the sensing signals det corresponding to the respective control codes Ccode, the sensing signals det applied to the control unit 140 in the normal state of no noise may be “111,” “011,” “001,” and “000.” However, if the sensing signals det are applied with “010,” “100,” “101,” and “110,” the sensing signals det are applied with a value of 0 after a value of 1, and thus it may be determined that noise is included. When noise is included, the three continuously increasing control codes Ccode the same as before are output again for measurement, like in the EPW scheme.
The IPW scheme will be described with reference to
Subsequently, it is determined whether the number of times r that the continuously increasing control code Ccode is generated is smaller than a set maximum number of generation times Max_r (Max_r is a natural number) (S316). When the number of times r that the control code Ccode is generated is smaller than the maximum number of generation times Max_r, the number of times r that the continuously increasing control code Ccode is generated and the control code Ccode are each increased by one (S317). Then, a pulse signal corresponding to the increased control code Ccode is generated (S314). However, when the number of times r that the continuously increasing control code Ccode is generated is not smaller than the maximum number of generation times Max_r, the control unit 140 determines whether or not noise is included according to the above mentioned rule (S318). When it is determined that noise is included, it needs to take a measurement relating to the continuously increasing control code Ccode again. Thus, the number of times r that the continuously increasing control code Ccode is generated is subtracted from the increased control code Ccode (S319), and the number of times r that the continuously increasing control code Ccode is generated is initialized again (S313). When the number of times r that the continuously increasing control code Ccode is generated is subtracted from the increased control code Ccode, the number of times r that the control code Ccode is generated has the same value as the maximum number of generation times Max_r, and thus the same result is also obtained subtracting the maximum number of generation times Max_r from the increased control code Ccode.
Meanwhile, when it is determined that noise is not included, the control unit 140 determines whether all the sensing signals det have a value of 1 (S320). According to the noise determination rules, if a sensing signal has a value of 1 and then a value of 0, it may be determined that noise is included. However, when the sensing signal det needs to be output with values of “011,” “001,” and “000” but is output with “111” due to noise, it cannot be accurately determined whether or not noise is included according to the noise determination rules. Thus, the control code Ccode is reduced by one (S321), and the number of times r that the continuously increasing control code Ccode is generated is initialized again (S313).
When all the sensing signals det do not have a value of 1, the control unit 140 determines whether all the sensing signals det have a value of 0 (S322). This is to accurately determine whether or not noise is included, like a determination of whether or not all the sensing signals det have a value of 1. Thus, the control code Ccode is increased by one (S323), and the number of times r that the continuously increasing control code Ccode is generated is initialized again (S313).
Meanwhile, if all the sensing signals det have a value of 1 or none of the sensing signals det has a value of 0, noise has not been included, and the control code Ccode obtained when the sensing signal det outputs 1 for the first time may be determined as the control code Ccode having a value corresponding to an applied capacitance. Thus, the corresponding control code Ccode may be output as the capacitance value CV (S324). Thus far, the control code Ccode is increased and reduced by, for convenience, one in step 321 and step 323, but may be increased and reduced by r or another value.
A capacitance measurement circuit employing the IPW scheme can output the capacitance value CV faster than a capacitance measurement circuit employing the EPW scheme.
In
The remaining constitution is the same as
Although not shown in the drawing, the maximum number of iteration times Max_Iter may also be designated to activate a noise flag in the IPW scheme and the DPW scheme as illustrated in
The capacitance measurement method illustrated in
When the sensing signal det is “0000” or “1111,” the control unit 140 determines that the applied capacitance does not correspond to the range of the control code Ccode, and generates and outputs the control code Ccode corresponding to the remaining range. At this time, the control unit 140 may generate and output the control code Ccode corresponding to half of the remaining range. Meanwhile, when the sensing signal is “0101,” the control unit 140 determines that the applied capacitance corresponds to the range of the control code Ccode. To measure the accurate capacitance, the control code Ccode corresponding to half the range of the corresponding control code Ccode may be generated and output. In other words, the capacitance value CV may be measured by gradually reducing the range of the control code Ccode until the capacitance value CV corresponding to the applied capacitance can be output.
The above method has been well known as a divide and conquer algorithm. However, the APW scheme of the present invention is not limited to the divide and conquer algorithm, and may be applied to all methods in which the control unit 140 repeatedly outputs the control code Ccode with a value corresponding to a specific range and determines whether or not an applied capacitance is included in the range.
The flowchart of a method of measuring the capacitance value CV using the APW scheme is similar to those of the IPW scheme illustrated in
Like the capacitance measurement circuit 100 of
In
When a touch object comes in contact with a pad PAD and a capacitance is applied to the pulse signal transfer unit 220, a pulse signal pul applied from the pulse signal generation unit 210 is delayed by the capacitance of the touch object and a resistor R1 in the pulse signal transfer unit 220 and output as the delay pulse signal dpul having a gradually increasing shape as shown in
In the pulse signal detection unit 230, the first amplifier AMP1 and the first flip-flop DF1 sense 1/4 of the maximum level that the delay pulse signal dpul can have and output the first latch signal q1, the second amplifier AMP2 and the second flip-flop DF2 sense 1/2 of the maximum level that the delay pulse signal dpul can have and output the second latch signal q2, and the third amplifier AMP3 and the third flip-flop DF3 sense 3/4 of the maximum level that the delay pulse signal dpul can have and output the third latch signal q3. Since the delay pulse signal dpul is shown in the form as shown in
Since the delay pulse signal dpul gradually increases as mentioned above, the MLC (q3, q2 and q1) will be changed to “000,” “001,” “011,” and “111” in sequence when there is no noise. When the MLC is not changed in the sequence, the capacitance measurement circuit 200 may determine that noise is included in the MLC.
When the time constant of the delay pulse signal dpul and the pulse width of the pulse signal pul are as shown in
The capacitance measurement circuit 200 starts a capacitance measurement operation (S511). In the initial stage of the operation, the capacitance measurement circuit 200 first initializes an iteration signal Iter (Iter is an integer equal to or greater than 0) indicating the number of iteration times and the control code Ccode (S512). At this time, the control code Ccode may be initialized to the minimum (e.g., 0). The pulse signal generation unit 210 outputs the pulse signal pul having a predetermined width in response to the control code Ccode (S513). Subsequently, the pulse signal detection unit 230 senses the level of the delay pulse signal dpul that is delayed and applied through the pulse signal transfer unit 220, thereby generating an MLC (S514).
The control unit 240 checks a change in the generated MLC, thereby determining whether or not noise is included (S515). When noise is not included in the MLC and all bits of the MLC are output with 0, the control unit 240 determines that the control code Ccode has not reached a value corresponding to a capacitance applied through the pad PAD, and increases and outputs the control code Ccode (S519). However, when 1 is included in the MLC, it is determined whether the middle bit is 1 (S517). In other words, it is determined whether the second latch signal q2 is 1. As mentioned above, the second latch signal q2 may be determined as a signal corresponding to the sensing signal det. Thus, when the second latch signal q2 that is the middle bit of the MLC is 1, the control unit 240 determines that the control code Ccode has reached a value corresponding to the capacitance applied through the pad PAD, and outputs the control code Ccode as the capacitance value CV (S518).
Meanwhile, the control unit 240 checks the transition sequence of the MLC, and increases the iteration signal Iter by one when noise is included in the MLC (S520). Subsequently, it is determined whether the increased iteration signal Iter is greater than a set maximum iteration signal Max_Iter (Max_Iter is a natural number) (S521). When the iteration signal Iter is greater than the set maximum iteration signal Max_Iter, a noise flag N_flag indicating failure of capacitance measurement is activated and output (S522). On the other hand when the iteration signal Iter is not greater than the set maximum iteration signal Max_Iter, the pulse signal pul having the same width is generated again (S513). While the EPW, IPW, DPW, and APW schemes generate the control code Ccode a plurality of times to adjust the width of the pulse signal pul and thereby determine whether or not noise is included, an MLC enables check of whether or not noise is included by generating the pulse signal pul only once.
The MLC can be applied to various schemes, such as the EPW, IPW, DPW, and APW schemes, as well as the conventional capacitance measurement method.
The present invention relates to a capacitance measurement circuit and method, and particularly, can be usefully used in an industry relating to a capacitance measurement circuit capable of reducing influence of noise.
While the invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2010-0109265 | Nov 2010 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR2011/008190 | 10/31/2011 | WO | 00 | 3/18/2013 |