This application claims the priority benefit of China application serial no. 201710799292.3, filed on Sep. 7, 2017. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a keyboard apparatus and particularly relates to a keyboard apparatus that prevents the occurrence of ghost key phenomenon and achieves low manufacturing costs.
For the purpose of avoiding the use of too many wirings, which leads to the increase of manufacturing costs of the keyboard itself and the inconvenience in actual assembly, conventional keyboard apparatuses are mainly designed as a key matrix. For a keyboard apparatus designed as a key matrix, ghost key phenomenon are prone to occur due to physical characteristics of the key matrix itself. Herein Taiwan Patent No. 1485991 specifies the main reason for the occurrence of ghost key phenomenon. In order to prevent the occurrence of ghost key phenomenon, the general solution, for example, is to increase the size of the key matrix or to separate each key by a diode. However, such kind of approach also significantly increases the manufacturing costs of the keyboard apparatus.
Therefore, Taiwan Patent No. 1485991 provides a ghost key detecting circuit to prevent the occurrence of ghost key phenomenon and reduce the manufacturing costs. Hereinafter, with reference to
As shown in
When the measuring voltage of the return line R1 is greater than or equal to a threshold voltage of the transistor Q1, the transistor Q1 is turned on and a collector voltage of the transistor Q1 is pulled down to the potential of the ground terminal GND. Since an across voltage between the base and the emitter of the transistor Q2 does not exceed a threshold voltage of the transistor Q2, the transistor Q2 is not turned on. At this time, the logic level signal SL1 is at a high logic level. Therefore, the processor 320 could determine that the key corresponding to one of the switching components 305a and 305c on the return line R1 is not pressed based on the fact that the logic level signal SL1 is at a high logic level.
Conversely, when the measuring voltage of the return line R1 is smaller than the threshold voltage of the transistor Q1, the transistor Q1 is not turned on. As a result, the across voltage between the base and the emitter of the transistor Q2 exceeds the threshold voltage of the transistor Q2 such that the transistor Q2 is turned on. At this time, the logic level signal SL1 is at a low logic level. Therefore, the processor 320 could determine that the key corresponding to one of the switching components 305a and 305c on the return line R1 is pressed based on the fact that the logic level signal SL1 is at a low logic level.
Besides, the operations of the transistors Q3 and Q4 are similar to the operations of the transistors Q1 and Q2, so repeated descriptions thereof are omitted here. Accordingly, depending on whether the transistor Q1 or the transistor Q3 is turned on or not, the transistor Q2 or the transistor Q4 may output signals at different logic levels to correctly indicate whether the key is pressed or not, thereby preventing the occurrence of ghost key phenomenon.
Since each return line (such as the return line R1) needs to detect whether the key on the return line (the return line R1) is pressed or not by using two transistors (such as the transistors Q1 and Q2) and one resistor (such as the resistor RU1), once the number of the return lines is increased, the numbers of the transistors and resistors used in the level detection circuit 315 are bound to greatly increase. As a result, the manufacturing costs of the keyboard apparatus are also greatly increased. Consequently, one of the major issues in this field is how to reduce the manufacturing costs of the keyboard apparatus without causing the occurrence of ghost key phenomenon.
Accordingly, the disclosure provides a keyboard apparatus that not only prevents the occurrence of ghost key phenomenon but also reduces the manufacturing costs.
The keyboard apparatus of the disclosure includes a key module and a detection circuit. The key module includes a plurality of keys, a plurality of scan lines and a plurality of return lines. The scan lines and the return lines are crossed to each other and respectively coupled to the keys. The detection circuit is coupled to the return lines for detecting a plurality of return voltages of the return lines, and generates a plurality of detection signals accordingly so as to indicate that a switch of each of the keys is at an on state or at an off state. The detection circuit includes a plurality of P-type transistors. A first terminal of each of the P-type transistors is coupled to a ground terminal, a control terminal of each of the P-type transistors is directly coupled to a corresponding one of the return lines, and a second terminal of each of the P-type transistors generates and outputs a corresponding one of the detection signals.
In an embodiment of the disclosure, the P-type transistor is a PNP bipolar junction transistor.
In an embodiment of the disclosure, the P-type transistor is a P-type metal oxide semiconductor transistor.
In an embodiment of the disclosure, when the return voltage of the corresponding one of the return lines is greater than or equal to a reference voltage, the switch of the key coupled between the corresponding one of the return lines and an activated scan line of the plurality of scan lines is at an off state, wherein the reference voltage is associated with a threshold voltage of the P-type transistor.
In an embodiment of the disclosure, when the return voltage of the corresponding one of the return lines is smaller than a reference voltage, the switch of the key coupled between the corresponding one of the return lines and an activated scan line of the plurality of scan lines is at an on state, wherein the reference voltage is associated with a threshold voltage of the P-type transistor.
In an embodiment of the disclosure, the keyboard apparatus further includes a processing circuit. The processing circuit is coupled to the detection circuit to receive the detection signals and determines whether each of the keys is pressed or not according to the detection signals.
In an embodiment of the disclosure, the processing circuit is further coupled to the scan lines to sequentially activate one of the scan lines, and determines whether each of the keys on the activated scan line is pressed or not according to the detection signals.
Based on the foregoing, the keyboard apparatus in the embodiment of the disclosure could prevent the occurrence of ghost key phenomenon. Besides, in the keyboard apparatus from the embodiment of the disclosure, for the keyboard apparatus to determine if the key on the return line is pressed or not, only one single transistor is required to perform the level detection operation in each return line. Consequently, it is possible to effectively reduce the manufacturing costs of the keyboard apparatus.
To make the aforementioned and other features and advantages of the disclosure more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Descriptions of the disclosure are given with reference to the exemplary embodiments illustrated by the accompanying drawings. In addition, wherever possible, identical or similar reference numerals stand for identical or similar elements/components in the drawings and embodiments.
Hereinafter, with reference to
A first terminal of the key 221 and a first terminal of the key 222 are coupled to the scan line S1. A second terminal of the key 221 and a second terminal of the key 222 are coupled to the return line R1 and the return line R2 respectively. A first terminal of the key 223 and a first terminal of the key 224 are coupled to the scan line S2. A second terminal of the key 223 and a second terminal of the key 224 are coupled to the return line R1 and the return line R2 respectively. Besides, the second terminal of the key 221 and the second terminal of the key 223 are coupled to a resistor 281 (having a resistance RA) via the return line R1, and the second terminal of the key 222 and the second terminal of the key 224 are coupled to a resistor 282 (having a resistance RA) via the return line R2. Another end of the resistor 281 and another end of the resistor 282 are coupled to a power terminal VDD.
In the embodiment as shown in
The detection circuit 260 is coupled to the return lines R1 and R2 for detecting return voltages of the return lines R1 and R2, and generates detection signals SD1 and SD2 accordingly so as to indicate that the switch SW of each of the keys 221-224 is at an on state or at an off state.
In the embodiment as shown in
The processing circuit 240 is coupled to the detection circuit 260 to receive the detection signals SD1 and SD2, and may determine whether each of the keys 221-224 is actually pressed or not according to the detection signals SD1 and SD2. In an embodiment of the disclosure, the processing circuit 240 may have a pull-up circuit to pull up emitters of the P-type transistors Q21 and Q22 to a high logic level, but the disclosure is not limited thereto. In an embodiment of the disclosure, the processing circuit 240 may be further coupled to the scan lines S1 and S2 to sequentially activate one of the scan lines S1 and S2, and determine whether each key on the activated scan line is pressed or not according to the received detection signals SD1 and SD2.
In an embodiment of the disclosure, the keyboard apparatus 200 may be a membrane keyboard apparatus and the keys 221-224 may be membrane keys, but the disclosure is not limited thereto.
In an embodiment of the disclosure, the P-type transistors Q21 and Q22 may be PNP bipolar junction transistors as shown in
In an embodiment of the disclosure, the processing circuit 240 may be a hardware, a firmware, or a software or a machine-executable program code stored in a memory to be loaded and executed by a microprocessor or by a digital signal processor (DSP). If the processing circuit 240 is implemented by using a hardware, the processing circuit 240 may be realized by a single integrated circuit chip or by a plurality of circuit chips, but the disclosure is not limited thereto. The plurality of circuit chips or the single integrated circuit chip may be implemented by using an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). The memory may be a random access memory, a read-only memory, or a flash memory, for example. In another embodiment of the disclosure, the P-type transistors Q21 and Q22 may be integrated in the processing circuit 240.
In order to correctly determine the actual pressing state of each of the keys 221-224, the P-type transistors Q21 and Q22 in the detection circuit 260 may perform level detection operations on the return voltages of the return lines R1 and R2 respectively. Accordingly, the processing circuit 240 could determine the actual pressing state of each of the keys 221-224. Specifically, when the return voltage of the return line R1 is greater than or equal to a reference voltage, an across voltage between the emitter and a base of the P-type transistor Q21 does not exceed a threshold voltage of the P-type transistor Q21 such that the P-type transistor Q21 is not turned on. At this time, the potential of the detection signal SD1 is at a high logic level, indicating that one of the keys 221 and 223 on the return line R1 is not pressed. Conversely, when the return voltage of the return line R1 is smaller than the reference voltage, the across voltage between the emitter and the base of the P-type transistor Q21 exceeds the threshold voltage of the P-type transistor Q21 such that the P-type transistor Q21 is turned on. At this time, since the P-type transistor Q21 is tuned on, the potential of the detection signal SD1 is the potential of the ground terminal GND, i.e., at a low logic level, thereby indicating that one of the keys 221 and 223 on the return line R1 is pressed. Besides, the operation of the P-type transistor Q22 is similar to the foregoing operation of the P-type transistor Q21, so a repeated description thereof is omitted here. Accordingly, depending on whether the P-type transistor Q21 or the P-type transistor Q22 is turned on or not, the detection signals SD1 and SD2 at different logic levels may be output to indicate whether the corresponding key is pressed or not.
Hereinafter, with reference to
A case where only one key is pressed is described hereinafter. For the purpose of simplifying the contents of the specification, only the case where the key 221 is pressed and the keys 222-224 are not pressed is illustrated here, and other situations may be deduced by analogy. With reference to
V
R1
=V
DD×(RB+RC)/(RA+RB+RC) formula (1)
In general, the resistance RA may be designed to be exceedingly greater than the resistance RB and the resistance RC such that the return voltage VR1 in formula (1) is smaller than the reference voltage. In this way, the across voltage between the emitter and the base of the P-type transistor Q21 exceeds the threshold voltage of the P-type transistor Q21. As a result, the P-type transistor Q21 is turned on to generate the detection signal SD1 that is at a low logic level. Consequently, the processing circuit 240 in
Besides, the detection operation when the scan line S2 in
Hereinafter, with reference to
V
R2
=V
DD×(RB+RC)/(RA+RB+RC) formula (2)
On the other hand, as shown in
V
R1
=V
DD×(3×RB+RC)/(RA+3×RB+RC) formula (3)
Therefore, the resistances RA, RB and RC may be properly designed such that the return voltage VR1 in formula (3) is greater than or equal to the reference voltage and the return voltage VR2 in formula (2) is smaller than the reference voltage. In this way, the processing circuit 240 could correctly determine that the key 221 is not pressed and the key 222 is pressed.
The following should be noted here: by the proper designs of the resistances RA, RB and RC and by the level detection operations of the P-type transistors Q21 and Q22 in the detection circuit 260, the design of the keyboard apparatus from the embodiment of the disclosure may prevent the occurrence of ghost key phenomenon.
In summary, the keyboard apparatus in the embodiment of the disclosure could prevent the occurrence of ghost key phenomenon. Besides, in the keyboard apparatus from the embodiment of the disclosure, for the keyboard apparatus to determine if the key on the return line is pressed or not, only a single transistor is required to perform the level detection operation in each return line. Consequently, it is possible to effectively reduce the manufacturing costs of the keyboard apparatus.
Although the embodiments are already disclosed as above, these embodiments should not be construed as limitations on the scope of the disclosure. It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201710799292.3 | Sep 2017 | CN | national |