Input device providing control information to host device
09581986 ยท 2017-02-28
Assignee
Inventors
Cpc classification
G06F3/023
PHYSICS
H03M11/10
ELECTRICITY
International classification
H03M11/10
ELECTRICITY
Abstract
An input device provides control information to a host device and including a plurality of keys, a division module and a control module is disclosed. When an object presses a specific key, the specific key generates a resistance value according to a force applied by the object. The division module receives the resistance value and generates a voltage level according to the resistance value and a first level. The control module generates the control information according to the voltage level. The host device executes a function corresponding to the specific key according to the control information.
Claims
1. An input device providing control information to a host device, comprising: a first key coupled a first scan line and a first receiving line, a second key coupled a second scan line and the first receiving line, a third key coupled the first scan line and a second receiving line, and a fourth key coupled the second scan line and the second receiving line, wherein when one of the first to fourth keys is pressed by an object, the pressed one of the first to fourth keys generates a resistance value according to a force applied by the object; a division module including a first resistance element coupled between the first receiving line and a first level, and a second resistance coupled between the second receiving line and the first level, the division module receiving the resistance value and generating a voltage level according to the resistance value and the first level; and a control module generating the control information according to the voltage level of either one of the first and second receiving lines and providing the control information to the host device to execute a function according to the control information, wherein the first level is a ground level.
2. The input device as claimed in claim 1, wherein the control module compares the voltage level and a pre-determined value, and when the voltage level exceeds the pre-determined value, the control module generates the control information.
3. The input device as claimed in claim 2, wherein when the voltage level is less than the pre-determined value, the control module does not generate the control information.
4. The input device as claimed in claim 1, wherein the control module successively enables the first and the second scan lines.
5. The input device as claimed in claim 4, wherein during a first enabling period, the control module provides a second level to the first scan line and provides the first level to the second scan line, and during a second enabling period, the control module provides the first level to the first scan line and provides the second level to the second scan line.
6. The input device as claimed in claim 5, wherein the second level exceeds the first level.
7. The input device as claimed in claim 6, wherein the control module comprises: a transmittal unit comprising a plurality of pins, wherein each of the pins is coupled to a corresponding scan line to provide the first level or the second level to the corresponding scan line; a transformation unit transforming the voltage level to generate a digital signal; and a controller controlling the levels of the pins and comparing the digital signal and a pre-determined value, wherein when the digital signal exceeds the pre-determined value, the controller generates the control information.
8. The input device as claimed in claim 7, wherein when many keys among the first, second, third and fourth keys are pressed, each of the pressed keys generates a resistance values according to the force applied on the corresponding key, at least one of the first and second resistance elements receives the resistance values and generates a plurality of voltage levels according to the resistance values and the first level, and the control module generates the control information according to the voltage levels.
9. The input device as claimed in claim 7, wherein the controller operates according to the first and second levels.
10. A control unit for coupling between a keyboard and a host device, comprising: a division module generating a voltage level according to a resistance value of a specific key and a first level when an object presses the specific key among first to fourth keys of the keyboard; the first key coupled between a first scan line and a first receiving line; the second key coupled between a second scan line and the first receiving line; the third key coupled between the first scan line and a second receiving line; the fourth key coupled between the second scan line and the second receiving line; the division module in including a first resistance element coupled between the first receiving line and the first level and a second resistance element coupled between the second receiving line and the first level; and a control module receiving the voltage level of either one of the first and second receiving lines to generate control information and providing the control information to the host device to execute a function according to the control information, wherein the first level is a ground level.
11. The control unit as claimed in claim 10, wherein the control module compares the voltage level and a pre-determined value, and when the voltage level exceeds the pre-determined value, the control module generates the control information.
12. The control unit as claimed in claim 11, wherein when the voltage level is less than the pre-determined value, the control module does not generate the control information.
13. The control unit as claimed in claim 10, wherein the control module successively enables the first and second scan lines.
14. The control unit as claimed in claim 13, wherein during a first enabling period, the control module provides a second level to the first scan line and provides the first level to the second scan line, and during a second enabling period, the control module provides the first level to the first scan line and provides the second level to the second scan line.
15. The control unit as claimed in claim 14, wherein the second level exceeds the first level.
16. The control unit as claimed in claim 15, wherein the control module comprises: a transmittal unit comprising a plurality of pins, wherein each of the pins is coupled to one of the first and second scan lines to provide the first or the second level to the corresponding scan line; a transformation unit transforming the voltage level to a digital signal; and a controller controlling the levels of the pins and comparing the digital signal and a pre-determined value, wherein when the digital signal exceeds the pre-determined value, the controller generates the control information.
17. The control unit as claimed in claim 16, wherein when many keys among the first, second, third, and fourth keys are pressed, each of the pressed keys generates a resistance value according to a force applied on the corresponding key, at least one of the first and second resistance elements receives the resistance values and generates a plurality of voltage levels according to the resistance values and the first level, and the control module generates the control information according to the voltage levels.
18. The control unit as claimed in claim 16, wherein the controller operates according to the first and the second levels.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention can be more fully understood by referring to the following detailed description and examples with references made to the accompanying drawings, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF THE INVENTION
(8)
(9) The input device 104 provides control information S.sub.CTRL to the host device 102. The host device 102 operates according to the control information S.sub.CTRL. In some embodiments, the host device 102 executes a corresponding application program or displays a corresponding image or text. In this embodiment, the input device 104 includes a control unit 106 and a keyboard 108.
(10) The control unit 106 is configured to determine whether at least one key of the keyboard 108 is pressed and determine which key is pressed. In one embodiment, the control unit 106 is integrated in the keyboard 108 or the host device 102. In other embodiments, the control unit 106 is disposed outside of the keyboard 108 or outside of the host device 102.
(11) The control unit 106 includes a division module 110 and a control module 112. In one embodiment, the division module 110 and the control module 112 are integrated into a chip. The host device 102 communicates with the keyboard 108 via the chip. In this case, the chip including the division module 110 and the control module 112 can be integrated in the keyboard 108 or disposed outside the keyboard 108. In other embodiments, the division module 110 is integrated in the keyboard 108 and the control module 112 is disposed outside the keyboard 108.
(12) The control module 112 provides a plurality of scan signals to detect whether a key is pressed on the keyboard 108. For clarity,
(13) In this embodiment, when one scan signal is at a high level, other scan signals are at a low level. For example, during a period 202, the control module 112 sets the level of the scan signal S.sub.SC0 at the level V2 and sets the levels of the scan signals S.sub.SC1S.sub.SC4 at the level V1. During a period 204, the control module 112 sets the level of the scan signal S.sub.SC1 at the level V2 and sets the levels of the scan signals S.sub.SC0 and S.sub.SC2S.sub.SC4 at the level V1. During a period 206, the control module 112 sets the level of the scan signal S.sub.SC2 at the level V2 and sets the levels of the scan signals S.sub.SC0S.sub.SC1 and S.sub.SC3S.sub.SC4 at the level V1. During a period 208, the control module 112 sets the level of the scan signal S.sub.SC3 at the level V2 and sets the levels of the scan signals S.sub.SC0S.sub.SC2 and S.sub.SC4 at the level V1. During a period 210, the control module 112 sets the level of the scan signal S.sub.SC4 at the level V2 and sets the levels of the scan signals S.sub.SC0S.sub.SC3 at the level V1.
(14) Refer to
(15) The division module 110 receives the resistance values S.sub.RS0S.sub.RS4 and generates the voltage levels S.sub.V0S.sub.V4 according to the resistance values S.sub.RS0S.sub.RS4 and the level V1. In one embodiment, the division module 110 is serially connected to each variable resistor to divide the corresponding scan signal and provide the divided result to the control module 112. The control module 112 determines which key is pressed according to the voltage levels S.sub.V0S.sub.V4 and outputs the control information S.sub.CRTL according to the determined result. The host device 102 executes a function corresponding to the pressed key according to the control information S.sub.CRTL. In one embodiment, the host device 102 displays a text corresponding to the pressed key or executes an application program corresponding to the pressed key.
(16)
(17) When an object presses one key of the keys KY.sub.1KY.sub.25, the pressed key generates a resistance value according to the force applied by the object. In one embodiment, the resistance value generated by the key may be near to 1K. In another embodiment, when the force applied by the object is maximum, the resistance value generated by the key does not equal 0. Therefore, the ghost key phenomenon is avoided. Additionally, when the keys KY.sub.1KY.sub.25 are not pressed, the resistance values generated by the keys KY.sub.1KY.sub.25 are maximum. In one embodiment, when one of the keys KY.sub.1KY.sub.25 is not pressed, the keys KY.sub.1KY.sub.25 are referred to as open loops.
(18) In this embodiment, the keyboard 108 includes scan lines LN.sub.S0KN.sub.S4 and receiving lines LN.sub.R0LN.sub.R4. The scan lines LN.sub.S0KN.sub.S4 are successively arranged and extended in a vertical direction. The receiving lines LN.sub.R0LN.sub.R4 are successively arranged and extended in a horizontal direction. The scan lines LN.sub.S0KN.sub.S4 interlace the receiving lines LN.sub.R0LN.sub.R4. Each key is coupled to a corresponding scan line and a corresponding receiving line. For example, the key KY.sub.1 is coupled to the scan line LN.sub.S0 and the receiving line LN.sub.R0, and the key KY.sub.3 is coupled to the scan line LN.sub.S2 and the receiving line LN.sub.R0.
(19) Since the keyboard 108 is a resistance-type keyboard, the keys KY.sub.1KY.sub.25 are equivalent to variable resistors RS.sub.1RS.sub.25. In this embodiment, the division module 110 is integrated in the keyboard 108. In some embodiments, the division module 110 is disposed outside of the keyboard 108. The invention does not limit the circuit structure of the division module 110. Any circuit structure can serve as the division module 110, as long as the circuit structure is capable of transforming a resistance value into a voltage level. Additionally, the division module 110 is replaced by a transforming module (not shown) to transform the resistance values provided by the keyboard 108 into other signals, such as current signals or magnetic signals.
(20) In this embodiment, the division module 110 includes resistance elements R.sub.1R.sub.5. The resistance elements R.sub.1R.sub.5 are serially connected to the variable resistors RS.sub.1RS.sub.25 between the scan signals S.sub.SC0S.sub.SC4 and the level V1. For example, the resistance element R.sub.1 is serially connected to the variable resistor RS.sub.1 between the scan signal S.sub.SC0 and the level V1. The resistance element R.sub.2 is connected to the variable resistor RS.sub.1 in series between the scan signal S.sub.SC1 and the level V1. The division module 110 generates the corresponding voltage levels according to the resistance values of the variable resistors RS.sub.1RS.sub.5 and then outputs the voltage levels to the control module 112 via the receiving lines LN.sub.R0LN.sub.R4.
(21)
(22)
(23) Furthermore, the variable resistor RS.sub.6 is connected to the resistance element R.sub.2 in series between the levels V2 and V1. Therefore, the voltage level S.sub.V1 is expressed by the following equation (2):
(24)
(25) Refer to
(26) Refer to
(27)
(28) Additionally, since the key KY.sub.7 is open, the variable resistor RS.sub.6 is connected to the resistance element R.sub.2 in series and receives the level V1. Therefore, the voltage level S.sub.V1 is 0V.
(29) Refer to
(30) In one embodiment, when a user applies different forces to press the keys, the keys generate different resistance values according to the different forces. Therefore, the host device 102 executes different functions according to the different forces. For example, when the host device 102 executes an automobile-race game, if the force applied by the user is large, the host device 102 executes an accelerate speed function. On the contrary, if the force is small, the host device 102 executes a decelerate speed function.
(31) Furthermore, when various keys are pressed, the division module 110 generates corresponding voltage levels according to various resistance values. The control module 112 generates at least one control information according to the corresponding voltage levels. The host device 102 executes at least one function corresponding to the pressed keys according to the control information. For example, when the key Ctrl, Alt and Delete are pressed, the host device 102 executes a specific function, such as a rebooting operation or a stop operation.
(32) The invention does not limit the circuit structure of the control module 112. Any circuit structure can serve as the control module 112, as long as the circuit structure is capable of setting the levels of the scan lines of the keyboard 108 successively and is capable of determining which keys are pressed according to the resistance values generated by the keyboard 108. In one embodiment, the control module 112 includes various micro-processors, micro-controllers, registers, memories and logic circuits.
(33) The transmittal unit 502 includes various pins (not shown) to couple the scan lines LN.sub.S0LN.sub.S4 of the keyboard 108 and transmits scan signals S.sub.SC0S.sub.SC4 to the keyboard 108. In one embodiment, the transmittal unit 502 is a general purpose input/output (GPIO).
(34) The transformation unit 504 transforms the voltage levels S.sub.V0S.sub.V4 to generate digital signals S.sub.AD0S.sub.AD4. In one embodiment, the transformation unit 504 is an analog-to-digital converter (ADC) to transform the voltage levels S.sub.V0S.sub.V4 from an analog format into a digital format, such as the digital signals S.sub.AD0S.sub.AD4.
(35) The controller 506 controls the levels of the pins of the transmittal unit 502 to set the levels of the scan lines LN.sub.S0LN.sub.S4 of the keyboard 108 successively. In this embodiment, the controller 506 sets the level of one pin of the transmittal unit 502 at a high level, such as the level V2. At the same time, the controller 506 sets the levels of other pins of the transmittal unit 502 at a ground level, such as the level V1. In one embodiment, the levels V1 and V2 are provided by an external device (not shown). The controller 506 operates according to the levels V1 and V2.
(36) Additionally, the controller 506 compares the digital signals S.sub.AD0S.sub.AD4 with a pre-determined value to determine which key is pressed. For example, when the digital signal S.sub.AD0 exceeds the pre-determined value, the controller 506 generates control information S.sub.CRTL according to the digital signal S.sub.AD0. When the digital signal S.sub.AD0 does not exceed the pre-determined value, the controller 506 does not consider the digital signal S.sub.AD0 to generate the control information S.sub.CRTL.
(37) In one embodiment, the controller 506 collects various compared results and integrates the compared results into a single control information to the host device 102. In another embodiment, the controller 506 generates various control information according to various compared results and utilizes a serial transmission method or a parallel transmission method to output the various control information.
(38)
(39) First, a factor N is set to 0 in operation 602. The factor N relates to the number of scan lines on the keyboard. In this embodiment, a counter is further activated in operation 602, but the disclosure is not limited thereto. In other embodiments, a counter is not required in operation 602. Next, a factor M is set to 0 in operation 604. The factor M relates to the number of receiving lines of the keyboard.
(40) Next, the scan line LN.sub.SN is enabled in operation 606. Since the factor N equals 0, the scan line LN.sub.S0 is enabled. For clarity, refer to
(41) The resistance value of the receiving line LN.sub.RM is detected and a detection signal is generated according to the detection result in operation 608. The invention does not limit the kind of detection signal. The detection signal may be a digital signal or an analog signal. In another embodiment, the detection signal is a voltage, current or magnetic signal. Since the keyboard 108 is a resistance-type keyboard, the receiving lines LN.sub.R0LN.sub.R4 corresponding to the scan line LN.sub.S0 output resistance values no matter what keys are pressed. Refer to
(42) Next, it is determined whether the detection signal exceeds a pre-determined value in operation 610. When the detection signal does not exceed the pre-determined value, it means that the key KY.sub.1 corresponding to the scan line LN.sub.S0 and the receiving line LN.sub.R0 is not pressed. Therefore, operation 614 is executed to determine whether a counting value of the counter has arrived at a pre-determined time. When the detection signal exceeds the pre-determined value, it means that the key KY.sub.1 corresponding to the scan line LN.sub.S0 and the receiving line LN.sub.R0 is pressed. Therefore, the detection signal is recorded in operation 612.
(43) In operation 614, it is determined whether the counting value of the counter has arrived at the pre-determined time. If the counting value of the counter has not arrived at the pre-determined time, it means that some resistance values of all receiving lines are not detected. Therefore, the factor M adds 1 and operation 606 is executed to detect the resistance value of next receiving line LM.sub.R1. In other embodiments, the factor M is compared to a receiving pre-determined value to determine whether the resistance values of all receiving lines are detected. Therefore, the operation 614 is replaced with the comparing operation. In this case, the counter is not required in operation 602.
(44) If the counting value of the counter arrives the pre-determined time, it means that resistance values of all receiving lines are detected. Therefore, control information is generated according to the recorded result of operation 612 to the host device in operation 616. If many keys are pressed, many recorded results are generated in operation 612. In one embodiment, the recorded results are integrated into single control information in operation 616. In another embodiment, a lot of control information is provided according to the recorded results in operation 616. In some embodiments, if no key is being pressed, corresponding control information is generated to the host device in operation 616 according to the recorded results of operation 612. Therefore, the host device knows that no key is being pressed according to the corresponding control information.
(45) The host device knows which key is being pressed according to the control information. Therefore, the host device executes a function corresponding to the pressed key. Next, factor N is added 1 in operation 618. Then, it is determined whether the factor N equals a scan pre-determined value in operation 622. If the factor N equals the scan pre-determined value, it means that all scan lines are enabled. Therefore, operation 602 is executed to reset the factor N to 0. When the factor N does not equal the scan pre-determined value, operation 604 is executed to reset the factor M.
(46) The keys of the keyboard generate corresponding resistance values according to the forces applied on the corresponding keys. The resistance values are utilized to generate the corresponding detection signals. The detection signals are compared with a pre-determined value. When one of the detection signals is less than the pre-determined value, it means a user is being careless to press one key. Since the small detection signal is omitted, the ghost key can be avoided. Additionally, the scan lines are successively enabled and the levels of the scan lines which are not enabled are the ground level, the ghost key is also avoided and the accuracy of the keyboard is increased.
(47) Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
(48) While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.